----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Robert Dietrick wrote:
> 
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
> 
> What the hell is all the fuss about?  Just "return;" after the
> sendRedirect()!  If you're nested that deep in method invocations, and you
> don't know what's going to happen after the redirect, then I think it's
> time to step back and reorganize your code.
> 

        :-)


        hum, I develop a generic servlet that others developpers extend.

        The general algorithm is
                1) get / control URL datas
                2) read / update database
                3) compute new datas from database
                4) show html file including datas 

        By default, the servlet send an HTML file which path is in initArgs.

        In the "control" and "compute" methods, it's possible to redirect the
servlet
        to another servlet so that I don't know if and where the sendRedirect
is called.

        In fact, this servlet is very useful to make a paste-up without any
controls 
        because you just have to create new aliases in the zone.propeties and
in a file.ini
        to change the behaviour of the servlet. 

        With more elaborated servlets, you can have many buttons in a form and
have to
        change the behviour (sendRedirect) according to the choosen button.
        
        Perhaps I'm wrong but it works fine :-)

                Fran�ois


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to