tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denton Yip <d...@lacsd.org>
Subject RE: MVC in Tomcat is hard
Date Mon, 05 Nov 2001 17:06:17 GMT

Check out Struts.   The MVC framework is already laid out and implementing it is much easier.
 

-----Original Message-----
From:	Micael Padraig Og mac Grene [SMTP:caraunltd@harbornet.com]
Sent:	Saturday, November 03, 2001 8:43 AM
To:	Tomcat Users List
Subject:	Re: MVC in Tomcat is hard

Lo, Evil.  You can look at Struts, as suggested, or take a look at David
Geary's new book on taglibs, with it's sample app in the last (I think)
chapter.  He has everything you are asking for precoded.  Micael


-----Original Message-----
From: Dr. Evil <drevil@sidereal.kz>
To: tomcat-user@jakarta.apache.org <tomcat-user@jakarta.apache.org>
Date: Saturday, November 03, 2001 2:00 AM
Subject: MVC in Tomcat is hard


>
>I'm trying to use the Model-View-Controler design approach in Tomcat.
>Here's what I'm trying to do:
>
>I'll put the Model stuff in a servlet.  The View stuff will go into a
>jsp page (actually a custom tag lib).  What I need to do is, when I
>view a page like foo.jsp, the servlet needs to get invoked to set up
>some state, so the tags can then dispaly it.  So, let's say the client
>requests
>
>http://host/dir/foo.jsp
>
>I want to have a servlet, let's call it controler.class, be called,
>do its stuff, and then get a RequestDispatcher, and then do
>rd.forward() to foo.jsp.  This doesn't seem to be possible.  Is there
>a way to do this?
>
>Thanks
>
>--
>To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message