A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
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
session value from jsp -> Servlet / Servlet -> jsp
attributes and listener hfsj question 10
Scriptlets -> Time and Space Complexity
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-2015