Page 4 of 4 FirstFirst ... 234
Results 61 to 67 of 67
  1. #61
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    You mean to say that, after verifying user you need to take the user to exact presentation page?

  2. #62
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    i want to open the application(main) or error page by onClick in jsp/html.

  3. #63
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default

    Hei,
    Did you try it?

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

    Default

    Hei Lema,
    Write this Logic In Server Side Script.

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

    Default

    so it is what we tried in whole thread. we decided to open application or error page there in servlet, not in jsp login page, through

    RequestDispatcher dispatcher =
    getServletContext().getRequestDispatcher("http://localhost:8080/example/Application.html");
    dispatcher.forward(getThreadLocalRequest(), getThreadLocalResponse());

    so that it opens in same browser :(

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

    Default

    Look Lema,
    You Write Here The Logic a simple if else condition to decide

    Whether user is authorised or not, if(){
    forward("success");
    }
    else{
    forward("failure")
    }

  7. #67
    lema is offline Member
    Join Date
    Apr 2008
    Posts
    38
    Rep Power
    0

    Default

    so i failed to get the result of "Whether user is authorised or not" onto jsp page.
    i use Strin username in servlet through request.getParameterValues("username");
    but if i want to send b to jsp page, how can i use it in jsp??

Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. get data from servlet to html
    By lema in forum Java Servlet
    Replies: 7
    Last Post: 05-22-2008, 05:00 PM
  2. Replies: 0
    Last Post: 04-04-2008, 10: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, 09: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, 03: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
  •