You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Billy Ng <kw...@earthlink.net> on 2003/01/13 19:57:49 UTC
How to detect Input Image
Is there a way to find a <html:image properties="delete"/ ....> is hit? I am using the following code which is working very good.
(!"0".equals(getRequest().getParameter("delete.y")) && !"0".equals(getRequest().getParameter("delete.x")))
However, this looks really urgly. Is there any get() and set() methods that I can use in ActionForm to get x and y int?
Thanks!
Billy Ng
Re: How to detect Input Image
Posted by Billy Ng <kw...@earthlink.net>.
Wow, looks cool! However, if I can get the request object in the
ActionForm, the code can be much shorter.
Billy Ng
----- Original Message -----
From: "Robert Taylor" <rt...@mulework.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, January 13, 2003 11:21 AM
Subject: RE: How to detect Input Image
> See http://husted.com/struts/tips/001.html
>
> robert
>
> > -----Original Message-----
> > From: Billy Ng [mailto:kwokng@earthlink.net]
> > Sent: Monday, January 13, 2003 1:58 PM
> > To: struts-user@jakarta.apache.org
> > Subject: How to detect Input Image
> >
> >
> > Is there a way to find a <html:image properties="delete"/ ....>
> > is hit? I am using the following code which is working very good.
> >
> >
> > (!"0".equals(getRequest().getParameter("delete.y")) &&
> > !"0".equals(getRequest().getParameter("delete.x")))
> >
> > However, this looks really urgly. Is there any get() and set()
> > methods that I can use in ActionForm to get x and y int?
> >
> > Thanks!
> >
> > Billy Ng
> >
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: How to detect Input Image
Posted by Robert Taylor <rt...@mulework.com>.
See http://husted.com/struts/tips/001.html
robert
> -----Original Message-----
> From: Billy Ng [mailto:kwokng@earthlink.net]
> Sent: Monday, January 13, 2003 1:58 PM
> To: struts-user@jakarta.apache.org
> Subject: How to detect Input Image
>
>
> Is there a way to find a <html:image properties="delete"/ ....>
> is hit? I am using the following code which is working very good.
>
>
> (!"0".equals(getRequest().getParameter("delete.y")) &&
> !"0".equals(getRequest().getParameter("delete.x")))
>
> However, this looks really urgly. Is there any get() and set()
> methods that I can use in ActionForm to get x and y int?
>
> Thanks!
>
> Billy Ng
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>