title: Creating navigation links in Struts 2
body: <p>Is there some way to replicate rails' "link-to-unless-current"?</p>
  
  <p>Ie. if i have a list of links in my navigation, and I want to mark the current page with a different css style (or even have it be plain text, not a link)?</p>
  
  <p>Now I just made a method in my action-class (getPage()) which returns a name that I assign for each action, and test for that when building my navigation... Works but not pretty, and I have to manually set the page name (couldn't struts somehow automaticalyy get it from the context).</p>
  
  <p>Using Struts 2, Tiles, JSP + Struts taglibs.</p>