DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22789

explicit navigation table i.s.o distributed navigatiuon and code duplication 

           Summary: explicit navigation table i.s.o distributed navigatiuon
                    and code duplication
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


My experience with struts is very limited but after reading a login example
application I have the following question
 
The handling
of an http request consists of three steps

1. validation of request
2. execute a (macro) command
3. navigate to next page

In the login example I read the navigation is programmed as part of the action 
code and distributed over the actions.

In my opinion navigation between the different pages should be independant from 
the action code. Execution of an action is a standalone
task that should not be mixed up with navigation to a next page

My suggestion is to put navigation in the controller servlet
The steps in the controller servlet are then as mentioned above

After executing the (macro)command the controller determines the page to 
navigate to according to a configurable navigation table.
The key to determine the next page is build from the current page and 
the link pressed. 

myNextPageId = myNavigationTable.get(myCurrentPageId, myPressedLinkId)

where myCurrentPageId and myPressedLinkId are provided via the request.

In case of exceptions the controller should navigate to an error page
or back to the from page (depending on the type of exception)

Probably thgis is already possible with the framework or you have reasons
not to design it like this. Please explain it to me or refer to a page
that I can read about this issue

Thanx

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

Reply via email to