We do the same thing.
----- Original Message -----
From: Burt Alexander <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Sent: Saturday, June 19, 1999 12:04 AM
Subject: Re: simple questions
> Depankar Neogi wrote:
>
> > Hi,
> >
> > My configuration first --
> >
> > Apache JServ 1.05b
> > Apache Web Server 1.3.6
> > OS Windows NT Workstation 4.0 SP4
> >
> > Most of the examples that I have seen, allow one to send back html
> > tagged code as follows -
> > out.println("<P>This is output from SimpleServlet.");
> >
> > 1. I have a situation where I take a FORM which the user fills and
> > clicks "continue", and I call the POST method
> >
> > <FORM METHOD=POST ACTION="/servlets/MyServletClass">
> >
> > MyServletClass, parses the form input and stores the info into a
> > database.
> >
> > After storing into a database, I need to show the user the next FORM
> > page. Its a static form page. How do I send this static form page
> > (myStaticForm.html) back ?
> >
> > [In Jason Hunter's book, Chap 4., I see references to getPathInfo() and
> > getPathTranslated() methods. The only relevant example is 4.10,
> > "Dynamically returning static files", where he uses a com.oreilly util
> > class method returnFile(). Is there a generic call in javax.servlet]
> >
> > 2. Also, if in this FORM page that I return, I want to add a hidden
> > tag so that I can remember the user or track the session. What's the
> > best way to do that ?
> >
> > Thanks in advance for your help.
> >
> > -Depankar Neogi
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > READ THE FAQ!!!! <http://java.apache.org/faq/>
> > Archives and Other: <http://java.apache.org/main/mail.html/>
> > Problems?: [EMAIL PROTECTED]
>
> This may not be the best way to do things, but its how we do it.
>
> We have a class that reads html files & returns a string representation of
> the file. This is passed to the ServletOutputStream via the println
> method. There is also the facility to parameterize the html dynamically -
> we use html templates with specialized tags & fill them in accordingly.
>
> Hope this gives you some ideas.
>
>
> Burt.
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> READ THE FAQ!!!! <http://java.apache.org/faq/>
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]