Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 37623 invoked from network); 5 Nov 2001 07:15:39 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 5 Nov 2001 07:15:39 -0000 Received: (qmail 26721 invoked from network); 5 Nov 2001 07:18:10 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 5 Nov 2001 07:18:10 -0000 Received: (qmail 16197 invoked by uid 97); 5 Nov 2001 07:15:15 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 16180 invoked by uid 97); 5 Nov 2001 07:15:14 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 16169 invoked from network); 5 Nov 2001 07:15:13 -0000 X-Server-Uuid: c9c8de33-20e8-439f-a6d2-2699436bd3f0 Message-ID: <439C4B6AA81ED511ABAF00508BDFE0A6F8D637@HOLMES07> From: "Lauer, Oliver" To: "'Tomcat Users List'" Subject: AW: MVC in Tomcat is hard Date: Mon, 5 Nov 2001 08:15:00 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 17F8E3A4268813-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ...and STRUTS is a really good and simple one ! > AXA eSolutions GmbH > AXA Konzern AG Germany > Oliver Lauer=20 > Web Architect > W=F6rthstra=DFe 34 > D-50668 K=F6ln > Germany > Tel.: +49 221 148 31277 > Fax: +49 221 148 43963 > Mobil: +49 179 59 064 59 > e-Mail: Oliver.Lauer@axa.de > _____________________________ >=20 -----Urspr=FCngliche 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 > Reply-To: Tomcat Users List > 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 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: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: