You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by apachep2 <ap...@hotmail.com> on 2003/04/08 18:02:29 UTC

nested:image tag didn't work in IE

Is there a way to read the value submitted with a html image.

 

My action form is an order form. My order form is made up of
itemMarkedForRemoval and list of line items. I want to use a Remove
image beside each line item to indicate if I want to remove this item
(by id) from the list. In the iteration,

 

<nested:iterate property="lineItemsAsArray"> <= iterate over the
Collection-converted array

            <TR>

                        <TD>

                                    <nested:text property="amount">

<nested:define id="hID" property="id"/>

<nested:image property="../itemMarkedForRemoval" value='<%= hID %>'
src="px/remove-button.gif" border="0" align="middle"/>

                        </TD>

            </TR>

</nested:iterate>

 

When I click Remove and struts tries to populate the value of the image
in MSIE, I got the following exception. It worked in Mozilla.

 

java.lang.IllegalArgumentException: No bean specified
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
yUtils.java:837)
        at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
        at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
        at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
        at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:816)
 

 

Sorry, no radio button or checkbox or hyperlink is allowed in this case.


RE: nested:image tag didn't work in IE

Posted by apachep2 <ap...@hotmail.com>.
Have to admit that the problem is caused by struts but rather the
browser. IE didn't submit itemMarkedForRemoval while Mozilla does.

-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com] 
Sent: April 8, 2003 1:16 PM
To: Struts Users Mailing List
Subject: RE: nested:image tag didn't work in IE

Yeah...  Parse the request in the action for the arbitrary names e.g.
itemMarkedForRemoval + hID and process accordingly.  I used to it do it
this
way until I started using DynaForms.  I have to say that life's been
much
easier since going to DynaForms.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 1:10 PM
To: 'Struts Users Mailing List'
Subject: RE: nested:image tag didn't work in IE


Any other way around. I don't use dynaform.

-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: April 8, 2003 12:57 PM
To: Struts Users Mailing List
Subject: RE: nested:image tag didn't work in IE

Even more so, it sounds like you might consider using a Mapped back form
where you can set arbitrarly named attribute.  Then name your images
dynamically in the forms, e.g. itemMarkedForRemoval + hID.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:37 PM
To: 'Struts Users Mailing List'
Subject: RE: nested:image tag didn't work in IE


The name is actually the property, in my case itemMarkedForRemoval.
Image_name.x and .y tell me the coordinators of the image. But I need
the value.

-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: April 8, 2003 12:33 PM
To: Struts Users Mailing List
Subject: RE: nested:image tag didn't work in IE

The x and y co-ordinates are submitted with an image as image_name.x and
image_name.y where image_name is the name of the image.  I suppose in
your
case the hID would be the image name.  I might  start by looking into a
mapped back form to handle this.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:02 PM
To: struts-user@jakarta.apache.org
Subject: nested:image tag didn't work in IE


Is there a way to read the value submitted with a html image.



My action form is an order form. My order form is made up of
itemMarkedForRemoval and list of line items. I want to use a Remove
image beside each line item to indicate if I want to remove this item
(by id) from the list. In the iteration,



<nested:iterate property="lineItemsAsArray"> <= iterate over the
Collection-converted array

            <TR>

                        <TD>

                                    <nested:text property="amount">

<nested:define id="hID" property="id"/>

<nested:image property="../itemMarkedForRemoval" value='<%= hID %>'
src="px/remove-button.gif" border="0" align="middle"/>

                        </TD>

            </TR>

</nested:iterate>



When I click Remove and struts tries to populate the value of the image
in MSIE, I got the following exception. It worked in Mozilla.



java.lang.IllegalArgumentException: No bean specified
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
yUtils.java:837)
        at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
        at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
        at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
        at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:816)




Sorry, no radio button or checkbox or hyperlink is allowed in this case.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: nested:image tag didn't work in IE

Posted by Michael Marrotte <ma...@nicusa.com>.
Yeah...  Parse the request in the action for the arbitrary names e.g.
itemMarkedForRemoval + hID and process accordingly.  I used to it do it this
way until I started using DynaForms.  I have to say that life's been much
easier since going to DynaForms.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 1:10 PM
To: 'Struts Users Mailing List'
Subject: RE: nested:image tag didn't work in IE


Any other way around. I don't use dynaform.

-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: April 8, 2003 12:57 PM
To: Struts Users Mailing List
Subject: RE: nested:image tag didn't work in IE

