Mitch- <%@ taglib prefix="s" uri="/struts-tags" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html> <head><title>Numbers Game</title> <SCRIPT LANGUAGE="JavaScript"> var submitcount=0; function submitForm() { var url ='http://localhost:8080/struts2-showcase-2.1.2/action' + escape(document.form.select.value); document.form.action=url; alert(url); document.form.submit(); } </script> </head> <body> <h1>Numbers Game</h1> <form method="GET" name="form" action='http://localhost:8080/struts2-showcase-2.1.2?FacilityID=' + escape(document.form.select.value)> <table> <s:select label="select" name="select" id="select" list="#{'username1':'trillian', 'username2':'zaphod'}" value="%{#select}"/> <s:submit theme="simple" type="submit" value="submit" id="button" onclick="submitForm();" onMouseUp="submitForm();"/> </table> <p> </form> </body> </html> OGNL and JSTL use back end (Bean) objects to store and retrieve <attributes of> back end objects your submit tag can call JavaScript which will construct a url variable as illustrated here just be sure to assign document.form.action=url before submitting as seen in submitForm() HTH Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Wed, 11 Mar 2009 17:17:13 -0400 > From: mgor...@shadowtv.biz > To: user@struts.apache.org > Subject: Re: this is driving me nucking futs! > > Musachy Barroso wrote: > > That is something I have complained about for a long time, time to do > > something about it I guess. > > > > I AM AN INSTRUMENT OF CHANGE!!! > > ;) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ Express your personality in color! Preview and select themes for HotmailĀ®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme