Actually, using POST would not be an option here since the data is being
passed back and forth encoded in a URL.
Keeping all this data in a session (where possible) definately makes sense
though.

 - Chinmay.

> ----------
> From:         Craig R. McClanahan[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Monday, November 15, 1999 12:52 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: remember user's navigation path within servlet
>
> Christopher Zhao wrote:
>
> > All-
> >
> > To do:
> > For one servlet, I have many layers of presentation classes.  Users can
> browse
> > the service through a function nevigation bar. The navigation bar is
> created on
> > the fly so that functions on the bar can remember user's activity
> through
> > parameter passing.
> >
> > Problem:
> > When layer's information is passed, the parameters will be to long for
> URL.  If
> > If I use decoded parameter passing, the string could be even longer.
> >
> > Question:
> > What is a good strategy to implement this.
> >
>
> I would suggest keeping all of the "state" information about available
> options (the
> stuff needed to create your navigation bar) in a session, rather than
> passing it
> back and forth.  You can get around the URL length problem by using POST
> instead of
> GET (and using hidden fields for the current values), but you are still
> sending a
> LOT of bytes back and forth that the client browser really does not care
> about.
>
> >
> > Tahnks.
> >
> > Chris zhao
> >
>
> Craig McClanahan
>
> __________________________________________________________________________
> _
> 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
>

___________________________________________________________________________
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