This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need help on struts" Watch "Need help on struts" New topic

Need help on struts

prakash china

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"
<forward name="success" path="/"/>

<action path="/displayPendingApplicationAction"
<forward name="success" path="/ListPendingReimbursementApprovals.jsp"/>

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

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 �
Christian Nash
Ranch Hand

Joined: Jan 17, 2006
Posts: 107
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
I agree. Here's the link:
subject: Need help on struts
It's not a secret anymore!