the param like %{id}
you shall use <s:hidden> tag

On Thu, Oct 16, 2008 at 5:00 PM, Haulyn Jason <[EMAIL PROTECTED]> wrote:

> Hi, all
> When I use <s:form namespace="website" action="edit"></s:form>, everything
> works well, struts2 generate the html as below:
> <form id="XXX" action="/myapp/website/edit"></form>
> But when I want to add some parameters, and change the code as:<s:form
> namespace="website" action="edit/%{id}"></s:form>,struts looks lost the
> namespace param. It generates the html as below:
> <form id="XXX" action="edit/123"></form>
>
> When I change the code to <s:form action="/website/edit/%{id}"></s:form>,
> it generates what I need as below:
> <form id="XXX" action="/myapp/website/edit"></form>
>
> Can anybody tell me why struts lost the namespace param? I use
> Struts2.1.2Beta with codebehind and rest plugin with Apache tomcat 6.0.18,
> Thanks.
>
>  ---------------------------------------
> Thanks!
>
>
> Mobile: +086-15864011231
> Website:http://www.openmotel.cn
> http://www.vvthumb.com
> GTalk:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Skype:saharabear
>
>
> Haulyn Runner Jason
>
>
>
>




-- 
BestRegards,
Mead
http://yayisoft.com

Lewis Mumford  - "Our national flower is the concrete cloverleaf."

Reply via email to