This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes can action work well without formbean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can action work well without formbean?" Watch "can action work well without formbean?" New topic
Author

can action work well without formbean?

charlse li
Greenhorn

Joined: Aug 03, 2004
Posts: 14
1..i don't know whether the action can work well without formbean?

2..in any bean ,can we pass formbean to it ?
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4458
    
    6

1..i don't know whether the action can work well without formbean?

Yes, you can create an Action that does not make use of an ActionForm.

2..in any bean ,can we pass formbean to it ?

Yes, you can pass a form bean to any other class but be sure to keep the MVC pattern in mind. Passing a form bean around indiscriminately can lead to bad designs.


Junilu - [How to Ask Questions] [How to Answer Questions]
charlse li
Greenhorn

Joined: Aug 03, 2004
Posts: 14
many thanks !
nice to meet you,,,i am from China,what about you?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can action work well without formbean?