[
https://issues.apache.org/struts/browse/WW-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43933#action_43933
]
Musachy Barroso commented on WW-2237:
-------------------------------------
Assuming that:
String
value=request.getParameter("fieldA")==null?request.getAttribute("fieldA")==null?"":(String)request.getAttribute("fieldA"):request.getParameter("fieldA");
meant:
String
value=request.getParameter("fieldA")==null?(String)request.getAttribute("fieldA"):request.getParameter("fieldA");
The value that you are showing here is never coming from the action. It is
coming from a parameter, or from a request attribute. I am guessing that your
are passing the value as a parameter and tomcat is picking it up, and weblogic
is not. I know there are some workarounds for weblogic bugs somewhere. Please
post your question on the users forum, as well as the significant parts of the
code/jsp/configuration.
> Cannot get the value from request pass by action
> ------------------------------------------------
>
> Key: WW-2237
> URL: https://issues.apache.org/struts/browse/WW-2237
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.9
> Environment: JDK 1.5.0_12,apache-tomcat-6.0.13,weblogic 9.2
> Reporter: neo
> Fix For: 2.1.4
>
>
> I have a action as following.
> public class TestAction extends ActionSupport{
> private String fieldA;
> //there are the geter and setter
> public String excute(){
> this.field="test";
> return SUCCESS;
> }
> }
> the code get ting the value of fieldA at success .jsp :
> String
> value=request.getParameter("fieldA")==null?request.getAttribute("fieldA")==null?"":(String)request.getAttribute("fieldA"):request.getParameter("fieldA");
> the config files are OK;
> the first I deploy the test case into tomcat,I can get the value of "fieldA";
> the second I deploy the same case into weblogic ,but I cannot get the value.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.