|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

04-09-2008, 02:41 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Hei Lema, Can You Tell Me Why Are You Using RemoteServiceServlet?
|
|

04-09-2008, 02:46 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
|
|
|
actually lema your LoginServlet is called now problem in Other servlet..
can you post the code of that servlets
sanjeev
|
|

04-09-2008, 02:46 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
|
|

04-09-2008, 02:49 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Hei Lema,
Why Are You Using RemoteService Servlet?
|
|

04-09-2008, 02:51 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
i don't have any other servlet, there is only LoginServlet (in my application it is SmsDeliveryServiceImpl).
when i put HttpServlet instead of RemoteServiceServlet it shows errors on
this.getThreadLocalRequest().getSession(true).setAttribute("user", smdUser);
|
|

04-09-2008, 02:53 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Lema,
Can you tell me why are you using RemoteService Servlet?
|
|

04-09-2008, 02:56 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
If you are using google webtool kit, then it works differently
|
|

04-09-2008, 02:57 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
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!");
}
}
|
|

04-09-2008, 02:58 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
oh ya, i use gwt, but for application page. logi page is of jsp
|
|

04-09-2008, 02:59 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Yaah, Exactly. Now Lets Look forward for the solution.
|
|

04-09-2008, 03:06 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
helloooo? ..but.. the applicatin still doesn work..
you see, first problem appeared when i managed opening the application page ina different window - session lost data (String username. i need it, so that application can show different info for different users working at the same time)
|
|

04-09-2008, 03:08 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
I am unable to understand. Can you brief me?
|
|

04-09-2008, 03:08 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
mean, there are several groups of users. so one group uses info a, second group info b..etc.
then i decided to get approval from servlet into jsp page to decide if to open the application page (but on the same browser) or not to
|
|

04-09-2008, 03:10 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Now application Is Running right?
|
|

04-09-2008, 03:12 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
look,
1 - opens login page
2 - sends username&password to servlet
3 - servlet checks if the user (username&password) is authorised for using the application
4 - session saves username (to find the user's group, so to decide which info to show on the main Applicatin page)
|
|

04-09-2008, 03:13 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
no, doesn't.
actually i wanted to get an approval to jsp page (true or false boolean) from servlet right back after checking the user's authorization.
|
|

04-09-2008, 03:14 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
Ok Got It, go ahead.
|
|

04-09-2008, 03:15 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 91
|
|
|
no, doesn't.
actually i wanted to get an approval to jsp page (true or false boolean) from servlet right back after checking the user's authorization.
Please Explain the above
|
|

04-09-2008, 03:17 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
is it possible?.. to get boolean b from servlet after the check. for ex, like this:
<button name="enter" value="Enter SMD" onClick="location.href='http://localhost"8080/example/Applicatio.html'"></button>
|
|

04-09-2008, 03:18 PM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 38
|
|
|
or <button name="enter" value="Enter SMD" onClick="location.href=(b)?'http://localhost:8080/example/Applicatio.html':'http://localhost:8080/example/smderror.jsp'"></button>
Last edited by lema : 04-09-2008 at 03:22 PM.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|