What I need is a simple action where a form is posted to, then chain to another action that points to a Tiles definition.
This is how I'm accomplishing it, but
Struts Studio says this is "bad" Struts practice.
Here is the scenario:
* User clicks Add New and a blank form appears
* User fills in form and clicks submit
* Post is posted to ArticleAdd action
* Article is saved, then forwards to "list" which then forwards
to "ArticleList.do?method=list"
I forward to the ActionList.do because I need to re-read the DB to get the newly added record.
I can't very well forward to the
JSP because the FormBean hasn't been updated with the new record. What I don't understand is why is this "bad practice" and if it is, what is the alternative?
I questioned the Struts Studio architect on this because they only allow forwards to JSP files or Tiles definitions, not to other actions.