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
  #61 (permalink)  
Old 04-09-2008, 03:20 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
You mean to say that, after verifying user you need to take the user to exact presentation page?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #62 (permalink)  
Old 04-09-2008, 03:26 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
i want to open the application(main) or error page by onClick in jsp/html.
Bookmark Post in Technorati
Reply With Quote
  #63 (permalink)  
Old 04-09-2008, 03:27 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hei,
Did you try it?
Bookmark Post in Technorati
Reply With Quote
  #64 (permalink)  
Old 04-09-2008, 03:29 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hei Lema,
Write this Logic In Server Side Script.
Bookmark Post in Technorati
Reply With Quote
  #65 (permalink)  
Old 04-09-2008, 03:31 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #66 (permalink)  
Old 04-09-2008, 03:35 PM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
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")
}
Bookmark Post in Technorati
Reply With Quote
  #67 (permalink)  
Old 04-09-2008, 03:43 PM
Member
 
Join Date: Apr 2008
Posts: 38
lema is on a distinguished road
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??
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 11:00 AM.


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