JSP Action Tags
Working with JSP action Tags:
Action tags are a set of some basic tags, such as
◦ inserting other page resources
◦ forwarding the request to another page
◦ creating and locating the java bean instances
◦ setting and retrieving bean properties, in JSP pages.
Note:
Instead of using Java code, developers use special JSP action tags to either link to a Java Bean to set its properties, or get its properties.
JSP Action
|
Description
|
jsp:include
|
To include a resource at runtime, can be HTML, JSP or any other file
|
jsp:useBean
|
To get the java bean object from given scope or to create a new object of java bean.
|
jsp:getProperty
|
To get the property of a java bean, used with jsp:useBean action
|
jsp:setProperty
|
To set the property of a java bean object, used with jsp:useBean action.
|
jsp:forward
|
To forward the request to another resource.
|
jsp:text
|
To write template text in JSP page.
|
jsp:element
|
To define the XML elements dynamically
|
jsp:attribute
|
To define the dynamically generated XML element attributes
|
jsp:body
|
To define the dynamically generated XML element body
|
jsp:plugin
|
To generate the browser-specific code that makes an OBJECT or EMBED tag for the Java plugin.
|
Important Action Tags:
The most commonly used action tags are
· <jsp:include>
· <jsp:forward>
· <jsp:param>
· <jsp:useBean>
· <jsp:setProperty>
· <jsp:getProperty>
Comments
Post a Comment