Have a look at www.leanonme.org, I have placed a detailed description and sample the for reference.
Thanks, Adam S. Grohs [EMAIL PROTECTED] ----- Original Message ----- From: "Kwang-Shi Shu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 29, 2001 11:46 AM Subject: RE: Javascruot with html:errors > Adam, > > Yes, I am interested in learning more. Thanks. > > Shu, Kwang-shi | Tel 732-460-7848 > Village Networks, Inc. | Fax 732-460-9851 > 246 Industrial Way West | > Eatontown, NJ 078724 | email: [EMAIL PROTECTED] > > > -----Original Message----- > From: Adam Grohs [mailto:[EMAIL PROTECTED]] > Sent: Saturday, September 29, 2001 11:30 AM > To: [EMAIL PROTECTED] > Subject: Re: Javascruot with html:errors > > > This response is not necessarily true. It is possible to call a particular > JavaScript method or function from the <html:errors /> tag. I worked on a > team from iXL, Inc. and we have just completed a very sophisticated error > handling mechanism for www.hallmarkstories.com that allows errors to be > thrown by an action class through the struts error tag and then each error > that is thrown refers to a specific key in the AppResource.properties file > that invokes a Javascript method for throwing a client side error. This > allows both server-side and client-side validation to be handled by one set > of presentation layer code. I would be very happy to explain the details > further if you would like more information. > > Ex. > error.header=<script language="JavaScript"> > error.email.invalid=throwError("Please enter a valid email > address") > error.header=</script> > > Adam S. Grohs > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, September 24, 2001 12:06 AM > Subject: Re: Javascruot with html:errors > > > > If I understand what you're asking, it's not possible. JavaScript is > > executed at the client (e.g. the browser), while JSP, including the > > <html:errors> tag, is executed on the server. > > > > -- > > Martin Cooper > > > > > > ----- Original Message ----- > > From: "Francois Duchaussoy" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, September 23, 2001 9:13 PM > > Subject: Javascruot with html:errors > > > > > > > Hi, > > > > > > Would anyone know how to call a javascript method from a <html:errors/> > > tag? > > > Basically I would like to highlight a field where an error occurs... > > > > > > Any ideas?? > > > Francois. > > > > > > > >

