Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

s:combobox example is not running properly, and <s:param> puts a "amp;" after & character between params

Struts2 Fan

2007-02-02

Replies:

This example in http://struts.apache.org/2.x/docs/combobox.html is not
running properly in struts2.0.1

<s:combobox
 label="My Favourite Color"
 name="myFavouriteColor"
 list="#{'red':'red','green':'green','blue':'blue'}"
 headerKey="-1"
 headerValue="--- Please Select ---"
 emptyOption="true"
 value="green" />
-------------------------------------------------------------------
nextProblem is the url below is like that --->

myAction.action?myId=10&amp;myName=name&amp;mySurname=surname

<s:url action="myAction" includeParams="all">
          <s:param name="myId" value="%{#bean.id}"/>
          <s:param name="myName" value="%{#bean.name}"/>
          <s:param name="mySurname" value="%{#bean.surname}"/>
</s:url>


So I cannot get the parameters myName and mySurname on the action

Thanks all,
©2008 junlu.com - Jax Systems, LLC, U.S.A.