Hi All,

I'm working my way through properties and I'm kind of stuck. I have a
properties file (package.properties) with a "message" entry...

Index.message= Color

... I am able to pull this message via the s:text tag, so I know it's
available in the value stack, but when I try to pull the same message for
the select label below, it does not work. I've also tried %{message} and
%{getText('message')}.

Thanks,
Ryan


<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<table class="w100p" border="1">
  <tr>
    <td>
      <s:text name="message"/>
    </td>
    <td class="alR">
      <s:form class="mauto alR" name="change_color" action="/index.action"
method="GET" javascriptTooltip="true">
          <s:select
             class="mauto"
             tooltip="Choose Your Color"
             label="message"
             list="#{'b':'Blue', 'r':'Red'}"
             name="request_color"
             emptyOption="false"
             value="color"
             onchange="javascript: document.change_color.submit();"
          />
      </s:form>
    </td>
  </tr>
</table>

Reply via email to