You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by andy wix <st...@hotmail.com> on 2004/09/13 18:49:32 UTC

tag

Hi,

I have an interface containing all my field size definitions and wish to use 
this info for setting the size of <html:text> tags, so that I don't have 
this hardcoded.
I get an error saying that this tag won't accept expressions if I do it the 
'old fashioned' way with a scriptlet expression (i.e., 
size="<%=Field.MY_SIZE%>")  and it just gets ignored if I use a jsp 
expression (i.e., size="<jsp:expression>Field.MY_SIZE</jsp:expression>").
What's the normal approach?

Thanks,
Andy

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: tag

Posted by Rick Reumann <st...@reumann.net>.
andy wix wrote the following on 9/13/2004 12:49 PM:

> I have an interface containing all my field size definitions and wish to 
> use this info for setting the size of <html:text> tags, so that I don't 
> have this hardcoded.
> I get an error saying that this tag won't accept expressions if I do it 
> the 'old fashioned' way with a scriptlet expression (i.e., 
> size="<%=Field.MY_SIZE%>")  

for the heck of it try <% out.print(Field.MY_SIZE); %> .... I think way 
back I remember having some odd behavior when using <%= inside of an 
html tag. I could be way off though.

and it just gets ignored if I use a jsp
> expression (i.e., size="<jsp:expression>Field.MY_SIZE</jsp:expression>").
> What's the normal approach?
> 
> Thanks,
> Andy
> 
> _________________________________________________________________
> Use MSN Messenger to send music and pics to your friends 
> http://www.msn.co.uk/messenger
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


-- 
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: tag

Posted by Bill Siggelkow <bi...@bellsouth.net>.
That's odd because according the doco on html:text and the TLD you can 
use a RTEXPR on the 'size' attribute.

andy wix wrote:
> Hi,
> 
> I have an interface containing all my field size definitions and wish to 
> use this info for setting the size of <html:text> tags, so that I don't 
> have this hardcoded.
> I get an error saying that this tag won't accept expressions if I do it 
> the 'old fashioned' way with a scriptlet expression (i.e., 
> size="<%=Field.MY_SIZE%>")  and it just gets ignored if I use a jsp 
> expression (i.e., size="<jsp:expression>Field.MY_SIZE</jsp:expression>").
> What's the normal approach?
> 
> Thanks,
> Andy
> 
> _________________________________________________________________
> Use MSN Messenger to send music and pics to your friends 
> http://www.msn.co.uk/messenger


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org