tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lauer, Oliver" <Oliver.La...@AXA.de>
Subject AW: MVC in Tomcat is hard
Date Mon, 05 Nov 2001 07:15:00 GMT
...and STRUTS is a really good and simple one !

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: Oliver.Lauer@axa.de
> _____________________________
> 


-----Ursprüngliche Nachricht-----
Von: Craig R. McClanahan [mailto:craigmcc@apache.org]
Gesendet: Montag, 5. November 2001 01:03
An: Tomcat Users List
Betreff: Re: MVC in Tomcat is hard




On 3 Nov 2001, Dr. Evil wrote:

> Date: 3 Nov 2001 09:55:22 -0000
> From: Dr. Evil <drevil@sidereal.kz>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> 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?
>

Check out some of the existing MVC-based frameworks like Struts
<http://jakarta.apache.org/struts> which do exactly this sort of thing.
The example app that comes with Struts illustrates exactly how to solve
this particular problem.

Craig


--
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