Hi Dr.Evil,

have you had a look on the jakarta-struts project? At a first glance it may
look a little bit complicated, but it implements a MVC approach and could
possibly deliver a bunch of already written code for your project. Getting
started is very easy, it's sufficient to place (one of) the example WARs
into tomcat (4.*) webapps.

Cheers, Mika
[EMAIL PROTECTED]

----- Original Message -----
From: "Dr. Evil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 03, 2001 10:55 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:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to