I need some help/hints on how to pass a multiple select tag to a
JSP-file.
It looks something like the following:
the HTML-file :
---------------
<form action="http://www.remotehost.com/pass_addresses.jsp" ...>
<select name="addresses" multiple>
<option value="first">The first address
<option value="second">The second address
<option value="third">The third address
</select>
.
.
.
</form>
pass_addresses.jsp:
------------------
<%
String[] destAddr = Request.QueryStringArray("addresses");
.
.
.
The problem is that I don't KNOW that the multiple select tag really
generates an array of strings, if it does, the above method (or
Request.FormArray("addresses") ) should be the correct ones according to the
JRun scripting guide.
If I retrieve the variable as a regular variable, it's empty. In the
above example, as an array of Strings, it's also empty destAddr.length
= 0). Something in the SELECT-tag IS selected.
What am I doing wrong?
Anyone who got a hint or some sample code, please?
Thanks in advance!
Regards,
Magnus
PS. I apologize for my "rather" anonymous mail address. I got tired of all
the spam mails.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".