Change your custom JavaScript function. Here's an example of what I mean: (change it to fit your needs)
<form name="SelectURL" action="originalUrl.do" method="GET"> <select name="users.userAccount" onChange="setAction(this.form)"> <option selected value="value1">value1</option> <option value="value2">value2</option> <option value="value3">value3</option> </select> <script LANGUAGE="JavaScript"> function setAction(form) { selectCtl = form.elements["users.userAccount"]; form.action = "dosomething.do?users.userAccount="; form.action += selectCtl.options[selectCtl.selectedIndex].value; } </script> <br> <input type="submit" name="submit" value="Submit"> </form> -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 770.822.3359 AIM:jmitchtx ----- Original Message ----- From: "struts" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, October 29, 2003 6:12 AM Subject: html:select onchange Problem how can i pass the userId ? so that i can do a request.getParameter("userId") ? example: <html:select property="users.userAccount" onchange="setAction('setUpUsersForm.do?action=retrieve&userId=" > <html:options labelProperty="userName" collection="userList" property="userId" /> </html:select> Thanks ! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]