> -----Original Message-----
> From: Denis Avdic [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 10, 2004 12:52 PM
> To: Struts Users Mailing List
> Subject: Re: Servlet help for a Struts programmer
> 
> 
> I am sure that in a week or two that might be apparent to me.  However
> right now I am exposed to everything that ActionServlet and
> MultipartRequestWrapper hid from view.  Using Struts in my
> programming, the controller part of the MVC was hidden.
> 
> For example, one of the first questions I had was: How in the world do
> I control where a successful action will forward to?  Where do I set
> that?

Ummm.. you may not do that.. it depends on what era your servlet app is from.. and 
more importantly, how it's set up.

If you are particularly unfortunate you will have sevlets generating HTML.  If this is 
the case, personally I would consider another job.. but hey those are my nightmares, 
not yours :)  Course, if you have the stomach for it, begging to redo the app in 
struts might also work.  

Since this is probable.. given your question... in your doPost, doGet or doPut method 
you will do everything in one nasty ugly bit of code, which can be broken down into 
various step by step method calls, to keep your code clean, and your sanity in tact.  
There is no forward.  There is no automatic translation from form into a form bean.  
There are not hand dandy url to action mapping, everything is a url to servlet mapping.

The best way to describe this is... imagine trying to build a modern car.... using 
1914 car building technology.  Add in the your predicament, which is that you first 
have to learn how they built cars in 1914.....

If you are somewhat luckier then you have servlets that do some processing and then 
call sendRedirect().. you might want to look at what struts is doing internally.

If you are more fortunate then I think you are, you have someones attempt at a struts 
like MVC controller.  In which case you'll probably have to read the documentation (ie 
code) to figure out how to make it work.


> 
> My questions are pretty much in that ballpark.
> 
> :)
> 
> On Tue, 10 Aug 2004 12:40:50 -0700, Michael McGrady
> <[EMAIL PROTECTED]> wrote:
> > At 12:29 PM 8/10/2004, you wrote:
> > >Nope.. you misunderstood his question.  First he started 
> on struts.  Every
> > >project he's worked on.  Now, PHB wants him to work on 
> another project,
> > >which is just servlets.  He's never done any servlet 
> programming, so he
> > >wants to know what differences there are etc. etc. etc.
> > 
> > 
> > Hi, Jim.  That is what I thought he said.  That makes no sense.  The
> > comparison is of apples and oranges.  There is no project 
> that is "just
> > servlets" unless it is nuts.  Struts, again, is not an 
> alternative to
> > Servlets.  Struts is based on Servlet technology.  Working 
> on a project
> > involving Servlets but not using the Struts framework of 
> course makes
> > sense.  But comparing Struts to Servlets makes no sense.
> > 
> > Michael
> > 
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to