File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Need help on struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need help on struts" Watch "Need help on struts" New topic
Author

Need help on struts

prakash china
Greenhorn

Joined: Aug 17, 2005
Posts: 18
I am new to struts

I am trying to map a action class with another action class having different form �..

The sample config is

<action path="/ApplicationApprovalAction"
type="com.abc.manage.web.ApplicationApprovalAction"
name="serForm"
scope="session">
<forward name="success" path="/displayPendingApplicationAction.do"/>
</action>


<action path="/displayPendingApplicationAction"
type="com.abc.manage.web.DisplayPendingApplicationsAction"
name="loginForm"
scope="session">
<forward name="success" path="/ListPendingReimbursementApprovals.jsp"/>
</action>

The error I am getting is

HTTP Status 500 - No input attribute for mapping path /displayPendingApplicationAction

Please let me know if im doing any mistale�








[ November 27, 2006: Message edited by: Prakash.C ]

-----<br />Regards, <br />Prakash.C
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
My guess is that you need to add validate="false" attributes to one or more of your actions. By default validation is true, so I suspect that validation is failing and you are getting this error because there is not an input attribute.

- Brent
prakash china
Greenhorn

Joined: Aug 17, 2005
Posts: 18
Thanks a lot Brent , when I set the attribute validation = �false� I am not getting that error�.
But I want certain data�s to be transferred from one form bean to another form bean ( like serform to loginfor )� how can that be done �
-Prakash
Christian Nash
Ranch Hand

Joined: Jan 17, 2006
Posts: 107
Hi,
loginForm.setValue(serForm.getvalue()); in your ApplicationApprovalAction class.

[ November 28, 2006: Message edited by: Christian Nash ]

- Christian
archana vishwanath
Ranch Hand

Joined: Mar 09, 2004
Posts: 39
Check here for a similar example
http://javafasttrack.com/FirstStrutsAppl.html
 
 
subject: Need help on struts
 
Similar Threads
Getting the Parser Error struts
Cannot Find Bean inscope null
struts tiles error
Getting org.xml.sax.SAXParseException
Struts Cancel Button submits the form