This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSP and the fly likes Basic question on jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Basic question on jsp " Watch "Basic question on jsp " New topic

Basic question on jsp

Johnson David

Joined: May 22, 2005
Posts: 27
Hi All,

Its a basic question on jsp.We know that all servlets require web.xml , but a jsp does'nt.

i just want to know why does'nt a jsp requires a web.xml.

correct me if i am wrong

thanks in advnace

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

All well-formed web applications should have at least a rudimentary deployment descriptor (web.xml).

You can get away without one for a simple JSP because the container handles loading the servlet generated on behalf of the JSP automatically.
[ October 17, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Basic question on jsp
It's not a secret anymore!