View Single Post
  #48 (permalink)  
Old 04-09-2008, 03:57 PM
lema lema is offline
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
actually.. i think it is for getting methods work in server side. like this for eaxple:

public void checkLogin(String u, String p) throws Exception {
LoginRemote loginRemote =(LoginRemote)
findObject("example.server/login/remote");



SmdUser smdUser = loginRemote.checkLogin(u, p);
if (smdUser != null) {
this.getThreadLocalRequest().getSession(true).setA ttribute("user", smdUser);
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("http://111.111.11.111/example/Application.html");
dispatcher.forward(getThreadLocalRequest(), getThreadLocalResponse());

} else {
Window.alert("You are not SMD member!");
}
}
Reply With Quote