wood burning stoves 2.0*
The moose likes Servlets and the fly likes SERVLET-CONNECTIVITY Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "SERVLET-CONNECTIVITY" Watch "SERVLET-CONNECTIVITY" New topic
Author

SERVLET-CONNECTIVITY

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I HAVE CREATED HTML PAGE FROM THAT I M ACCEPTING USER NAME & PASSWORD & SUBMIT BUTTON OF THIS HTML PAGE IS CALLING MY SERVLET.
IN SERVLET I M CHECKING USER NAME & PASSWORD.
IF USER NAME & PASSWORD IS CORRECT THEN I WANT TO DISPLAY SOME OTHER HTML PAGE WHICH IS PREVIOUSLY CREATED.
BUT I DONT WANT TO WRITE HTML CODING IN MY SERVLET PROG.
HOW TO GET THIS?
response.Redirect(url),method is not working.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
<hint>don't write in all caps - it looks like you are shouting</hint>
The method you want is in HttpServletResponse -
sendRedirect( urlstring );
Bill
------------------
author of:
 
 
subject: SERVLET-CONNECTIVITY
 
Similar Threads
response
Help Needed in building my application.
what to use html page or a servlet
Servlet and JDBC
redirection problem