Page 3 of 4 FirstFirst 1234 LastLast
Results 41 to 60 of 67
  1. #41
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Hei Lema, Can You Tell Me Why Are You Using RemoteServiceServlet?

  2. #42
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    319
    Rep Power
    10

    Default

    actually lema your LoginServlet is called now problem in Other servlet..
    can you post the code of that servlets


    sanjeev

  3. #43
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

  4. #44
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Hei Lema,
    Why Are You Using RemoteService Servlet?

  5. #45
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    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);

  6. #46
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Lema,
    Can you tell me why are you using RemoteService Servlet?

  7. #47
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    If you are using google webtool kit, then it works differently

  8. #48
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

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

  9. #49
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    oh ya, i use gwt, but for application page. logi page is of jsp

  10. #50
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Yaah, Exactly. Now Lets Look forward for the solution.

  11. #51
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    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)

  12. #52
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    I am unable to understand. Can you brief me?

  13. #53
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    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

  14. #54
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Now application Is Running right?

  15. #55
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    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)

  16. #56
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    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.

  17. #57
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Ok Got It, go ahead.

  18. #58
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    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

  19. #59
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    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>

  20. #60
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    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 02:22 PM.

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. get data from servlet to html
    By lema in forum Java Servlet
    Replies: 7
    Last Post: 05-22-2008, 04:00 PM
  2. Replies: 0
    Last Post: 04-04-2008, 09:36 AM
  3. Getting HTML form values in Servlet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-17-2007, 09:13 PM
  4. How to retrieve data from servlet
    By valery in forum Java Servlet
    Replies: 1
    Last Post: 08-06-2007, 08:25 PM
  5. how to upload a file along with html form data
    By pranith in forum Java Servlet
    Replies: 3
    Last Post: 07-30-2007, 02:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •