Re: Form bean returns null in forward action??

2004-11-21 Thread Dakota Jack
The Struts architecture is *integrated*.  The form bean is initialized
by the controller network because it is noted in the
struts-config.xml.  You have two choices: (1) let the ForwardAction
know about the form bean and accept that it works that way; (2) look
at the actual code and see what really happens so that you understand
why you need to note the form bean in the struts-config.xml?

Jack

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

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



Form bean returns null in forward action??

2004-11-21 Thread Flemming G. Jensen
Hi List,
We are using the validator plug-in and tiles in our project.
On a page I have 3 submit buttons in 3 different html forms. The first  
html form has a corresponding
Formbean and an Action class. The second form has a corresponding action  
class, which does not
use the form bean, and the 3. html-form has a corresponding ForwardAction.

When a user submits some input from the first form the page is reloaded.  
Some informations
from the this form are rendered in the second form together with  
radiobuttons, so the user can
select items in the second form and submit the selected item. This action  
deletes the selected item
in a collection.

The 3. html-form is just a submit button with an associated ForwardAction.  
The ForwardAction has validate set to
false. When one submits the 3. form I get an exception saying the form  
bean returns null for this action.
If I configure the ForwardAction with the form, which is one the page I do  
not get the exception.

This confuses me. Why do I have to configure the ForwardAction with the  
form bean? The form and the ForwardAction
has nothing to do with each other except that they are on the same jsp  
page?

Regards
Flemming
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]