I have a servlet that reads a list of JSP pages from
a property I defined (in the 'init' method).  When a request
is sent to my servlet, it uses the RequestDispatcher to
'forward' each request it receives to the next page in
the list.  It keeps track of the current page in it's
session data.

Each JSP presents a form to collect information from the user.
When the form is submitted, it will create an XML document,
which it will POST back to my servlet.  My servlet will save
the XML in the session data, then 'forward' the request to
the next JSP in the list.  Once all have been run, my servlet
will parse and validate the complete XML document that has been
constructed by each JSP page, then make the appropriate updates
to a database.  It will then reset the session data so that the
next request will start the process all over again.

Since servlet/JSP/XML programming is still new to me, I am wondering
if the above approach makes sense, or if there is a better way
to accomplish the above.

One thing I notice when I 'forward' the request to a JSP page
is that the URL path seems to be set to that of the servlet.
Thus, even though I forward to a URL in another directory,
relative references to graphics, etc in the JSP page don't work,
since they are looked for in /servlet/xxx.gif, which of course,
doesn't exist.  Do I have to include absolute URLs to get this to
work?  Or is there a way to change the pathname in the request?



    -- Bill

--
Bill O'Keefe                                     [EMAIL PROTECTED]
Open Market, Inc.                            http://www.openmarket.com/
One Wayside Road                                 TEL: 781.359.7296
Burlington, MA 01803                             FAX: 781.359.8200

___________________________________________________________________________
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