Java Reference
In-Depth Information
// end
// begin
out.write(“\r\n “);
// end
// begin [file=”C:\\UseForward.jsp”;from=(16,10);to=(19,8)]
}
else {
// end
// begin
out.write(“\r\n “);
// end
// begin [file=”C:\\UseForward.jsp”;from=(20,10);to=(23,24)]
if (true) {
out.clear();
String _jspx_qfStr = “”;
_jspx_qfStr = _jspx_qfStr + “?employee=” + “Joe”;
_jspx_qfStr = _jspx_qfStr + “&title=” + “Senior Engineer”;
pageContext.forward(“MCPHome.jsp” + _jspx_qfStr);
return;
}
// end
// begin
out.write(“\r\n “);
// end
// begin [file=”C:\\UseForward.jsp”;from=(24,10);to=(26,4)]
}
You can see that there is nothing really complicated about this code snippet. It simply decides
which JSP to forward to, creates the query string, and calls the pageContext.forward()
method with the name of the JSP and the query string.
The <jsp:plugin> Standard Action
The <jsp:plugin> action enables a JSP author to generate HTML that contains the appropriate
client-browser independent constructs, for example, OBJECT or EMBED , that will result in the
download of the Java plug-in and subsequent execution of the specified applet or JavaBeans
component.
The <jsp:plugin> tag is replaced by either an <object> or <embed> tag, as appropriate for the
requesting user agent, and is written to the output stream of the response object. The attributes
of the <jsp:plugin> action provide configuration data for the presentation of the element. The
syntax of the <jsp:plugin> action is as follows:
Search WWH ::




Custom Search