You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Søren Blidorf <so...@nolas.dk> on 2010/04/21 21:39:17 UTC
OT: Refresh (f5) add(calendar.MONTH, adj) problem
I have a page that changes month by request.getParameter(adj).
How do I avoid add(calendar.MONTH, adj) when refresh(f5) is pressed
I know its off topic, but does anybody have an idear?
Soren, DK
Re: OT: Refresh (f5) add(calendar.MONTH, adj) problem
Posted by André Warnier <aw...@ice-sa.com>.
Søren Blidorf wrote:
> I have a page that changes month by request.getParameter(”adj”).
>
>
>
> How do I avoid add(calendar.MONTH, adj) when refresh(f5) is pressed
>
>
>
> I know its off topic, but does anybody have an idear?
>
Your question is so unclear that it is not even evident if it is
off-topic. Can you rephrase that ?
I guess that by "refresh(f5)" you mean that the user, in his browser,
requests a refresh of the page, and that this causes a new request to
the server ? If so, then what, on the server, does what to what calendar ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: OT: Refresh (f5) add(calendar.MONTH, adj) problem
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Søren,
On 4/21/2010 3:39 PM, Søren Blidorf wrote:
> I have a page that changes month by request.getParameter(”adj”).
>
> How do I avoid add(calendar.MONTH, adj) when refresh(f5) is pressed
How about providing another parameter which indicates the original
value, and the adjustment is relative to that? Refresh wouldn't
interfere with that.
Or, better yet, put the actual value you want in the URL instead of an
adjustment.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvPXGYACgkQ9CaO5/Lv0PCV/ACgo09MTkA+2gcW9LleNzz0iQFA
jqAAn3WxVw3vQyctkkNNz8rToO+xyrSv
=kCEI
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org