8. Java for Web Development for PHP developer – a rant

In the 8th hours, I learned about JSP. Scriptlet <% %>, declaration section <%! %>, JSP tags <jsp:include page="page.jsp" />.

Page1.jsp:
<jsp:include page="pname.jsp">
<jsp:param name="name" value="Val" ></jsp:param>
<jsp:param name="class" value="PHP" />
</jsp:include>

pname.jsp:
<%=request.getParameter('name') %>

<%=request.getParameter(class) %>

-------

<jsp:forward page = "forwardto.jsp" />

This will forward control to forwarded page (static or dynamic page). The output will show from forwardto.jsp page.

http://java.sun.com/products/jsp/tags/11/syntaxref1112.html
http://www.exampledepot.com/egs/javax.servlet.jsp/caller.jsp.html
http://www.exforsys.com/tutorials/jsp/jsp-action-tags.html