Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
It is sorta covered in the
JavaRanch Style Guide
subject: passing value from servlet to jsp
Do you have elegant way of nullpointer exceptions
Scriptlets -> Time and Space Complexity
session value from jsp -> Servlet / Servlet -> jsp
attributes and listener hfsj question 10
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013