You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Greg Ludington <gl...@gmail.com> on 2005/10/01 00:02:36 UTC
Re: embed jstl or other struts tag or scriplets within html:text
> <html:text property="itemization_Line1CashPrice" style="width:90px"
> styleClass="textField" onfocus="this.select(); this.className='fieldActive'"
> onblur="this.className='fieldInactive'; reCalcFields(<%=executionState}%>);"
> size="4" maxlength="10" />
Two comments:
1) You have a closed curly brace in that attribute -- I am assuming
that is a typo in this email only.
2) I do not believe you can mix text and RT expressions in the same
attribute of a tag -- I have not been working in JSP in a while, but
you could combine it into one RT expression.
<html:text property="itemization_Line1CashPrice" style="width:90px"
styleClass="textField" onfocus="this.select(); this.className='fieldActive'"
onblur="<%="this.className='fieldInactive';
reCalcFields("+executionState+");%>"
size="4" maxlength="10" />
or, alternatively, create that variable in a scriptlet beforehand. If
you are using EL, you would have to do something similar.
On 9/30/05, Dilip Ladhani <di...@hotmail.com> wrote:
> Hey guys,
>
> This does not work for me at all. Anyone have any ideas
>
> <html:text property="itemization_Line1CashPrice" style="width:90px"
> styleClass="textField" onfocus="this.select(); this.className='fieldActive'"
> onblur="this.className='fieldInactive'; reCalcFields(<%=executionState}%>);"
> size="4" maxlength="10" />
>
> I have tried to put jstl (<c:out value="${executionState}"/>), other struts
> tag (bean:write) instead of the (<%=executionState}%>). Nothing
> works....Please help
>
>
>
> ---------------------------------------------------------------------
> 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