gwt2 - Gwt accessing Session id in Client side -
ATM I have a JSP (my host page) where I have set session ID through scriptlet with requested object . I save this information in a hidden field and read it with the Live Dom object. Is there a better way to do this ? Thanks in advance for the help.
Kuku
Based on your setup, it is valid to hold a session ID The way I believe you have written a part of the web application in GWT and it is written in some other language. Your host page is JSP, so I believe the non-GWT portion of your application is also dynamic.
I do not think the proposed solution works using the GWT service call in this case. Since you can not match the sessions ID of incoming AJAX calls to the server.
Instead of using a hidden field, you can convert session IDs into encoded URLs and get it from there, getParameter (. ..):
< P>But I really like the solution with hidden filed because it does not affect url. If you encode the transient information in the URL, then you may lose the ability to bookmark it.
Comments
Post a Comment