hi every one.........

i am new  to GWT,i designed a login page. If login is success ,i want
to go home page else  i want to go login page. plz guide me how to do
this  navigation system in GWT.

for this navigation i used following code

Model model=new Model();
int x=model.verifyUser(username, password);

HttpServletRequest request = this.getThreadLocalRequest();
HttpServletResponse response = this.getThreadLocalResponse();
        RequestDispatcher rd=null;
                 if(x==1){

                         rd=request.getRequestDispatcher("/home.html");
                         }
                 else{

                         rd=request.getRequestDispatcher("/login.html");
                         }

                 rd.forward(request,response);
}

while i runing this sample i got folloeing exceptions and wraning

1) [WARN] Exception while dispatching incoming RPC call
java.io.IOException: Closed

2)[ERROR] 500 - POST /login/login (127.0.0.1) 1396 bytes
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to