Jsp2.jsp Sample
This topic inludes the source code for the Jsp2.jsp Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/struts/strutsModule/
Sample Source Code
01 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
02 <%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
03 <%@ page import="org.apache.struts.action.ActionForm" %>
04 <%@ page import="struts.strutsInterop.JpfFormBean" %>
05
06 <html>
07 <head>
08 <title>JSP 2</title>
09 </head>
10 <body>
11 <h3 align="center">Struts JSP page: Jsp2.jsp</h3>
12 <hr width="95%"/>
13 <br/>
14 <font color="blue">
15 <h3 align="center">This JSP page is part of Struts module strutsModule.</h3>
16 </font>
17 <center>
18 <font color="red" size="4">
19 <p>
20 <%
21 JpfFormBean tmpForm = (JpfFormBean) request.getSession().getAttribute("jpfFormBean");
22 out.write(tmpForm.getField1());
23 %>
24 </font>
25 <br/><br/>
26 <p>The following is a Struts tag.</p>
27 <p>
28 <html:link action="strutsAction2">Continue</html:link>
29 </p>
30 </center>
31 </body>
32 </html>
|