You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by vikas rao <vi...@gmail.com> on 2007/05/01 06:40:24 UTC
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.
Re: HELP!!
Posted by Nuwan Chandrasoma <my...@gmail.com>.
i dont think so, there is some good learning stuff, you can start with this.
http://struts.apache.org/2.x/docs/bootstrap.html
http://www.infoq.com/articles/converting-struts-2-part1
Thanks,
Nuwan
----- Original Message -----
From: "vikas rao" <vi...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, May 01, 2007 9:13 AM
Subject: Re: HELP!!
> well, yeah i am starting from scratch,just beginning to learn struts, the
> thing is, i'd find it difficult to get help from the internet and books if
> i
> have to use the new version right?
>
> On 5/1/07, Dave Newton <ne...@yahoo.com> wrote:
>>
>> --- vikas rao <vi...@gmail.com> wrote:
>> > I am using struts 2.0.6...
>>
>> Yes, well, that will be an issue if you're trying to
>> use the Struts 1 tags.
>>
>> If you're using Struts 2 you should use the Struts 2
>> tags.
>>
>> > u think its better i use the earlier version???
>>
>> If you're starting from scratch I would use Struts 2.
>>
>> d.
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam? Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: HELP!!
Posted by Dave Newton <ne...@yahoo.com>.
--- vikas rao <vi...@gmail.com> wrote:
> well, yeah i am starting from scratch,just beginning
> to learn struts, the thing is, i'd find it difficult
> to get help from the internet and books if i have to
> use the new version right?
Depends.
For Struts 2 the old WebWork in Action book is still
largely relevent, a new Struts in Action will be
published soon, the wiki has a ton of information (not
always super-easy to find, but it's often there),
there's a mailing list (this one), and a large
quantity of sample applications in the download.
If you want to maintain old Struts 1 programs then S1
is the way to go. But I don't know how much *new*
development will be S1 (although I know of at least
one company that pretty much refuses to move forward).
d.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: HELP!!
Posted by vikas rao <vi...@gmail.com>.
well, yeah i am starting from scratch,just beginning to learn struts, the
thing is, i'd find it difficult to get help from the internet and books if i
have to use the new version right?
On 5/1/07, Dave Newton <ne...@yahoo.com> wrote:
>
> --- vikas rao <vi...@gmail.com> wrote:
> > I am using struts 2.0.6...
>
> Yes, well, that will be an issue if you're trying to
> use the Struts 1 tags.
>
> If you're using Struts 2 you should use the Struts 2
> tags.
>
> > u think its better i use the earlier version???
>
> If you're starting from scratch I would use Struts 2.
>
> d.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: HELP!!
Posted by Dave Newton <ne...@yahoo.com>.
--- vikas rao <vi...@gmail.com> wrote:
> I am using struts 2.0.6...
Yes, well, that will be an issue if you're trying to
use the Struts 1 tags.
If you're using Struts 2 you should use the Struts 2
tags.
> u think its better i use the earlier version???
If you're starting from scratch I would use Struts 2.
d.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: HELP!!
Posted by vikas rao <vi...@gmail.com>.
I am using struts 2.0.6...some of the sample tutorials i saw all deal with
the 1.x versions, plus, the jar files which come along with the "lib" folder
of the struts 2.0.6 version seem quite different from the 1.x versions...u
think its better i use the earlier version???
On 5/1/07, Nuwan Chandrasoma <my...@gmail.com> wrote:
>
> what is the struts version you are using?
>
> Thanks,
>
> Nuwan.
>
>
> ----- Original Message -----
> From: "vikas rao" <vi...@gmail.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Tuesday, May 01, 2007 4:40 AM
> 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.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: HELP!!
Posted by Nuwan Chandrasoma <my...@gmail.com>.
what is the struts version you are using?
Thanks,
Nuwan.
----- Original Message -----
From: "vikas rao" <vi...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, May 01, 2007 4:40 AM
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.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: HELP!!
Posted by Nuwan Chandrasoma <my...@gmail.com>.
hi,
try this. and see. and you dont need to add any entry in your web.xml
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"
%>
Thanks,
Nuwan
----- Original Message -----
From: "vikas rao" <vi...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, May 01, 2007 4:40 AM
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.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: HELP!!
Posted by Craig McClanahan <cr...@apache.org>.
On 4/30/07, nagesh.kumar <na...@interglobetechnologies.com> 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:vikas5678@gmail.com]
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: HELP!!
Posted by "nagesh.kumar" <na...@interglobetechnologies.com>.
<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>
Thanks & Regards
Nagesh Reddy
-----Original Message-----
From: vikas rao [mailto:vikas5678@gmail.com]
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: HELP!!
Posted by "Raghupathy, Gurumoorthy" <Gu...@nielsen.com>.
In your web.xml
Try
=================================================================
<taglib>
<taglib-uri>/html</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/nested</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/bean</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/logic</taglib-uri>
<taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location>
</taglib>
=================================================================
And in the jsp
<%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/nested" prefix="nested" %>
<%@ taglib uri="/html" prefix="html" %>
I hope this helps ..
Regards
Guru
-----Original Message-----
From: vikas rao [mailto:vikas5678@gmail.com]
Sent: 01 May 2007 05:40
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org