It's not a secret anymore!
The moose likes Servlets and the fly likes jsp param tag(urgent) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp param tag(urgent)" Watch "jsp param tag(urgent)" New topic

jsp param tag(urgent)

sandeep rane

Joined: Jun 29, 2001
Posts: 5
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" />
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

Joined: May 29, 2001
Posts: 48
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

Joined: May 29, 2001
Posts: 48
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 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:
subject: jsp param tag(urgent)
It's not a secret anymore!