You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Grushko <mi...@redstar.spb.ru> on 2001/02/14 16:06:41 UTC
Please, help with strange exception
Hello everubody!
I have in my test file string like this:
#22: <struts:form action="logon.do" name="logonForm"
type="rss.simple.LogonForm">
and I get this exception (I have empty string number 23):
org.apache.jasper.compiler.CompileException:
E:\java\tomcat\webapps\simple\indexNew.jsp(23,1) According to the TLD
attribute property is mandatory for tag text
at
org.apache.jasper.compiler.TagBeginGenerator.validate(TagBeginGenerator.java
:149)
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:119
)
at
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
rseEventListener.java:761)
at
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
istener.java:138)
at
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
tListener.java:911)
at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:194)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:813)
...
Help! What I do wrong?
Michael Grushko.
Re: Please, help with strange exception
Posted by Rob Leland <Ro...@freetocreate.org>.
<struts:form ....>
^
Also make sure you are not mixing 0.5 Tags and 1.0 Tags
The old tag librariy is
struts.tld
the new ones are
struts-html.tld
struts-logic.tld
etc ...
Re: Please, help with strange exception
Posted by Craig Tataryn <Cr...@msdw.com>.
The current version of the docs:
http://jakarta.apache.org/struts/userGuide/building_view.html#forms
doesn't seem to have the problem. Are you using an old version of the
documents?
Craig.
Michael Grushko wrote:
> Thank you Craig. It is work now. Strange ... I took this name of
> attribute from documentation (3.3.1. - example)
>
> -----Original Message-----
> From: Craig Tataryn [mailto:Craig.Tataryn@msdw.com]
> Sent: Wednesday, February 14, 2001 7:11 PM
> To: struts-user@jakarta.apache.org
> Subject: Re: Please, help with strange exception
>
> As suspected, replace: <struts:text name="username"
> size="10"/> with <struts:text property="username"
> size="10"/>
>
> The name attribute is to be used to specify the name of the
> bean the property attribute applies to. In this case, you
> don't have to specify a bean name because it is within a
> <struts:form/> which will default the name attribute to the
> formBean setup for the current controller.
>
> Hope that helps,
>
> Craig.
>
>
>
--
I've been trying to change the world for years, but they just won't give
me the source code....
RE: Please, help with strange exception
Posted by Michael Grushko <mi...@redstar.spb.ru>.
Thank you Craig. It is work now. Strange ... I took this name of attribute
from documentation (3.3.1. - example)
-----Original Message-----
From: Craig Tataryn [mailto:Craig.Tataryn@msdw.com]
Sent: Wednesday, February 14, 2001 7:11 PM
To: struts-user@jakarta.apache.org
Subject: Re: Please, help with strange exception
As suspected, replace: <struts:text name="username" size="10"/> with
<struts:text property="username" size="10"/>
The name attribute is to be used to specify the name of the bean the
property attribute applies to. In this case, you don't have to specify a
bean name because it is within a <struts:form/> which will default the name
attribute to the formBean setup for the current controller.
Hope that helps,
Craig.
Re: Please, help with strange exception
Posted by Craig Tataryn <Cr...@msdw.com>.
As suspected, replace: <struts:text name="username" size="10"/> with
<struts:text property="username" size="10"/>
The name attribute is to be used to specify the name of the bean the property
attribute applies to. In this case, you don't have to specify a bean name
because it is within a <struts:form/> which will default the name attribute to
the formBean setup for the current controller.
Hope that helps,
Craig.
Michael Grushko wrote:
> Hello Craig!
>
> Thanx for answer. Here my file indexNew.jsp
>
> Michael.
>
> -----Original Message-----
> From: Craig Tataryn [mailto:Craig.Tataryn@msdw.com]
> Sent: Wednesday, February 14, 2001 6:22 PM
> To: struts-user@jakarta.apache.org
> Subject: Re: Please, help with strange exception
>
> Looks to me like you are using an <html:text/> tag (or in your case
> <struts:text/>, because it appears that your Taglib prefix is "struts")
> somewhere in your form and forgetting to have a "property" attribute
> present.
>
> Can you send us indexNew.jsp so we can see?
>
> Craig.
>
> Michael Grushko wrote:
>
> > Hello everubody!
> >
> > I have in my test file string like this:
> > #22: <struts:form action="logon.do" name="logonForm"
> > type="rss.simple.LogonForm">
> >
> > and I get this exception (I have empty string number 23):
> > org.apache.jasper.compiler.CompileException:
> > E:\java\tomcat\webapps\simple\indexNew.jsp(23,1) According to the TLD
> > attribute property is mandatory for tag text
> > at
> >
> org.apache.jasper.compiler.TagBeginGenerator.validate(TagBeginGenerator.java
> > :149)
> > at
> >
> org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:119
> > )
> > at
> >
> org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
> > rseEventListener.java:761)
> > at
> >
> org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
> > istener.java:138)
> > at
> >
> org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
> > tListener.java:911)
> > at
> >
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> > ner.java:194)
> > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:813)
> > ...
> >
> > Help! What I do wrong?
> >
> > Michael Grushko.
>
> --
> I've been trying to change the world for years, but they just won't give me
> the
> source code....
>
> ------------------------------------------------------------------------
> Name: indexNew.jsp
> indexNew.jsp Type: unspecified type (application/octet-stream)
> Encoding: quoted-printable
--
I've been trying to change the world for years, but they just won't give me the
source code....
RE: Please, help with strange exception
Posted by Michael Grushko <mi...@redstar.spb.ru>.
Hello Craig!
Thanx for answer. Here my file indexNew.jsp
Michael.
-----Original Message-----
From: Craig Tataryn [mailto:Craig.Tataryn@msdw.com]
Sent: Wednesday, February 14, 2001 6:22 PM
To: struts-user@jakarta.apache.org
Subject: Re: Please, help with strange exception
Looks to me like you are using an <html:text/> tag (or in your case
<struts:text/>, because it appears that your Taglib prefix is "struts")
somewhere in your form and forgetting to have a "property" attribute
present.
Can you send us indexNew.jsp so we can see?
Craig.
Michael Grushko wrote:
> Hello everubody!
>
> I have in my test file string like this:
> #22: <struts:form action="logon.do" name="logonForm"
> type="rss.simple.LogonForm">
>
> and I get this exception (I have empty string number 23):
> org.apache.jasper.compiler.CompileException:
> E:\java\tomcat\webapps\simple\indexNew.jsp(23,1) According to the TLD
> attribute property is mandatory for tag text
> at
>
org.apache.jasper.compiler.TagBeginGenerator.validate(TagBeginGenerator.java
> :149)
> at
>
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:119
> )
> at
>
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
> rseEventListener.java:761)
> at
>
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
> istener.java:138)
> at
>
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
> tListener.java:911)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> ner.java:194)
> at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:813)
> ...
>
> Help! What I do wrong?
>
> Michael Grushko.
--
I've been trying to change the world for years, but they just won't give me
the
source code....
Re: Please, help with strange exception
Posted by Craig Tataryn <Cr...@msdw.com>.
Looks to me like you are using an <html:text/> tag (or in your case
<struts:text/>, because it appears that your Taglib prefix is "struts")
somewhere in your form and forgetting to have a "property" attribute present.
Can you send us indexNew.jsp so we can see?
Craig.
Michael Grushko wrote:
> Hello everubody!
>
> I have in my test file string like this:
> #22: <struts:form action="logon.do" name="logonForm"
> type="rss.simple.LogonForm">
>
> and I get this exception (I have empty string number 23):
> org.apache.jasper.compiler.CompileException:
> E:\java\tomcat\webapps\simple\indexNew.jsp(23,1) According to the TLD
> attribute property is mandatory for tag text
> at
> org.apache.jasper.compiler.TagBeginGenerator.validate(TagBeginGenerator.java
> :149)
> at
> org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:119
> )
> at
> org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
> rseEventListener.java:761)
> at
> org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
> istener.java:138)
> at
> org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
> tListener.java:911)
> at
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> ner.java:194)
> at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:813)
> ...
>
> Help! What I do wrong?
>
> Michael Grushko.
--
I've been trying to change the world for years, but they just won't give me the
source code....