Link to home
Start Free TrialLog in
Avatar of princehyderabad
princehyderabad

asked on

how to create session

hi,

How can I create simple session in java class and assign a value. Remember I'm not using servlet. My Servlet is making call to other class a, and class a is calling class b etc., I like to know how can I set some value in class b based on some condition. So that finaly when it comes to <servlet fwd JSP> based on session value I can display few thing to user.

thx,
PH
Avatar of matthew016
matthew016
Flag of Belgium image

Not sure I follow but,
from the servlet, create the sessions and pass the session object to the classes ?
Avatar of princehyderabad
princehyderabad

ASKER

from the serlvet I know hwo to create.

I'm talking abt creating session in regular class
it's not possible in a regular class,
that's why I said to create in servlet and pass to regular classes.
But thing is based on certain condition or so i want to create session value if condition is not satisfied then i dont want to create session.
ASKER CERTIFIED SOLUTION
Avatar of matthew016
matthew016
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of mbvvsatish
mbvvsatish
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial