|
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!");
}
}
|