You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Dave Newton (JIRA)" <ji...@apache.org> on 2007/10/12 00:30:37 UTC
[jira] Commented: (WW-2237) Cannot get the value from request pass
by action
[ https://issues.apache.org/struts/browse/WW-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42377 ]
Dave Newton commented on WW-2237:
---------------------------------
Please ask your question on the struts-user mailing list and post a corrected code sample.
> 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: Actions
> Affects Versions: 2.0.9
> Environment: JDK 1.5.0_12,apache-tomcat-6.0.13,weblogic 9.2
> Reporter: neo
>
> 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.