Re: Help with a design issue that I'm stumped by....

Vic Cekvenich <[email protected]> Fri, 09 May 2003 13:58:21 -0400
Newsgroups gmane.comp.java.mvc.devel
Organization baseBeans Engineering
Message-ID <[email protected]>
I have never needed action chaining. You are just over anyalizing maybe.
Struts is MVC so there are 3 parts to everything.

Each page typycaly has a controller (action), to get to that page you 
call the action. (if you call jsp you are doing model 1, struts is model 
2, you call the action.... if you call action to get to page, you are 
doing Struts righ).

Page 1 is search.jsp so you call serachAct that forwards to it. (it also 
has a serachBena)

Page 2 is employeList.jsp so you call employListAct to get to it. (it 
also has a employListBean)

After you think of it some more.... I think maybe you figure no need to 
think in Struts. Somone else jump in.
.V

Rick Reumann wrote:

>On Fri, 09 May 2003 06:25:44 -0400
>Vic Cekvenich <[email protected]> wrote:
> 
>  
>
>>OK, LET ME UNDERLINE.
>>SEARCH FORM, HAS A SEARCH BEAN, HAS A SERCH ACTION, AND HAS NOTHING TO
>>
>>DO WITH LISTOFEMPLOYEESBEAN.
>>ONCE YOU SUBMIT ON SEARCH FORM, YOU GO TO LISTOFEMPLOYUESACTION.
>>THIS ACTION MAPING, IF YOU HAVE A FORMBEAN MAPPED IN ACTION MAPING
>>(YOU DO NOT NEED TO HAVE A FORMBEAN MAPED TO A READ ONLY FORM)  DOES
>>NOT NEED A SET SCOPE OR A NEW.
>>    
>>
>
>Ok, someone help me out... maybe I'm having a brain fart or something...
>The only way I can see to accomplish what you are suggesting is to chain
>the actions (usually people are against this). In other words where does
>the searchBean/searchAction mapping forward to? It would seem like to
>accomplish what you want you'd have to forward it to another action (
>ListOfEmployeesAction ) which in turn would then forward you to an
>eventual page with your list of employees.
>
>  
>

-- 
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced <a href ="baseBeans.com">Struts Training</a> and project recovery in North East. 
Open Source <a href ="baseBeans.com">Content Management</a>  basic
Portal sofware
Best practice<a href ="baseBeans.com">Supported Struts v.1.1</a>
framework ScafflodingXPress