aspose file tools*
The moose likes Servlets and the fly likes content types jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "content types jsp?" Watch "content types jsp?" New topic
Author

content types jsp?

Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
Im new to servlets world...I dont know if my question is right...
Can I put a content type of jsp instead of text/html ? I want to return a jsp instead of html.
Or the way is, I just straightly called jsp instead of servlet that returns text/html.
My objective is from login html form I want a to call a page(jsp or servlet?) that validates and redirects to other page if successfully login.
Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61755
    
  67

Can I put a content type of jsp instead of text/html ? I want to return a jsp instead of html.

That makes no sense. The purpose of a JSP is to be executed on the server in order to format an HTML page to send to the client. The browser wouldn't know what to make of a JSP sent directly to it.
My objective is from login html form I want a to call a page(jsp or servlet?) that validates and redirects to other page if successfully login.

Sounds like what you want to do is to submit the login form to a servlet which uses whatever means it will to validate the user, and then either forwards or redirects to the appropriate JSP upon success, or back to the login page upon failure.
hth,
bear
[ June 22, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: content types jsp?