Re: binding paramters in struts2 without the form

2010-12-01 Thread maven apache
it does not work. > >> > > >> > > >> > http://your_url:your_port > >> > /your_struts.action?personBean.firstName=your_name > >> > > >> > I do not know the para

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
rl:your_port >> > /your_struts.action?personBean.firstName=your_name >> > >> > I do not know the parameter can be sent this way!!! >> > Thanks. >> > >> > >> > > struts wi

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
an.firstName=your_name > > > > I do not know the parameter can be sent this way!!! > > Thanks. > > > > > > > struts will try to inject value inside your bean. > > > > > > Does this answer your questio

Re: binding paramters in struts2 without the form

2010-11-29 Thread Jason Ferguson
t; /your_struts.action?personBean.firstName=your_name > > I do not know the parameter can be sent this way!!! > Thanks. > > > > struts will try to inject value inside your bean. > > > > Does this answer your question? > > > > 2010/11/29 maven apache : &g

Re: binding paramters in struts2 without the form

2010-11-29 Thread maven apache
Thanks. > struts will try to inject value inside your bean. > > Does this answer your question? > > 2010/11/29 maven apache : > > BTW,this is a cross post at > > stackoverflow< > http://stackoverflow.com/questions/4300409/binding-paramters

Re: binding paramters in struts2 without the form

2010-11-29 Thread Maurizio Cucchiara
he address bar struts will try to inject value inside your bean. Does this answer your question? 2010/11/29 maven apache : > BTW,this is a cross post at > stackoverflow<http://stackoverflow.com/questions/4300409/binding-paramters-in-struts2-without-the-form> > . &g

Re: binding paramters in struts2 without the form

2010-11-29 Thread maven apache
BTW,this is a cross post at stackoverflow<http://stackoverflow.com/questions/4300409/binding-paramters-in-struts2-without-the-form> . 2010/11/29 maven apache > > > > > > > > > > public class Register extends ActionSupport { > > >

binding paramters in struts2 without the form

2010-11-29 Thread maven apache
public class Register extends ActionSupport { private static final long serialVersionUID = 1L; private Person personBean; // } Using the s:form tag one can bind the parameter from the client to a java object(the personBean in the Register acti