Re: binding paramters in struts2 without the form

2010-12-01 Thread maven apache
Thank you very much. I found the ModelDriven is very useful. With it I donot have to add the parametes to the action as the fields. :) 2010/11/29 Maurizio Cucchiara > If you don't want dot notation, I should consider using ModelDriven > interface. Take a look at > > http://struts.apache.org/2.

Re: binding paramters in struts2 without the form

2010-11-30 Thread Li Ying
> Struts will not automatically populate fields based on parameters passed via > the URL I always use URL to binding parameters to Action. And I have read source code of ParametersInterceptor, I think this Interceptor will populate all the params to Action. And it dose not treat params via URL o

Re: binding paramters in struts2 without the form

2010-11-29 Thread Maurizio Cucchiara
If you don't want dot notation, I should consider using ModelDriven interface. Take a look at http://struts.apache.org/2.2.1/struts2-core/apidocs/com/opensymphony/xwork2/ModelDriven.html 2010/11/29 maven apache : > Maurizio Cucchiara's answer seems like a good idea excepting I have add the > pers

Re: binding paramters in struts2 without the form

2010-11-29 Thread Dave Newton
On Mon, Nov 29, 2010 at 6:55 AM, Jason Ferguson wrote: > Struts will not automatically populate fields based on parameters passed > via > the URL. Your action will need to implement the ParameterAware interface, > and the setParameters(Map parameters) method. Then you > can > use the map to popula

Re: binding paramters in struts2 without the form

2010-11-29 Thread maven apache
2010/11/29 Jason Ferguson > Struts will not automatically populate fields based on parameters passed > via > the URL. Your action will need to implement the ParameterAware interface, > and the setParameters(Map parameters) method. Then you > can > use the map to populate your fields. > Maurizio

Re: binding paramters in struts2 without the form

2010-11-29 Thread Jason Ferguson
Struts will not automatically populate fields based on parameters passed via the URL. Your action will need to implement the ParameterAware interface, and the setParameters(Map parameters) method. Then you can use the map to populate your fields. Jason On Mon, Nov 29, 2010 at 5:25 AM, maven apach

Re: binding paramters in struts2 without the form

2010-11-29 Thread maven apache
2010/11/29 Maurizio Cucchiara > Frankly, even after I watched your question on stackoverflow, I can't > figure out what you meant. > :( > You don't necessary need struts tag, you can pass parameter via http > request, so, for example, if you enter > http://your_url:your_port > /your_struts.actio

Re: binding paramters in struts2 without the form

2010-11-29 Thread Maurizio Cucchiara
Frankly, even after I watched your question on stackoverflow, I can't figure out what you meant. You don't necessary need struts tag, you can pass parameter via http request, so, for example, if you enter http://your_url:your_port/your_struts.action?personBean.firstName=your_name in the address ba

Re: binding paramters in struts2 without the form

2010-11-29 Thread maven apache
BTW,this is a cross post at stackoverflow . 2010/11/29 maven apache > > > > > > > > > > public class Register extends ActionSupport { > > > private static final long serialVersionUID = 1