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

request parameter are not converted to object in action class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Not A Problem
    • 2.5.12
    • 2.5.12
    • Core, Core Actions
    • None

    Description

      hi,
      We are migrating to struts 2.5.12 and
      we have a request URLs similar to /vzCloud/fuji/fujiLogin.action?request.repositoryPath[0]=VZWEB:/VZMOBILE/1.jpg this has a request param request.repositoryPath[0]=VZWEB:/VZMOBILE/1.jpg I am expecting that the setRequest method will be called to set the request object in the action class. However I am seeing that the request object is null. Can you please advise.

      --Action class-------------
      public class FujiLoginAction extends BaseAction implements InitializingBean, RequestAware{

      private String redirectURL ;

      private FujiIntegrationDelegate delegate;

      private FujiLoginResponse fujiLoginResponse ;

      private FujiLoginRequest request ;
      public void setRequest(FujiLoginRequest request)

      { this.request = request; }

      }

      ------------------------------struts config
      <struts>
      <package name="fuji" namespace="/fuji" extends="cloud, json-default">

      <action name="fujiLogin" method="authenticate" class="fujiLoginAction">
      <interceptor-ref name="cloudStack" />
      <result name="success" type="json">
      <param name="contentType">application/json</param>
      <param name="noCache">true</param>
      <param name="excludeProperties">errorCode,messageCode,processTime,bulkStatus</param>
      <param name="excludeNullProperties">true</param>
      <param name="root">fujiLoginResponse</param>
      <param name="location">/cloud/json/customJson.jsp</param>
      </result>
      </action>

      </package>

      </struts>

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            vijays2017 Vijay Srivastava
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: