« Return to Thread: NoSuchMethodException - but the method's there

Re: NoSuchMethodException - but the method's there

by Daniel Kibler :: Rate this Message:

Reply to Author | View in Thread

Mike

Yes, I've already tried that. Actually, there are 2 differences. For the Appfuse file upload the method is added to the form action, i.e., action="uploadPhoto!upload" I get the same result (NoSuchMethodException) for either config.


Mike Horwitz wrote:
I'm no expert on Struts, so this is a bit of stab in the dark. I notice the
default action config in AppFuse omits the "method" attribute. Have you
tried:

      <action name="uploadPhoto" class="
com.getrolling.cis.webapp.action.PhotoAction">
           <interceptor-ref name="fileUploadStack"/>
           <result name="input">/WEB-INF/pages/photoForm.jsp</result>
           <result name="success">/WEB-INF/pages/photoForm.jsp</result>
           <result name="cancel" type="redirect">photos.html</result>
       </action>

Mike

 « Return to Thread: NoSuchMethodException - but the method's there