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