Even more so, it sounds like you might consider using a Mapped back form
where you can set arbitrarly named attribute.  Then name your images
dynamically in the forms, e.g. itemMarkedForRemoval + hID.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:37 PM
To: 'Struts Users Mailing List'
Subject: RE: nested:image tag didn't work in IE


The name is actually the property, in my case itemMarkedForRemoval.
Image_name.x and .y tell me the coordinators of the image. But I need
the value.

-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: April 8, 2003 12:33 PM
To: Struts Users Mailing List
Subject: RE: nested:image tag didn't work in IE

The x and y co-ordinates are submitted with an image as image_name.x and
image_name.y where image_name is the name of the image.  I suppose in
your
case the hID would be the image name.  I might  start by looking into a
mapped back form to handle this.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:02 PM
To: struts-user@jakarta.apache.org
Subject: nested:image tag didn't work in IE


Is there a way to read the value submitted with a html image.



My action form is an order form. My order form is made up of
itemMarkedForRemoval and list of line items. I want to use a Remove
image beside each line item to indicate if I want to remove this item
(by id) from the list. In the iteration,



<nested:iterate property="lineItemsAsArray"> <= iterate over the
Collection-converted array

            <TR>

                        <TD>

                                    <nested:text property="amount">

<nested:define id="hID" property="id"/>

<nested:image property="../itemMarkedForRemoval" value='<%= hID %>'
src="px/remove-button.gif" border="0" align="middle"/>

                        </TD>

            </TR>

</nested:iterate>



When I click Remove and struts tries to populate the value of the image
in MSIE, I got the following exception. It worked in Mozilla.



java.lang.IllegalArgumentException: No bean specified
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
yUtils.java:837)
        at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
        at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
        at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
        at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:816)




Sorry, no radio button or checkbox or hyperlink is allowed in this case.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: nested:image tag didn't work in IE

Posted by apachep2 <ap...@hotmail.com>.
Any other way around. I don't use dynaform.

-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com] 
Sent: April 8, 2003 12:57 PM
To: Struts Users Mailing List
Subject: RE: nested:image tag didn't work in IE

Even more so, it sounds like you might consider using a Mapped back form
where you can set arbitrarly named attribute.  Then name your images
dynamically in the forms, e.g. itemMarkedForRemoval + hID.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:37 PM
To: 'Struts Users Mailing List'
Subject: RE: nested:image tag didn't work in IE


The name is actually the property, in my case itemMarkedForRemoval.
Image_name.x and .y tell me the coordinators of the image. But I need
the value.

-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: April 8, 2003 12:33 PM
To: Struts Users Mailing List
Subject: RE: nested:image tag didn't work in IE

The x and y co-ordinates are submitted with an image as image_name.x and
image_name.y where image_name is the name of the image.  I suppose in
your
case the hID would be the image name.  I might  start by looking into a
mapped back form to handle this.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:02 PM
To: struts-user@jakarta.apache.org
Subject: nested:image tag didn't work in IE


Is there a way to read the value submitted with a html image.



My action form is an order form. My order form is made up of
itemMarkedForRemoval and list of line items. I want to use a Remove
image beside each line item to indicate if I want to remove this item
(by id) from the list. In the iteration,



<nested:iterate property="lineItemsAsArray"> <= iterate over the
Collection-converted array

            <TR>

                        <TD>

                                    <nested:text property="amount">

<nested:define id="hID" property="id"/>

<nested:image property="../itemMarkedForRemoval" value='<%= hID %>'
src="px/remove-button.gif" border="0" align="middle"/>

                        </TD>

            </TR>

</nested:iterate>



When I click Remove and struts tries to populate the value of the image
in MSIE, I got the following exception. It worked in Mozilla.



java.lang.IllegalArgumentException: No bean specified
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
yUtils.java:837)
        at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
        at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
        at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
        at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:816)




Sorry, no radio button or checkbox or hyperlink is allowed in this case.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: nested:image tag didn't work in IE

Posted by Michael Marrotte <ma...@nicusa.com>.
Even more so, it sounds like you might consider using a Mapped back form
where you can set arbitrarly named attribute.  Then name your images
dynamically in the forms, e.g. itemMarkedForRemoval + hID.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:37 PM
To: 'Struts Users Mailing List'
Subject: RE: nested:image tag didn't work in IE


The name is actually the property, in my case itemMarkedForRemoval.
Image_name.x and .y tell me the coordinators of the image. But I need
the value.

-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com]
Sent: April 8, 2003 12:33 PM
To: Struts Users Mailing List
Subject: RE: nested:image tag didn't work in IE

