I've not tried this yet, but here's another idea (Note : I'm absolutely new to Web related stuff, and have not idea on how to use taglibs...)
-> Submit a request to the JSP with a parameter. Perhaps a hidden field. -> The JSP examines the request for this field, and then forwards to the servlet if the field values so indicates. -> The servlet receives the request, does some processing, and then forwards back to the jsp, after setting a new value for the hidden field. -> the JSP receives this request, checks the field, decides that it now has to do some new stuff, -> Gets the info the servlet had placed into the session, and uses this info to rencer the page. Childish, perhaps, but I can't think of anything else. (Must read up on taglibs...) Sriram 03/11/2001 3:25:22 PM, "Dr. Evil" <[EMAIL PROTECTED]> wrote: > >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]> > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
