Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to read ActionRequest parameters?

    • 0
    • 2
    • 1
    • 3
    • 0
    • 0
    • 0
    • 0
    • 976
    Comment on it

    If you have defined an input field as below:

    <aui:input type="text" name="emailId" value="<%= emailId %>" />
    

    then, you can read the value of emailId parameter in action method by the following ways:

    1-

    HttpServletRequest realRequest = PortalUtil.getHttpServletRequest(actionRequest);
    HttpServletRequest originalRequest = PortalUtil.getOriginalServletRequest(realRequest);
    String emailAddressId = originalRequest.getParameter("emailId");
    

    2-

    String emailId = ParamUtil.getString(actionRequest, "emailId");
    

    3-

    String emailId = actionRequest.getParameter(actionResponse.getNamespace()+"emailId");
    

    Hope this will help you:)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: