You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Struts2 Fan <st...@gmail.com> on 2007/02/02 14:26:17 UTC

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

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,

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

Posted by Dave Newton <ne...@yahoo.com>.
--- Struts2 Fan <st...@gmail.com> wrote:
> <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>

One posible solution:

<s:url action="myAction" includeParams="all" id="foo">
[...]

<s:property value='#foo' escape="false"/>

d.



 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org