I have been doing a bit of testing and solved my problem, but I don't know why.
I am using an image instead of a button for a submit.
My html read:
This worked under struts 1.0.2.
I got the BeanUtil error under Struts 1.1-b3 when I pressed that button. I noticed
that I could press all my other .gif image buttons. The only difference was that for
the other buttons I was using name="deleteBtn" name="printBtn" etc. When I changed
the name to "saveBtn" the submit worked properly with saveBtn.x and saveBtn.y being
passed as parameters.
Anyone have an explanation ???
-Original Message-
From: Kandi Potter
Sent: Monday, March 24, 2003 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error with BeanUtils
Was the issue below solved?
I am getting the same error. I have just upgraded to Struts 1.1-b3 from Struts
1.0.2. I'm using Tomcat 3.3.1.I wasn't getting the error on my 'Post' before the
upgrade.I have no trouble with the 'Get'.
Thanks for any suggestions.
Kandi Potter
>make sure you specified a "name" attribute for your "action" element in struts-config
>
> scope="request" input="/myAction.jsp">
>
>
>
>-Message d'origine-
>De : teknokrat [ mailto:[EMAIL PROTECTED]
>Envoyé : Monday, March 17, 2003 5:11 PM
>À : [EMAIL PROTECTED]
>Objet : having a problem updating my form - starnge error with beanUtils
I have a jsp page that is being populated OK by the form bean. However -
when i make changes to the fields and submit it to my action i get the
following error
java.lang.IllegalArgumentException: No bean specified
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:849)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
Does anyone know what this means and what is going on here?
thanks
p.s. the form is a simple etc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]