The x and y co-ordinates are submitted with an image as image_name.x and
image_name.y where image_name is the name of the image.  I suppose in
your
case the hID would be the image name.  I might  start by looking into a
mapped back form to handle this.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:02 PM
To: struts-user@jakarta.apache.org
Subject: nested:image tag didn't work in IE


Is there a way to read the value submitted with a html image.



My action form is an order form. My order form is made up of
itemMarkedForRemoval and list of line items. I want to use a Remove
image beside each line item to indicate if I want to remove this item
(by id) from the list. In the iteration,



<nested:iterate property="lineItemsAsArray"> <= iterate over the
Collection-converted array

            <TR>

                        <TD>

                                    <nested:text property="amount">

<nested:define id="hID" property="id"/>

<nested:image property="../itemMarkedForRemoval" value='<%= hID %>'
src="px/remove-button.gif" border="0" align="middle"/>

                        </TD>

            </TR>

</nested:iterate>



When I click Remove and struts tries to populate the value of the image
in MSIE, I got the following exception. It worked in Mozilla.



java.lang.IllegalArgumentException: No bean specified
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
yUtils.java:837)
        at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
        at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
        at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
        at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:816)




Sorry, no radio button or checkbox or hyperlink is allowed in this case.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: nested:image tag didn't work in IE

Posted by apachep2 <ap...@hotmail.com>.
The name is actually the property, in my case itemMarkedForRemoval.
Image_name.x and .y tell me the coordinators of the image. But I need
the value.

-----Original Message-----
From: Michael Marrotte [mailto:marrotte@nicusa.com] 
Sent: April 8, 2003 12:33 PM
To: Struts Users Mailing List
Subject: RE: nested:image tag didn't work in IE

The x and y co-ordinates are submitted with an image as image_name.x and
image_name.y where image_name is the name of the image.  I suppose in
your
case the hID would be the image name.  I might  start by looking into a
mapped back form to handle this.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:02 PM
To: struts-user@jakarta.apache.org
Subject: nested:image tag didn't work in IE


Is there a way to read the value submitted with a html image.



My action form is an order form. My order form is made up of
itemMarkedForRemoval and list of line items. I want to use a Remove
image beside each line item to indicate if I want to remove this item
(by id) from the list. In the iteration,



<nested:iterate property="lineItemsAsArray"> <= iterate over the
Collection-converted array

            <TR>

                        <TD>

                                    <nested:text property="amount">

<nested:define id="hID" property="id"/>

<nested:image property="../itemMarkedForRemoval" value='<%= hID %>'
src="px/remove-button.gif" border="0" align="middle"/>

                        </TD>

            </TR>

</nested:iterate>



When I click Remove and struts tries to populate the value of the image
in MSIE, I got the following exception. It worked in Mozilla.



java.lang.IllegalArgumentException: No bean specified
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
yUtils.java:837)
        at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
        at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
        at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
        at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:816)




Sorry, no radio button or checkbox or hyperlink is allowed in this case.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: nested:image tag didn't work in IE

Posted by Michael Marrotte <ma...@nicusa.com>.
The x and y co-ordinates are submitted with an image as image_name.x and
image_name.y where image_name is the name of the image.  I suppose in your
case the hID would be the image name.  I might  start by looking into a
mapped back form to handle this.

--Michael Marrotte

-----Original Message-----
From: apachep2 [mailto:apachep2@hotmail.com]
Sent: Tuesday, April 08, 2003 12:02 PM
To: struts-user@jakarta.apache.org
Subject: nested:image tag didn't work in IE


Is there a way to read the value submitted with a html image.



My action form is an order form. My order form is made up of
itemMarkedForRemoval and list of line items. I want to use a Remove
image beside each line item to indicate if I want to remove this item
(by id) from the list. In the iteration,



<nested:iterate property="lineItemsAsArray"> <= iterate over the
Collection-converted array

            <TR>

                        <TD>

                                    <nested:text property="amount">

<nested:define id="hID" property="id"/>

<nested:image property="../itemMarkedForRemoval" value='<%= hID %>'
src="px/remove-button.gif" border="0" align="middle"/>

                        </TD>

            </TR>

</nested:iterate>



When I click Remove and struts tries to populate the value of the image
in MSIE, I got the following exception. It worked in Mozilla.



java.lang.IllegalArgumentException: No bean specified
        at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Propert
yUtils.java:837)
        at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
        at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
        at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
        at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:816)




Sorry, no radio button or checkbox or hyperlink is allowed in this case.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org