• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp param tag(urgent)

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

------------------
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic