You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Gundersen, Richard" <Ri...@london-scottish.com> on 2007/09/06 15:25:44 UTC
Quick question about getParameterValues
Hi
I was wondering if I can rely on the order of the values returned by
request.getParameterValues()?
In my form I have a checkbox, and then underneath I have a hidden field
with the same name. I do this in case the checkbox is unchecked (and
hence the value would not be sent).
This way I always get a value, and the value of the hidden field is
automatically overridden by the checkbox if the user has selected it.
This works fine as long as the hidden field comes second in the form,
but I was wondering if this is a safe way to do it. I feel like I am
relying on the order of the values being the same as the order of the
fields in the form.
What dictates the order - Struts, the browser, the HTTP spec?
I'm using Struts 1.3.5 btw - really appreciate any advice.
Regards
Richard Gundersen
Java Developer
Email: richard.gundersen@london-scottish.com
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
*** Disclaimer ***
This electronic communication is confidential and for the exclusive use of the addressee. It may contain private and confidential information. The information, attachments and opinions contained in this E-mail are those of its author only and do not necessarily represent those of London Scottish Bank PLC or any other members of the London Scottish Group.
If you are not the intended addressee, you are prohibited from any disclosure, distribution or further copying or use of this communication or the information in it or taking any action in reliance on it. If you have received this communication in error please notify the Information Security Manager at ISM@London-Scottish.com as soon as possible and delete the message from all places in your computer where it is stored.
We utilise virus scanning software but we cannot guarantee the security of electronic communications and you are advised to check any attachments for viruses. We do not accept liability for any loss resulting from any corruption or alteration of data or importation of any virus as a result of receiving this electronic communication.
Replies to this E-mail may be monitored for operational or business reasons. London Scottish Bank PLC is regulated by the Financial Services Authority.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org