On 4/30/07, nagesh.kumar <[EMAIL PROTECTED]> wrote:
<taglib-uri>/WEB-INF/tlds/struts-html.tld </taglib-uri>
Please remove " " blank space after .tld in the above line it should be
like
<taglib-uri>/WEB-INF/tlds/struts-html.tld</taglib-uri>
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="http://struts.apache.org/tags-html" %>
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.
Craig
[1] http://struts.apache.org/1.x/userGuide/index.html
Thanks & Regards
Nagesh Reddy
-----Original Message-----
From: vikas rao [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 01, 2007 10:10 AM
To: Struts Users Mailing List
Subject: HELP!!
Hi,
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>
<taglib-uri>/WEB-INF/tlds/struts-html.tld </taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
</taglib>
</web-app>
I am sooo frustrated, cant make a single struts program work :(.
help!!
vikas.
DISCLAIMER:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]