Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session object in WML/WAP

 
Bob Bueckers
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
 
Javier Gomez
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic