File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60053
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do we have to configure web.xml for using jstl tags
 
Similar Threads
JSTL choose not executing as expected
Struts action not returning page on first click of button
how to get sessionscope boolean varible
Best choice for pagination?
Implementation of google charts in JSP