Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





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.

Reply
 
LinkBack Thread Tools Display Modes
  #41 (permalink)  
Old 04-09-2008, 02:41 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hei Lema, Can You Tell Me Why Are You Using RemoteServiceServlet?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #42 (permalink)  
Old 04-09-2008, 02:46 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
actually lema your LoginServlet is called now problem in Other servlet..
can you post the code of that servlets


sanjeev
Bookmark Post in Technorati
Reply With Quote
  #43 (permalink)  
Old 04-09-2008, 02:46 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
and the browser url changes from http://localhost:8080/example/Login.jsp to http://localhost:8080/sms-delivery/application
Bookmark Post in Technorati
Reply With Quote
  #44 (permalink)  
Old 04-09-2008, 02:49 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hei Lema,
Why Are You Using RemoteService Servlet?
Bookmark Post in Technorati
Reply With Quote
  #45 (permalink)  
Old 04-09-2008, 02:51 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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);
Bookmark Post in Technorati
Reply With Quote
  #46 (permalink)  
Old 04-09-2008, 02:53 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Lema,
Can you tell me why are you using RemoteService Servlet?
Bookmark Post in Technorati
Reply With Quote
  #47 (permalink)  
Old 04-09-2008, 02:56 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
If you are using google webtool kit, then it works differently
Bookmark Post in Technorati
Reply With Quote
  #48 (permalink)  
Old 04-09-2008, 02:57 PM
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!");
}
}
Bookmark Post in Technorati
Reply With Quote
  #49 (permalink)  
Old 04-09-2008, 02:58 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
oh ya, i use gwt, but for application page. logi page is of jsp
Bookmark Post in Technorati
Reply With Quote
  #50 (permalink)  
Old 04-09-2008, 02:59 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Yaah, Exactly. Now Lets Look forward for the solution.
Bookmark Post in Technorati
Reply With Quote
  #51 (permalink)  
Old 04-09-2008, 03:06 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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)
Bookmark Post in Technorati
Reply With Quote
  #52 (permalink)  
Old 04-09-2008, 03:08 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
I am unable to understand. Can you brief me?
Bookmark Post in Technorati
Reply With Quote
  #53 (permalink)  
Old 04-09-2008, 03:08 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #54 (permalink)  
Old 04-09-2008, 03:10 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Now application Is Running right?
Bookmark Post in Technorati
Reply With Quote
  #55 (permalink)  
Old 04-09-2008, 03:12 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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)
Bookmark Post in Technorati
Reply With Quote
  #56 (permalink)  
Old 04-09-2008, 03:13 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #57 (permalink)  
Old 04-09-2008, 03:14 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Ok Got It, go ahead.
Bookmark Post in Technorati
Reply With Quote
  #58 (permalink)  
Old 04-09-2008, 03:15 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #59 (permalink)  
Old 04-09-2008, 03:17 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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>
Bookmark Post in Technorati
Reply With Quote
  #60 (permalink)  
Old 04-09-2008, 03:18 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
get data from servlet to html lema Java Servlet 7 05-22-2008 05:00 PM
how to search xml file data based on the given keyword from html form? nicemothi XML 0 04-04-2008 10:36 AM
Getting HTML form values in Servlet Java Tip Java Tips 0 11-17-2007 09:13 PM
How to retrieve data from servlet valery Java Servlet 1 08-06-2007 09:25 PM
how to upload a file along with html form data pranith Java Servlet 3 07-30-2007 03:33 AM


All times are GMT +3. The time now is 04:38 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org