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 param tag(urgent)

 
sandeep rane
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i tried the param tag of jsp with forward and include on winNT but it is not working
some code i am pasting here
<jsp:forward page="forward2.jsp" flush="true" >
<jsp aram name="ffname" value="sanjay" />
</jsp:forward>
but in forward2.jsp page when i am saying
String str = request.getParameter("ffname");
it is givimg me null value
the same thing is happening with include tag
please suggest me the answer

------------------
 
james gong
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
flush isnt a attribute of jsp:forward ,you delete it and try if again.
I wish it will help you. feed back if it work.
 
james gong
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not certain if you have a mistake in your code,I try the code im my pc,it work well.
jsp code in test1.jsp:
<jsp:forward page="test2.jsp" >
<jsp aram name="ffname" value="sanjay" />
</jsp:forward>

jsp code in test2.jsp:
<%String str = request.getParameter("ffname"); %>
<%out.print(str); %>
check your code carefully .I dont think it is a big problem .
wish it will help you .
good luck!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic