But it violate MVC model 2, with only one controller.

Ted wrote:

In a Model 2 environment, the pages are suppose to be pretty but stupid. Flow to a 
page should go
through an
Action first, and the Action should assemble all the data that a page might need and 
put it into
the request or session context. The page then just grabs what it needs, and figures 
out how to
display it. The Action
may not known the address of the page (that's in the config file), but it does need a 
punch list
of what data the page may require. Every page should have an Action handler. One 
Action may handle
several different
pages, or a page could be handled by several different Actions (e.g. an error page), 
but each page
should have at least one handler. 

If a JSP ends up on your browser's address bar after the initial index page, then 
you're missing
an Action ;-)

-emmanuel
 
> 
> 
> >From: "Chappell, Simon P" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: action include or forward attribute not working?
> >Date: Mon, 14 Oct 2002 15:24:00 -0500
> >
> >Actually, I have no problem seeing *.jsp. MVC only requires that the Model, 
> >View and Controller be separated. Using a mix of *.do and *.jsp is not 
> >going to violate MVC.
> >
> >For simple pages that require no pre-processing, we used direct calls to 
> >the JSP.
> >
> >Simon
> >
> >-----Original Message-----
> >From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, October 14, 2002 3:19 PM
> >To: Struts Users Mailing List
> >Subject: RE: action include or forward attribute not working?
> >
> >
> >Kael, this is MVC, you should never see *.jsp ;-)
> >
> >We went over this before in lab
> >
> >-----Original Message-----
> >From: Teh, Kah Loong
> >Sent: Mon 10/14/2002 3:15 PM
> >To: Struts Users Mailing List
> >Cc:
> >Subject: RE: action include or forward attribute not working?
> >
> >
> >
> >like you said, since you don't need an action ....
> >try using <html:link>
> >i.e., <html:link page="/registration.jsp"> register here </html:link>
> >
> >-kael Teh
> >
> >-----Original Message-----
> >From: Andy Kriger [ mailto:[EMAIL PROTECTED]]
> >Sent: Monday, October 14, 2002 3:16 PM
> >To: Struts Users Mailing List
> >Subject: action include or forward attribute not working?
> >
> >
> >I am setting up the following: a JSP containing a form; the submit
> >action of the JSP calls a Struts Action class. Since I don't really need
> >an action simply to forward to the JSP, I thought I'd use the action
> >include or foward attribute which seems to accomplish this. But I can't
> >make it work.
> >
> >Here is the struts-config entry...
> >
> ><action path="/Registration"
> >         forward="/registration.jsp">
> ></action>
> >
> >I would expect that /Registration.do would open registration.jsp
> >
> >Instead I get '500 No action instance for path /Registration could be
> >created'
> >
> >Any ideas?
> >
> >thx
> >andy
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> >< mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> >< mailto:[EMAIL PROTECTED]>
> >
> >
> >--
> >To unsubscribe, e-mail:   < 
> >mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: < 
> >mailto:[EMAIL PROTECTED]>
> >
> >
> >
> 
> 
> 
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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

Reply via email to