title: Struts2 anchor tag doesn't include contextPath
body: <p><code>%{#request.contextPath}</code> doesn't work inside an s:a tag in Struts2. (Struts 2.2.1 to be specific.)  Is there a way to make it work? It works in other Struts2 tags.</p>
  
  <p>Here are two lines in a JSP file in a Struts 2 project whose context path is "/websites":</p>
  
  <pre><code>&lt;s:a href="%{#request.contextPath}/clickme" theme="simple"&gt;Click here.&lt;/s:a&gt;
  &lt;s:form method="post" action="%{#request.contextPath}/submitme" theme="simple"&gt;&lt;/s:form&gt;
  </code></pre>
  
  <p>And here is the output:</p>
  
  <pre><code>&lt;a href="/clickme"&gt;Click here.&lt;/a&gt;
  &lt;form id="submitme" name="submitme" action="/websites/submitme" method="post"&gt;&lt;/form&gt;
  </code></pre>
  
  <p>Notice that the context path is left off the anchor but is included in the form.</p>
  
  <p>P.S. I can't use <code>${#pageContext.request.contextPath}</code> here because <code>${}</code> isn't allowed in Struts2 tags. Besides, I'm trying to be consistent.  And I also try generally to avoid <code>${}</code> since it does not auto-escape the output.</p>
  
  <p>Thanks!</p>