File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 61448

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] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: Basic question on jsp