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:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 6:22 PM
To: [EMAIL PROTECTED]
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....
 

begin:vcard 
n:Tataryn;Craig
tel;home:952-884-6752
tel;work:952-842-5576
x-mozilla-html:TRUE
url:http://www.computer-programmer.org
org:Compuware;Professional Division
adr:;;3600 West 80th St. Suite 400;Bloomington;MN;55431;United States of America
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Staff Analyst
fn:Craig Tataryn
end:vcard

Reply via email to