://stackoverflow.com/questions/4300409/binding-paramters-in-struts2-without-the-form
.
2010/11/29 maven apache apachemav...@gmail.com
s:form action=register
s:textfield name=personBean.firstName label=First name
/
s:submit/
/s:form
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 or
s:form action=register
s:textfield name=personBean.firstName label=First name /
s:submit/
/s:form
public class Register extends ActionSupport {
private static final long serialVersionUID = 1L;
private Person personBean;
//
}
Using the s:form tag
bar
struts will try to inject value inside your bean.
Does this answer your question?
2010/11/29 maven apache apachemav...@gmail.com:
BTW,this is a cross post at
stackoverflowhttp://stackoverflow.com/questions/4300409/binding-paramters-in-struts2-without-the-form
.
2010/11/29 maven apache
will try to inject value inside your bean.
Does this answer your question?
2010/11/29 maven apache apachemav...@gmail.com:
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
-paramters-in-struts2-without-the-form
.
2010/11/29 maven apache apachemav...@gmail.com
s:form action=register
s:textfield name=personBean.firstName label=First name /
s:submit/
/s:form
public class Register extends ActionSupport
?
2010/11/29 maven apache apachemav...@gmail.com:
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 apachemav...@gmail.com
s:form action=register
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(MapString, String[] parameters) method. Then you
can
use the
post at
stackoverflow
http://stackoverflow.com/questions/4300409/binding-paramters-in-struts2-without-the-form
.
2010/11/29 maven apache apachemav...@gmail.com
s:form action=register
s:textfield name=personBean.firstName label=First name
9 matches
Mail list logo