Hi. I have a JSP page and I'm having trouble with some parameters... The page has a form containing a listbox, something like...
<select name="listnames" MULTIPLE>
Files are browsed for with a <input type=file> object, when this is changed (onChange) the value is added to the listbox.
When the form is submitted with submit() -- all the selected options are then passed as parameters e.g. page.jsp?listnames=name+1&listnames=name+2
Here's the problem. Once submit I want to keep these values in the select box once its reloaded. So how I've done that is, for each 'listnames' paramater, an option is made when its reloaded
for each filelist parameter...
<OPTION NAME=<%=parametername%> VALUE=<%=parametername%>><%=parametername%></OPTION>
Once the page is submit again, the spaces have now been removed. Where once there was 'name 1' which appears as 'listnames=name+1' on the parameters, it is now just 'name' when re-submitted. There seems to be a problem with the spaces being recognised the second time round!! Does any one have any ideas how to resolve this?