• 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.
 
I am mighty! And this is a mighty small ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!