Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

session object in WML/WAP  RSS feed

 
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.
 
A feeble attempt to tell you about our stuff that makes us money
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!