Thanks for the response. I however do not understand what you mean by "sounds like your gwt is using plain-old html, and not a jsp". The redirect I am performing is to the host page (initial html page that invokes the GWT application). Can this be a jsp instead of a html?
Also, the difficulty I am encountering with the sendRedirect or request dispatcher approach is that once a user has signed out of the application, I have a "login again" link which invokes the same AuthenticatorServlet which redirects to the GWT initial html page and this redirect fails with a message that the "response has already been committed". I am essentially looking for some technique to avoid this message upon second login from the user. Thanks. On Mar 9, 2:28 am, rjcarr <[email protected]> wrote: > For your situation, I think using the redirect makes the most sense. > This tells the browser to request another resource (i.e., the gwt > html). > > The other option is to use a request dispatcher. This is basically a > servlet calling another servlet, but it sounds like your gwt is using > plain-old html, and not a jsp, so I think the dispatcher would be over > kill. > > So, in summary, I think you're doing it right! :) > > On Mar 8, 1:47 pm, jayanth <[email protected]> wrote: > > > > > I have an AuthenticatorServlet that among other things displays a page > > to capture username and password and upon form submission validates > > credentials against an LDAP server. From this servlet, I would like to > > invoke the GWT initial html page and am looking for best practices to > > do this. > > > I am currently performing a response.sendRedirect (..) which appears > > to do the job but fear this may not be the best way to achieve what I > > am looking for. > > > Any help is appreciated. Thanks.- Hide quoted text - > > - Show quoted text - -- 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.
