Re: checking fielderrors into javascript

2011-06-24 Thread Dave Newton
Then your JSP engine is not configured for modern JSP. Fix that first. Dave On Jun 24, 2011 4:13 PM, "Arpan" wrote: > 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 wrote: > >> Let's take a f

Re: checking fielderrors into javascript

2011-06-24 Thread Arpan
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 wrote: > Let's take a further step back. > > What do you believe happens if this is your JSP? > > > >alert("${theActionProperty}"); >

Re: checking fielderrors into javascript

2011-06-24 Thread Dave Newton
Let's take a further step back. What do you believe happens if this is your JSP? alert("${theActionProperty}"); Now try it, and see how it compares with your expectations. Dave On Friday, June 24, 2011, Arpan wrote: > yes right..but i cant use the same in javascript.. > >

Re: checking fielderrors into javascript

2011-06-24 Thread Arpan
yes right..but i cant use the same in javascript.. On Fri, Jun 24, 2011 at 10:19 PM, Dave Newton 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

Re: checking fielderrors into javascript

2011-06-24 Thread Dave Newton
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

Re: checking fielderrors into javascript

2011-06-24 Thread Arpan
Can I aceess the field errors in java script? like : document.getElementById("fieldErrors") or how can i get the value? On Fri, Jun 24, 2011 at 10:08 PM, Dave Newton wrote: > On Friday, June 24, 2011, Arpan wrote: > > In my JavaScript method I want to check if the page has got any > fielderror

Re: checking fielderrors into javascript

2011-06-24 Thread Dave Newton
On Friday, June 24, 2011, Arpan wrote: > In my JavaScript method I want to check if the page has got any fielderror > or messege. > > How to access these struts2 objects into java script.Any example? Just write the JavaScript in something (JSP, FreeMarker, etc.) that processes server-side code. O

checking fielderrors into javascript

2011-06-24 Thread Arpan
Hi, In my JavaScript method I want to check if the page has got any fielderror or messege. How to access these struts2 objects into java script.Any example? Thanks