You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by An...@fiducia.de on 2006/10/30 10:45:56 UTC

bean:message-tag: how to write text with { .. }

Hello,

I want to have the following text to be in the messages-file:

if (typeof parent.frames[3].document.getElementsByName("iaktion")[0] !=
"undefined") {
parent.frames[3].document.getElementsByName("iaktion")[0].disabled=false;parent.frames[3].document.getElementsByName("iaktion")[1].disabled=false;}

The message throws this error:
org.apache.jasper.JasperException: can't parse argument number
parent.frames[3].document.getElementsByName("iaktion")[0].disabled=false;parent.frames[3].document.getElementsByName("iaktion")[1].disabled=false;

How can I prevent struts to try to parse this text?

Thanks,
kind regards,
Andreas Hartmann


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


Antwort: Re: bean:message-tag: how to write text with { .. } [*]

Posted by An...@fiducia.de.
Hello Chris,

I found a bugentry in the struts bug database
(https://issues.apache.org/struts/browse/STR-2304). As a solution, I'm using now
the argx-option of bean:message.

Thanks for your hint, to Martin, too!

Kind regards,
Andreas Hartmann

"Chris Pratt" <th...@gmail.com> wrote at 30.10.2006 17:54:47:

> It's not actually Struts that's parsing the text, it's Jasper, the JSP
> engine.  Is this text within a Scriplet block (<% %>) or an EL expression
> (${ })?  As far as Jasper is concerned, everything outside of scriplet
> blocks (or EL expressions) is just plain text.
>   (*Chris*)


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


Re: bean:message-tag: how to write text with { .. }

Posted by Chris Pratt <th...@gmail.com>.
It's not actually Struts that's parsing the text, it's Jasper, the JSP
engine.  Is this text within a Scriplet block (<% %>) or an EL expression
(${ })?  As far as Jasper is concerned, everything outside of scriplet
blocks (or EL expressions) is just plain text.
  (*Chris*)

On 10/30/06, Andreas.Hartmann@fiducia.de <An...@fiducia.de>
wrote:
>
>
> Hello,
>
> I want to have the following text to be in the messages-file:
>
> if (typeof parent.frames[3].document.getElementsByName("iaktion")[0] !=
> "undefined") {
> parent.frames
> [3].document.getElementsByName("iaktion")[0].disabled=false;parent.frames[3].document.getElementsByName("iaktion")[1].disabled=false;}
>
> The message throws this error:
> org.apache.jasper.JasperException: can't parse argument number
> parent.frames
> [3].document.getElementsByName("iaktion")[0].disabled=false;parent.frames[3].document.getElementsByName("iaktion")[1].disabled=false;
>
> How can I prevent struts to try to parse this text?
>
> Thanks,
> kind regards,
> Andreas Hartmann
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>