Now your view is tied to that particular jsp and you can't change it for a different one later or any other presentation logic format. Also, you've circumvented any common logic that the controller might be doing (authentication, logging, etc).
Dave >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]>