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 <davelnew...@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.deb...@gmail.com> wrote: > > yes right..but i cant use the same in javascript.. > > > > On Fri, Jun 24, 2011 at 10:19 PM, Dave Newton <davelnew...@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-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >