Posted By:
B_LING
Posted On:
Wednesday, April 18, 2001 08:16 AM
How can I pass the parameters from the first JSP page to the forward JSP page by using jsp:forward param? I tried to use: ... String ModuleCodeSession = session.getValue("ModuleCode").toString(); ( <--the value is "XX1002" for example>) ... <%out.print(ModuleCodeSession);%>" /> ... in Page1.jsp And to get the params in Page2.jsp by using ... String ModuleCodeSession = request.getParameter("ModuleCodeSession"); ... while I get the value is NULL thought it 's not null in Page1.jsp Since the Page1.jsp gets some form Params from the another JSP page which contains a form, I guess it may confused the params p
More>>
How can I pass the parameters from the first JSP page to the forward JSP page by using jsp:forward param? I tried to use:
...
String ModuleCodeSession = session.getValue("ModuleCode").toString(); (
<--the value is "XX1002" for example>)
...
<%out.print(ModuleCodeSession);%>" />
...
in Page1.jsp
And to get the params in Page2.jsp by using
...
String ModuleCodeSession = request.getParameter("ModuleCodeSession");
...
while I get the value is NULL thought it 's not null in Page1.jsp
Since the Page1.jsp gets some form Params from the another JSP page which contains a form, I guess it may confused the params passing to the Page2.jsp page. I also have have the detail code, could any body could help me out? Thanks a lot in advanced!