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
Session and object
Joined: May 30, 2007
Jun 23, 2008 17:48:00
For the below bean object in
how would I do the same in Java scriplet?
<jsp:useBean id="age" class="packOne.UserData" scope="session"/>
Here is my attempt but it didnt work. Please advise because I think I
need to fetch session info?
String age = new UserData(); ... out.write(age.getName());
[ June 23, 2008: Message edited by: Dan Parsons ]
Author and ninkuma
Joined: Jan 10, 2002
Jun 23, 2008 18:02:00
<jsp:useBean> actually does quite a bit, and exactly what it does depends on what you feed it.
Perhaps it'd be best to tell us what you are trying to accomplish.
And "it doesn't work" doesn't tell us much. I usually take it to mean that your keyboard burst into flames.
Asking smart questions
Books by Bear
Joined: Jun 19, 2008
Jun 24, 2008 03:16:00
when you use the action tag it creates a varible with the name you mentined in the id.
So, you cannot create a
varible with the same name.
You are instantiating UserData and assigning to String. Its Not Possible.
Please post your question clearly.........
Thanks And Regards
Bennet Xavier. X
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Session and object
How to set JSESSIONID's maxAge?
Vector using logic:iterate in struts framework
Session Value Persistence
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013