File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
passing value from servlet to jsp
Joined: Oct 28, 2004
Dec 02, 2004 19:25:00
hi.....how i want to pass a value in
Joined: Sep 14, 2001
Dec 02, 2004 19:32:00
Hi Suka Hati,
You can place your value into session or request attributes.
Example in servlet...
String myvalue = "Value"; request.setAttribute("VAL", myvalue);
Example in jsp...
<% String val = (String) request.getAttribute("VAL"); %>
Correct me if I am wrong...
Hope this help
Joined: Jun 13, 2002
Dec 03, 2004 01:33:00
You can passs the value through the URL
I agree. Here's the link:
subject: passing value from servlet to jsp
Scriptlets -> Time and Space Complexity
attributes and listener hfsj question 10
session value from jsp -> Servlet / Servlet -> jsp
Do you have elegant way of nullpointer exceptions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014