Hi,
I am doing a sample login application using login jsp, tomcat and gwt.
I would like to pass username from the login servlet after a
successful login to gwt entrypoint class either using a session or
static variable
Code snippet using static variable
Login servlet
pubcli class LoginServlet extends HttpServlet{
public void doPost(Request, Response){
// call to database
String username = request.getParameter("userName") ;
if(loginSuccess){
Sample.loginUserId = username ;
}
}
}
Sample EntryPoint class
public class Sample implenents EntryPoint{
public static String loginUserId ;
public void onModuleLoad(){
Window.alert(loginUserId) ;
}
}
output: null ;
Any suggestions are appreciable.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---