Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes Do we have to configure web.xml for using jstl tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Do we have to configure web.xml for using jstl tags" Watch "Do we have to configure web.xml for using jstl tags" New topic
Author

Do we have to configure web.xml for using jstl tags

Hasif Subair
Greenhorn

Joined: Aug 12, 2009
Posts: 24
Hi,

I am new to JSP, am looking to create a login page using <c:choose> tag.

here is my code.


When i run this jsp, am getting this error.


Do i have to configure something in web.xml.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Hasif Subair wrote:Do i have to configure something in web.xml.

No.

Also, the URI in your code doesn't match the URI in the error message. Have you posted the correct information?

While you do not need to declare anything the web.xml to use JSTL, the web.xml must be declared correctly as using the Servlets 2.4 or 2.5 XML Schema. The 2.3 DTD will not do.

This is all covered in the JSP FAQ.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Do we have to configure web.xml for using jstl tags