File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:include & jsp:param

 
riteshrr mani
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have two JSPs

I have used the the follwing code in jsp1

<jsp:include page="jsp2.jsp">
<jsp:param name="para1" value="para1"/>
<jsp:param name="para2" value="para2"/>
<jsp:include>

I can access these parameters using request.getParameter() in jsp2.jsp
for the first time when the page loads.

but after I submit (to the jsp1.jsp itself), i get the value of the
parameters as null.

PLEASE Help!!
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because now you are accessing a new request object. Read about request lifecycle.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic