This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 13001
    
    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:
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: SERVLET-CONNECTIVITY
 
It's not a secret anymore!