struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Grohs" <asgr...@hotmail.com>
Subject Re: Javascruot with html:errors
Date Tue, 02 Oct 2001 21:08:46 GMT
Have a look at www.leanonme.org, I have placed a detailed description and
sample the for reference.

Thanks,
Adam S. Grohs
agrohs@ixl.com

----- Original Message -----
From: "Kwang-Shi Shu" <kshu@vill.com>
To: <struts-user@jakarta.apache.org>
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: kshu@vill.com
>
>
> -----Original Message-----
> From: Adam Grohs [mailto:asgrohs@hotmail.com]
> Sent: Saturday, September 29, 2001 11:30 AM
> To: struts-user@jakarta.apache.org
> 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: <martin.cooper@tumbleweed.com>
> To: <struts-user@jakarta.apache.org>
> 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" <f.duchaussoy@ctru.auckland.ac.nz>
> > To: <struts-user@jakarta.apache.org>
> > 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.
> >
> >
> >
>
>



Mime
View raw message