I'm fairly new to Struts and have just built my first mini-project. I have a basic question that I couldn't find addressed in the mail archives.
I think I understand the "input" half of a user interaction - when information is input by the user, it is handled on the server via the ActionServlet which delegates to the associated FormBean and Action. The Action invokes the business logic to process the data and update the model. If there is an error, then control is forwarded to the JSP page which uses the FormBean to repopulate the input fields and can also display the errors. My question concerns the "output" side when there is no error. The JSP displays information using tags and standard JSP features. If there is a complex logic required to create the information for the JSP, where should that logic be placed and invoked? Obviously business logic should be placed in model beans, but what about the component that invokes the various bean methods? This is the equivalent of the Action on the "input" side. Also, what role if any should the FormBean play? This logic should not be in the input Action because the JSP could be called from multiple Actions. Sorry to be so long-winded, but I'm trying to make sure I understand the framework before building larger apps. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

