tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: OT: Refresh (f5) add(calendar.MONTH, adj) problem
Date Wed, 21 Apr 2010 20:13:26 GMT
-----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


Mime
View raw message