Grokbase Groups Struts user May 2007

On 4/30/07, nagesh.kumar wrote:
<taglib-uri>/WEB-INF/tlds/struts-html.tld </taglib-uri>

Please remove " " blank space after .tld in the above line it should be

The following advice presumes that you are using Struts 1.1 or later,
on a Servlet 2.4 or later servlet container (such as Tomcat 5.x or
6.x). If you are not, you really should. There are three important
things to note here:

* The suggestion from Nagesh is likely to have no
impact, because the servlet container should be
ignoring whitespace around the values of parameters
in the web.xml file. This is a good thing, because
you often want (for readability) to put the value on a
separate line.

* The <taglib> declaration that Vikas is using will *only*
work if you have manually copied the TLD to the
specified location (WEB-INF/tlds/struts-html.tld inside
the web application). But you should not have to do this,
which leads to the most important point.

* If you are using anything later than an ancient servlet
container, specifying a <taglib> declaration is totally
unnecessary, because the container will search inside
JAR files included in your webapp. What you should be
doing (for a Struts 1.x application) is declaring the following
in your pages:

<%@ taglib prefix="html" uri="" %>

and doing *nothing* in web.xml. The servlet container will
find the correct tag library descriptor in the struts JAR files
in WEB-INF/lib with no further actions on your part.

See the Struts 1.x user guide[1] for more current information.


Thanks & Regards
Nagesh Reddy

-----Original Message-----
From: vikas rao
Sent: Tuesday, May 01, 2007 10:10 AM
To: Struts Users Mailing List
Subject: HELP!!

I am getting this exception:
org.apache.jasper.JasperException: /index.jsp(9,0) No tag "" defined in tag
library imported with prefix "html"

My index.jsp file code starts like this:

<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>

so what is the problem?
I have added this in the web.xml file:

<taglib-uri>/WEB-INF/tlds/struts-html.tld </taglib-uri>

I am sooo frustrated, cant make a single struts program work :(.

The information in this e-mail is the property of InterGlobe and is confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message

To unsubscribe, e-mail:
For additional commands, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 11 | next ›
Discussion Overview
groupuser @
postedMay 1, '07 at 4:40a
activeMay 1, '07 at 9:20a



site design / logo © 2018 Grokbase