Yes Li Ying,
I agree. I did follow your suggestion of looking at the stack trace and
going through the debug of the application. I found that:
ParametersInterceptor.setParametersp(Object, ValueStack, Map)
Was called at some point. Running thru the code there, the parameters were
already dupli
I think it is perhaps a JBoss error.
Because the parameters in ServletRequest should be immutable, that
means Struts (or other frameworks)
has no chance to change the Request parameters.
See:
http://download.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html#getParameterMap%28%29
So the
I think it is [Parameters Interceptor]:
http://struts.apache.org/2.2.1/docs/parameters-interceptor.html
You can set a break point in the [setXXX] method of
your Action class, then you can find out who is invoking
it from the [Call Stack].
> One other question, do you guys know where the "writing
Nabeel,
You dont have to write parameters separately when submitting the form.
say, you have a form called "test"
*
*
inside that form you have various of struts html components,
and your *struts.xml* file should be like this,
*
/pages/ext/summary.jsp
*
so when the form submitted your *per
Hello folks,
Thanks for the replies Kushan and Li Ying. Reading through both of your
emails:
- Kushan, yes, my code for the class UserSearchAction has a field called:
int searchType
Along with a getter and setter for it like:
public int getSearchType()
public void setSearchType(int searchType
Nabeel,
If your text field name is customerName then you have to have a property in
your action class called "String customerName" and also there should be a
getter and setter for this property. When the form is submitted Struts
framework will call the setter to set the value to the property and y
I suggest you to check what the parameters value actually are sent to
server side.
You can see this information via these tools:
[Burp Proxy]: http://portswigger.net/burp/proxy.html
OR
[TCPMon]: http://ws.apache.org/commons/tcpmon/tcpmontutorial.html
If the parameter value sent to server is not
7 matches
Mail list logo