91-9990449935 0120-4256464 |
JSP Action TagsThere are many JSP action tags or elements. Each JSP action tag is used to perform some specific tasks. The action tags are used to control the flow between pages and to use Java Bean. The Jsp action tags are given below.
The jsp:useBean, jsp:setProperty and jsp:getProperty tags are used for bean development. So we will see these tags in bean developement. jsp:forward action tagThe jsp:forward action tag is used to forward the request to another resource it may be jsp, html or another resource. Syntax of jsp:forward action tag without parameterSyntax of jsp:forward action tag with parameterExample of jsp:forward action tag without parameterIn this example, we are simply forwarding the request to the printdate.jsp file. index.jspprintdate.jspExample of jsp:forward action tag with parameterIn this example, we are forwarding the request to the printdate.jsp file with parameter and printdate.jsp file prints the parameter value with date and time. index.jspprintdate.jsp
Next TopicJsp Include Action
|