Here is the code on the server that initially returns the sessionID. I
don't think there is anything exotic here, but maybe I'm wrong?
In the GWT docs it says that FormSubmitCompleteEvent.getResults()
returns the HTML of the response. In IE this isn't including the
<pre></pre> in Firefox it is.
public class LoginService extends HttpServlet {
protected void doGet(HttpServletRequest req, HttpServletResponse
resp)
throws ServletException, IOException {
System.out.println("In LoginService");
Login login = new Login(req);
resp.getWriter().print(login.execute());
resp.flushBuffer();
}
class Login {
private HttpServletRequest req;
protected Login(HttpServletRequest req) {
this.req = req;
}
private String execute() {
if
(validate(req.getParameter("un"),req.getParameter("pw"))) {
System.out.println("sessionID in LoginServer= "
+ req.getSession
(true).getId());
return req.getSession(true).getId();
} else {
return "failed";
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---