Re: multiple forms and one servlet

From: Tony Morris (not_at_telling.you)
Date: 10/29/04


Date: Fri, 29 Oct 2004 21:29:32 GMT


"Yasaswi Pulavarti" <yasaswi@encfor.com> wrote in message
news:aa862233.0410291323.511452a1@posting.google.com...
> I have one servlet which has multiple forms. The action element of the
> forms is pointing on one servlet. I want to process the different form
> requests as different reponses in the same servlet. How can I do that
> based on the form "Name" attribute.
> Thanks,
> Yasaswi

Servlets don't have forms.
Now that your question is completely out of context, let's guess what you
really want.

My guess is that you want the Front Controller Design Pattern (a J2EE blue
print design pattern).
You might want to look at some frameworks such as WebWork and Spring.
Struts is an older, crustier, less well designed option, but it is more
common.

-- 
Tony Morris
http://xdweb.net/~dibblego/


Relevant Pages

  • Re: multiple forms and one servlet
    ... Yasaswi Pulavarti wrote: ... > I have one servlet which has multiple forms. ... > forms is pointing on one servlet. ... You can do a post request and append a variable like this: ...
    (comp.lang.java.programmer)
  • Re: load servlet mappings at runtime in tomcat
    ... Moth wrote: ... What I want to do is run a web app with any number of paths all pointing to one servlet. ... So an example would be www.domain.com/sample and www.domain.com/anothersample would both execute the same servlet. ...
    (comp.lang.java.programmer)
  • multiple forms and one servlet
    ... I have one servlet which has multiple forms. ... The action element of the ... forms is pointing on one servlet. ... requests as different reponses in the same servlet. ...
    (comp.lang.java.programmer)