title: bean:message equivalent in java code?
body: <p>I'm using Struts 1.2 and I need to reference the value of some internationalized strings in a JSP page. Normally I would do this using the &lt; bean:message > tag, but I need to reference it from the Java code (surrounded by &lt;% ... %>) instead.</p>
  
  <p>How can I do this?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;% 
  person.setName("John Smith");
  person.setOccupation("Chef");   // I want to internationalize this string
  %&gt;
  </code></pre>