title: Pass value from JSP to Action Class in Struts
body: <p>In the following code Sample i am trying to pass param1 value from my jsp to myaction class. When the user clicks on file number i am trying to pass the file number as well as the param1 value.</p>
  
  <pre><code>&lt;display:table   name="sessionScope.List" requestURI="${urlRepDetails}" pagesize='&lt;%= pagesize %&gt;' sort="list" class="displaytag" defaultsort="3" defaultorder="ascending"  &gt;
  &lt;display:column href="/myaction.do?param1=xyz"paramId="fileNumber" paramProperty="fileNumber" property="fileNumber" title= 'fileNumber" %&gt;' sortable="true" headerClass="sortable" class="tabel-border"/&gt;
  &lt;/display:table&gt;
  </code></pre>
  
  <p>In my action class i am doing is:</p>
  
  <pre><code>if(request.getParameter("param1")=="xyz"){
  String REQUEST_NO = request.getParameter("fileNumber");
  nextView=callMethod(mapping, form, request, response, REQUEST_NO);
  }
  </code></pre>
  
  <p>But the value param1 is not passed and the control even does not go to the action class on click of the hyperlink.
  My application is designed in liferay. Generally i call action class as</p>
  
  <pre><code>&lt;display:table   name="sessionScope.List" requestURI="${urlDetail}" pagesize='&lt;%= pagesize %&gt;' sort="list" class="displaytag" defaultsort="3" defaultorder="ascending"  &gt;
      &lt;display:column href="${urlDetails}"paramId="fileNumber" paramProperty="fileNumber" property="fileNumber" title= 'fileNumber" %&gt;' sortable="true" headerClass="sortable" class="tabel-border"/&gt;
      &lt;/display:table&gt;
  </code></pre>
  
  <p>and in my jsp i also have:</p>
  
  <pre><code>&lt;liferay-portlet:renderURL var="urlDetails"&gt;
    &lt;liferay-portlet:param name="_xyz" value="/myaction.do" /&gt;
    &lt;liferay-portlet:param name="table_select" value="abcd" /&gt;
  &lt;/liferay-portlet:renderURL&gt;
  </code></pre>
  
  <p>and in action class as:</p>
  
  <pre><code>if(request.getParameter("table_select")!=null &amp;&amp; request.getParameter("table_select").equals("abcd")){
                          String REQUEST_NO = request.getParameter("fileNumber");
                          nextView = callMethod(mapping, form, request, response, REQUEST_NO);    
  </code></pre>
  
  <p>I need to know how to pass values to my action class from href directly?</p>