TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG-DEVEL:168] ideas?



i am using jswdk-1.0.1, does that support it? or do i need jsdk2.1? Are there any
docs on sun's site?

Bob Tanner wrote:

> Quoting Erick Stohr (erick@pagelab.net):
> > I've got a servlet that I am writing that takes user input from the web
> > and puts it into the database. It is becoming more of a project than
> > expected. My question is can anyone give any advice on how I should do
> > this? An applet has been ruled out, for now, I would like to do it as a
> > servlet or servlets.
> > Basically there need to be 3 different forms for inputing data, I was
> > thinking of one that does a POST to the doPost in the servlet, a second
> > that is generated by the doPost as a doGet and it's content depends on
> > some input in the first form, and there needs to be a third who's
> > content depends on the seconds input. Should I do 2 servlets and store
> > data in a session? Or does anybody have an easier way, or can I even do
> > it the way I am thinking? Thanks.
>
> Why not use interservlet communication?
>
> Depending on which jsdk you are using, you can use the
>
>         public Servlet ServletContext.getServlet(String name)
>
> Servlet #1 gets its data from the user, it needs to send that user to Servlet
> #2, you can just getServlet("servlet2") and pass your info onto it.
>
> --
> Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
> http://www.real-time.com                | Fax   : (612)943-8500
> Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-devel-unsubscribe@mn-linux.org
> For additional commands, e-mail: tclug-devel-help@mn-linux.org