Greetings,

I'm writing a fairly straightforward application but already I have many
conditions for each request.  There are two types of searches indicated
by searchType parameter, there are different results set based on other
parameters, there is option to log in and others.

The bottom line is that the logic that goes into figuring out what
should happen based on what values are null and what values are
something meaningfull is becoming too complex and unmaintainable.

Question: What are my options here?  For now I tried to get the
parameters and then .include. response of other servlets based on these
parameters.  So basically each form is submitted to the same servlet but
I sometimes include other servlet or forward request somewhere too.

How can this be done in an organized way?  Is it better to have seperate
servlets for each simple task?

dav.e

--
David Mossakowski        [EMAIL PROTECTED]
http://www.dwdog.com/styk      212.310.7275

"I don't sit idly by, I'm planning a big surprise"
F         U         G         A        Z        I

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to