Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2237

Cannot get the value from request pass by action

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.9
    • 2.1.4
    • Core Actions
    • None
    • JDK 1.5.0_12,apache-tomcat-6.0.13,weblogic 9.2

    • Important

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            neoqing neo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: