| Quote: |
|
The JSP preview currently renders struts <html:select> <html:option> elements showing their "value" instead of what is inside the <option> tag. For example, for the JSP code below, the combo box shown has the numbers 1 and 2 in it. <html:select property="minMax"> <html:option value="1">Use minimums & maximums</html:option> <html:option value="2">Use fixed #</html:option> </html:select> What should be shown is, obviously, the text in the tags. |
| Quote: |
|
Also, when displaying a java value e.g. <%=Constants.PARAM_MAX%>, the JSP preview shows {Constants.PARAM_MAX} instead of the value that it contains. |
| Quote: |
|
Thirdly, using the <bean:message> tag does not render my text from the ApplicationResources.properties file, it renders the key I put in the bean tag, for example ???this.is.the.key???, even though that key exists in the resources file. |
| leekleiner wrote: |
| Thirdly, using the <bean:message> tag does not render my text from the ApplicationResources.properties file, it renders the key I put in the bean tag, for example ???this.is.the.key???, even though that key exists in the resources file. |
| Code: |
| <message-resources parameter="com.yourcompany.struts.ApplicationResources" />
|
| Code: |
|
<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html:html locale="true"> <body> <bean:message key="test.test"/> </body> </html:html> |