Hi Paraman
These are the two actions you're talkin' about:

<action path="/selectProcessAreas" name="processAreasForm" scope="session"
type="cmmieval.web.struts.actions.SelectProcessAreasAction"
input="/prepareEvaluation.do">
  <forward name="success" path="/executeEvaluation.do"/>
</action>
<action path="/executeEvaluation"
type="cmmieval.web.struts.actions.ExecuteEvaluationAction"
name="evaluationForm" scope="request" validate="false">
 <forward name="success" path="/evaluation.jsp"/>           
</action>

Now I see that the first one forwards a processAreasForm to the second,
which in turn accepts evaluationForm

That's very likely to be your problem
So.. you have three options I guess
- The one you found: setting the "redirect" attribute to true you will not
forward the request so there will be no processAreasForm
- You make sure the actionforms for the two actions match (either changing
one of the two, or implementing another action that takes processAreasForm)
- You don't specify any bean in the first action


-----Messaggio originale-----
Da: Paraman [mailto:[EMAIL PROTECTED] 
Inviato: marted́ 18 maggio 2004 3.15
A: Struts Users Mailing List
Oggetto: Re: java.lang.IllegalArgumentException: No bean specified

Richard,
Firstly I should apologize for disturbing you. I have solved this problem by
setting the 'redirect' attribute of the forward element which invoked the
executeEvaluation action to 'true'. This forward is nested in another action
called 'selectProcessAreas', thus, without setting the  'redirect'
attribute, Struts will try to mapping the request parameters of this action
to the form properties of the 'executeEvaluation' action and therefore
caused the exception.

By the way, I can not understand your meaning well. According to the struts
documentation, the 'input' attribute of an action mapping is described as
"Context-relative path of the input form to which control should be returned
if a validation error is encountered. Required if "name" is specified and
the input bean returns validation errors." Is it necessary to set it every
time I submit a form to an action, in addition to the 'name' attribute?

Regards,

Paraman
  
----- Original Message ----- 
From: "Richard Yee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 6:03 AM
Subject: Re: java.lang.IllegalArgumentException: No bean specified


> Paraman,
> Are you submitting a form to the action? If so, you
> don't have the name of the form-bean as the 'input'
> argument to your executeEvaluation action.
> 
> Regards,
> 
> Richard
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to