title: How to use <s:property> tag in <s:text> in struts 2
body: <p>Can I use <b>s:property</b> tag in <b>s:text</b> tag in Struts 2. The issue is that, i have a <code>Map</code> in my Action class<br></p>
  
  <pre><code>Map menuMap = new HashMap&lt;String, String&gt;();
  menuMap.put("home()", "lbl.home.home");
  menuMap.put("mymodule()", "lbl.home.mymodule");
  menuMap.put("adduser()", "lbl.home.adduser");
  menuMap.put("changepassword()", "lbl.home.chngPwd");
  </code></pre>
  
  <p>The Map is having Key/values as a <code>String</code>, Actually values exists in Map are the keys  exists in <code>application.properties</code> file please see below <br>
  This is my Application.properties file<br></p>
  
  <pre><code>lbl.home.home                       = Home
  lbl.home.adduser                    = Add User
  lbl.home.mymodule                   = My Module 
  lbl.home.chngPwd                    = Change Password 
  </code></pre>
  
  <p>Now I want to iterate this map in my jsp and want to get these values, from the properties file, by passing values of map as a key in application.properties file and show them as a label<br> I am able to get the key but not able to show the values from properties file<br>
  This is my Jsp code: <br>  </p>
  
  <pre><code>&lt;s:iterator value="menuMap"&gt;
   &lt;tr&gt;
     &lt;td&gt;
      &lt;a href="#" onclick="&lt;s:property value="key"/&gt;" &gt;&lt;s:text name="&lt;s:property value='value'/&gt;"/&gt;&lt;/a&gt;
     &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>Now the problem is i am able to see, if i look for page source, <b>a</b> tag and the function name which is called on <code>onclick()</code> but not able to see the text as label. am i missing anything, please help me for this.<br>
  Thanks</p>