This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlets calling HTML 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 "Servlets calling HTML" Watch "Servlets calling HTML" New topic
Author

Servlets calling HTML

Prasanna Santosh
Greenhorn

Joined: Mar 12, 2010
Posts: 5
Hey there, i just created two Html pages, once the user enters information in the first page, the servlet is called and username/password is verifed, upon success i should display second html file

How can this be done ?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "Servlets" in a forum completely dedicated to questions on Servlets isn't very helpful.

Please go back and change your post to add a more meaningful subject by clicking the


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

You can forward, or you can redirect. As it's an HTML file rather than a JSP, a redirect is best as a forward is pretty useless in that scenario.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlets calling HTML
 
Similar Threads
mapping .jsp to .html
Simple question concerning dates, JSP and Javabeans
How To Set All the Textfields in a Web Page to READONLY?
HTML parser
Using color in a pane