You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sachin Tendulkar <sa...@yahoo.com> on 2001/03/08 20:04:46 UTC

text tag

Hi,
I am trying to use the html:text tag like this:
<html:text property="<%= FormConstants.LOGON_USERNAME
%>" size="16" maxlength="16"/>

when i execute the jsp i get the following error :
 javax.servlet.ServletException: runtime failure in
custom tag 'form'

but if for the property attribute I use a static
value,
I don't get the error(like property="username"). I
have checked the tag library descriptor and the 'text'
tag supports runtime expressions for attributes.
Also i didn't understand why I am getting the error in
the 'form' tag

Thanks
Sachin


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Re: text tag

Posted by Sachin Tendulkar <sa...@yahoo.com>.
yes I imported the file..i also tried the single
quotes but it doesn't seem to work..
--- Martin Cooper <ma...@tumbleweed.com>
wrote:
> Did you import the FormConstants class at the top of
> your JSP?
> 
> --
> Martin Cooper
> 
> ----- Original Message ----- 
> From: "Sachin Tendulkar" <sa...@yahoo.com>
> To: <st...@jakarta.apache.org>
> Sent: Thursday, March 08, 2001 11:04 AM
> Subject: text tag
> 
> 
> > Hi,
> > I am trying to use the html:text tag like this:
> > <html:text property="<%=
> FormConstants.LOGON_USERNAME
> > %>" size="16" maxlength="16"/>
> > 
> > when i execute the jsp i get the following error :
> >  javax.servlet.ServletException: runtime failure
> in
> > custom tag 'form'
> > 
> > but if for the property attribute I use a static
> > value,
> > I don't get the error(like property="username"). I
> > have checked the tag library descriptor and the
> 'text'
> > tag supports runtime expressions for attributes.
> > Also i didn't understand why I am getting the
> error in
> > the 'form' tag
> > 
> > Thanks
> > Sachin
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail. 
> > http://personal.mail.yahoo.com/
> 
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Re: text tag

Posted by Martin Cooper <ma...@tumbleweed.com>.
Did you import the FormConstants class at the top of your JSP?

--
Martin Cooper

----- Original Message ----- 
From: "Sachin Tendulkar" <sa...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Thursday, March 08, 2001 11:04 AM
Subject: text tag


> Hi,
> I am trying to use the html:text tag like this:
> <html:text property="<%= FormConstants.LOGON_USERNAME
> %>" size="16" maxlength="16"/>
> 
> when i execute the jsp i get the following error :
>  javax.servlet.ServletException: runtime failure in
> custom tag 'form'
> 
> but if for the property attribute I use a static
> value,
> I don't get the error(like property="username"). I
> have checked the tag library descriptor and the 'text'
> tag supports runtime expressions for attributes.
> Also i didn't understand why I am getting the error in
> the 'form' tag
> 
> Thanks
> Sachin
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/