struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arpan <arpan.deb...@gmail.com>
Subject Re: checking fielderrors into javascript
Date Fri, 24 Jun 2011 20:12:38 GMT
Not yet, Actually it shows  as a string itself  ${theActionProperty}.So I
dont get the actual value.

On Fri, Jun 24, 2011 at 10:49 PM, Dave Newton <davelnewton@gmail.com> wrote:

> Let's take a further step back.
>
> What do you believe happens if this is your JSP?
>
> <html>
>    <body>
>        <script>alert("${theActionProperty}");</script>
>    </body>
> </html>
>
> Now try it, and see how it compares with your expectations.
>
> Dave
>
> On Friday, June 24, 2011, Arpan <arpan.debroy@gmail.com> wrote:
> > yes right..but i cant use the same in javascript..
> >
> > On Fri, Jun 24, 2011 at 10:19 PM, Dave Newton <davelnewton@gmail.com>
> wrote:
> >
> >> On Fri, Jun 24, 2011 at 12:47 PM, Arpan wrote:
> >> > Can I aceess the field errors in java script?
> >> > like : document.getElementById("fieldErrors") or how can i get the
> value?
> >>
> >> ...
> >>
> >> Let's take a step back: how would you access a simple action property
> >> in JavaScript, assuming, say, you were doing it on a JSP page?
> >>
> >> var foo = "${theActionProperty}";
> >>
> >> Correct?
> >>
> >> Dave
> >>
> >> ---------------------------------------------------------------------
> >> 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message