Re: image property

2003-09-08 Thread Peter Smith
You might try using an ImageButtonBean.  A lot of the work you are doing is
done in this bean.  Here is the documentation:

http://jakarta.apache.org/struts/api/org/apache/struts/util/ImageButtonBean.
html

HTH, Peter

-- 
Peter Smith
Software Engineer
InfoNow Corporation

 From: Das, Amar [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 Date: Mon, 8 Sep 2003 09:53:22 -0400
 To: [EMAIL PROTECTED]
 Subject: image property
 
 Hi,
 
 The struts documentation of attribute property for image tag says that
 The property name of this image tag. The parameter names for the request
 will appear as property.x and property.y, the x and y representing the
 coordinates of the mouse click for the image. A way of retrieving these
 values through a form bean is to define getX(), getY(), setX(), and setY()
 methods, and specify your property as a blank string (property=)
 
 The image tag does not have a name or id attribute.  If I have more than one
 image tag in a form how do I differentiate one getX() from another?  For
 example, let consider that I have two image tags in my form.  The ActionForm
 has the following lines
 
 public class MyForm extends ActionForm {
 private String x;
 
 public String getX(){
 return(this.x);
 }
 ..
 
 Following the documentation how do I get the value of x in my JSP page?  And
 how do I differentiate x values for the two image tags?
 
 Thanks in advance
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image property

2003-09-08 Thread Das, Amar
Is there any example of using these utility tags?

Amar

-Original Message-
From: Peter Smith [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 08, 2003 10:09 AM
To: Struts Users Mailing List
Subject: Re: image property

You might try using an ImageButtonBean.  A lot of the work you are doing is
done in this bean.  Here is the documentation:

http://jakarta.apache.org/struts/api/org/apache/struts/util/ImageButtonBean.
html

HTH, Peter

-- 
Peter Smith
Software Engineer
InfoNow Corporation

 From: Das, Amar [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 Date: Mon, 8 Sep 2003 09:53:22 -0400
 To: [EMAIL PROTECTED]
 Subject: image property
 
 Hi,
 
 The struts documentation of attribute property for image tag says that
 The property name of this image tag. The parameter names for the request
 will appear as property.x and property.y, the x and y representing the
 coordinates of the mouse click for the image. A way of retrieving these
 values through a form bean is to define getX(), getY(), setX(), and setY()
 methods, and specify your property as a blank string (property=)
 
 The image tag does not have a name or id attribute.  If I have more than
one
 image tag in a form how do I differentiate one getX() from another?  For
 example, let consider that I have two image tags in my form.  The
ActionForm
 has the following lines
 
 public class MyForm extends ActionForm {
 private String x;
 
 public String getX(){
 return(this.x);
 }
 ..
 
 Following the documentation how do I get the value of x in my JSP page?
And
 how do I differentiate x values for the two image tags?
 
 Thanks in advance
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]