title: Passing data from jsp page to action class using struts upon clicking a href link
body: <p>I have a JSP page wherein I am displaying some text in the form of a link.</p>
  
  <pre><code>&lt;div class="col-sm-3 pull-left"&gt;
        &lt;a href="getCityDetails.action" name = "cityName"&gt;&lt;s:property value="cityName" /&gt;&lt;/a&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>Wherein I am fetching the city Name from some particular java class file through an action.</p>
  
  <p>When I click the text I want it to redirect to the action getCityDetails.action, which in turn calls some method of another java class file. But along with this, I want to <strong>pass data</strong> into the action, that is <strong>the text</strong> that I have clicked. What changes should I make to accommodate this behaviour?</p>