Are you doing a refresh or are you calling the same url again?  It sounds like
your servlet is forcing a refresh which is causing this problem with the post
method.  If your user submits the form (or filters or whatever you want) and
you post to the same url rather than refreshing I think that this would solve
your problem.

If not you may want to try dynamic urls.  That's when your servlet creates the
url of the pages dynamically using some sort of a serial number system where it
wont generate two of the same urls within a close amout of time.  That way your
browser wont know it's posting to the same servlet.  You could then map the url
pattern to your servlet such as by altering your webinf file if you're using
apache.  Only problem with this, besides the extra coding, is that your users
will not be able to bookmark their pages.

Hope this helps,
Matt


Quoting Danny Guindi <[EMAIL PROTECTED]>:

> Hi all,
>
> I am trying to write a servlet that displays a list of options on the
> screen.  Instead of using a combo box, I have a checkbox next to each
> option, so the user can see all the options at the same time
> (sometimes,
> there could be hundreds of options). The user can then select or
> deselect
> any options he/she wants.  I also want the user to be able to filter out
> a
> group of options by selecting a 'filter' criteria from a combo box
> that
> eliminates multiple options.  When the user selects this filter, I
> reload
> the page, filter-out some options, and display the remaining ones.
> The
> problem I have is that every time I try to reload the page, I get a
> warning
> that the page needs to be re-posted because the form data has changed.
> I
> cannot use the form GET method, because it exceeds the limit of
> characters
> that can be encoded in the URL.  Using the POST method is what's causing
> the
> warning to pop-up.  Any ideas on how I can do this kind of operation?
>
> Thanks in advance,
>
> Danny Guindi
>
> ___________________________________________________________________________
> 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