I need to call one jsp from another jsp also i need to pass two parameters.
For this in the first jsp i am using <jsp:forward> element, also i am
passing two parameters. But in the second jsp i am not able to retrieve
parameters. How can i.
This is the snippet of code.
loginjsp.jsp :(first jsp file)
<jsp:forward page="distjsp.jsp">
<jsp:param name="role" value="role1"/>
<jsp:param name="id" value="user1"/>
distjsp.jsp :(second jsp file)
<%
String role = request.getParameter("role");
String user = request.getParameter("id");
System.out.println("in distjsp user="+user+"type:"+role);
%>
in the second jsp it is retreving null values.
can somebody help me.
TIA,
Haribabu.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets