• Post Reply Bookmark Topic Watch Topic
  • New Topic

session object in WML/WAP  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how to access the session object in a JSP page that produces WML. I.E. '<%... session.getAttribute(...);... %>' Is this even possible? Is there even a session object created using a WAP browser?
Thanks
Bob
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Bob Bueckers:
Does anyone know how to access the session object in a JSP page that produces WML. I.E. '<%... session.getAttribute(...);... %>' Is this even possible? Is there even a session object created using a WAP browser?
Thanks
Bob


Yes you can. Whatever JSP is like an HttpServlet, so you can get the HttpServletRequest objet from the service(req,res) method. And this last object is provided with the getSession() method which returns the Session object.
I suggest you to have a look at the Servlets-API Documentation.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!