File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Sequence of Activities in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Sequence of Activities in Struts" Watch "Sequence of Activities in Struts" New topic
Author

Sequence of Activities in Struts

Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
I need to design a sequence diagram for table filter mechanism.

I have got a page which lists all the Certifications a person have. The table contails a filter on Certification Id. On selection of the certification id from drop down, i need to show the list of the certification for the selected certification.

I am confused with the flow. I am typically using Action servlet, action class and a delegate and DynaForm. All the business logic will be in a delegate.

Can anyone help me in understanding the flow of the activity???


TIA

Grishma
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4462
    
    6

The purpose of Struts is to abstract away the nitty-gritty details of the request-response cycle so I don't quite understand why you would want to include details of the Struts flow in what seems to be a diagram specific to your business. If anything, I would treat Struts as a black box:

1. Client: selects an item and submits request

2. Struts: process incoming request

3. Action: examine ActionForm and calls delegate method with appropriate parameters.

4. Delegate: processes the filter request

5. Action: receives results from delegate and populates ActionForm accordingly

6. Action: returns the appropriate ActionForward

7. Struts: processes ActionForward and response

8. Client: views response


If you really want to detail out #2 above:

#2 Details: invoke the following in order: instantiate ActionForm (if necessary or if form is in request scope), ActionForm.reset(), populate ActionForm fields from matching request parameters, ActionForm.validate() if validate is true in struts-config, Action.execute()
[ May 13, 2005: Message edited by: Junilu Lacar ]

Junilu - [How to Ask Questions] [How to Answer Questions]
Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
Thanx a lot Junilu...

That helped a lot...One more doubt...

If i have 6 -7 colmuns in table and out 6-7 columns i've filter on say 4 columns...how do i implement the filter???

TIA

Grishma
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sequence of Activities in Struts