struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Struts2 Fan" <struts2...@gmail.com>
Subject s:combobox example is not running properly, and <s:param> puts a "amp;" after & character between params
Date Fri, 02 Feb 2007 13:26:17 GMT
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,

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message