[thelist] new to servlets
Matt Warden
mwarden at gmail.com
Tue Oct 19 13:20:10 CDT 2004
You cannot "include" a servlet in another servlet. You will need to
either add the functionality as a method in the order servlet, and
call that method as the first line of doGet/doPost, or you will need
to create a (non-servlet) class for the logic and use that class in
the first line or two of doGet/doPost.
Which you do will depend on which is most appropriate design-wise.
On Tue, 19 Oct 2004 12:45:59 -0500, evolt at mccullough-net.com
<evolt at mccullough-net.com> wrote:
> I have an order servlet that "controls" the ordering process. I wanted to
> restrict users with certain browsers from getting into the ordering process, so
> I created a detect bservlet, really my first servlet. I placed the jsp tag for
> the servlet on several pages and the logic to say if certain browser redirect
> to hear. however I thought if I could include the servlet in the beginning of
> the ordering servlet then I wouldnt have to do it on each and every page.
> however I am new and not sure how to do this properly.
--
Matt Warden
Miami University
Oxford, OH
http://mattwarden.com
This email proudly and graciously contributes to entropy.
More information about the thelist
mailing list