Forward to different Form/JSP from one action

2006-07-18 Thread billintx
I'd like to do something like this:


   
   
   


Each template would require a different ActionForm?

Should I create and put the ActionForm in the request manually?

Should I chain this with another action, so i'd have  , where editTemplate1 action has the correct 
ActionForm?

Any other ideas?

Thanks


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



Re: Forward to different Form/JSP from one action

2006-07-18 Thread Michael Jouravlev

On 7/18/06, billintx <[EMAIL PROTECTED]> wrote:

I'd like to do something like this:


   
   
   


Each template would require a different ActionForm?


Depends on your design. Generally, no.


Should I create and put the ActionForm in the request manually?


As you like.


Should I chain this with another action, so i'd have  , where editTemplate1 action has the correct
ActionForm?


Chaining like this is frowned upon and often can be avoided.

"Input" property does not define an input page, it defines an error
page. Struts architecture does not care where input is submitted from,
all it cares is what's in the request.

You should display /pages/selectTemplate.jsp with another action, so
selectTemplate.jsp would be output page for that action, and
editTemplateX.jsp would be output pages for EditAction. Again, there
are NO input pages in Struts.

See this for discussion: http://wiki.apache.org/struts/StrutsManualActionClasses

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



Forward to different Form/JSP from one action

2006-07-18 Thread billintx
I'd like to do something like this:


   
   
   


Each template would require a different ActionForm?

Should I create and put the ActionForm in the request manually?

Should I chain this with another action, so i'd have  , where editTemplate1 action has the correct 
ActionForm?

Any other ideas?

Thanks


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