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
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
ASKER
from the serlvet I know hwo to create.
I'm talking abt creating session in regular class
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.
that's why I said to create in servlet and pass to regular classes.
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
from the servlet, create the sessions and pass the session object to the classes ?