Hi Friends,
I am facing a very peculiar problem in Struts and not able to find a solution for it. Following is the code snippet.
struts-config.xml
-----------------
<struts-config>
<message-resources parameter="resource.ApplicationResources" />
</struts-config>
login.jsp
---------
<html:form action="login">
<bean:message key="label.username"/>
<html:text property="userName"></html:text>
<html:errors property="userName" />
<br/>
<bean:message key="label.password" />
<html:password property="password"></html:password>
<html:errors property="password"/>
<html:submit/>
<html:reset/>
</html:form>
ApplicationResources.properties
-------------------------------
label.username=LoginDetail
label.password=Password
label.welcome=Welcome
error.username=UserName not entered.
I am getting the following exception while running my program
javax.servlet.jsp.JspException: Missing message for key "label.username" in bundle "(default bundle)" for locale en_US
Please help me as I am on it for 3 - 4 days now without any success.
Thanks and Regards,
Sid.
HI
<td>
<logic:notEmpty name="element" property="percentageLeft">
<bean:write name="element" property="percentageLeft" />
</logic:notEmpty>
</td>
here i want to color the element â??percentageLeftâ?? when it is greater than 70.
So I want to get this value into some variable for comparing.
Struts Exception....Siddharth Bhargava June 2, 2011 at 4:43 PM
Hi Friends, I am facing a very peculiar problem in Struts and not able to find a solution for it. Following is the code snippet. struts-config.xml ----------------- <struts-config> <message-resources parameter="resource.ApplicationResources" /> </struts-config> login.jsp --------- <html:form action="login"> <bean:message key="label.username"/> <html:text property="userName"></html:text> <html:errors property="userName" /> <br/> <bean:message key="label.password" /> <html:password property="password"></html:password> <html:errors property="password"/> <html:submit/> <html:reset/> </html:form> ApplicationResources.properties ------------------------------- label.username=LoginDetail label.password=Password label.welcome=Welcome error.username=UserName not entered. I am getting the following exception while running my program javax.servlet.jsp.JspException: Missing message for key "label.username" in bundle "(default bundle)" for locale en_US Please help me as I am on it for 3 - 4 days now without any success. Thanks and Regards, Sid.
How to manipulate value in <bean write> Nishith Coomar March 17, 2012 at 2:55 PM
HI <td> <logic:notEmpty name="element" property="percentageLeft"> <bean:write name="element" property="percentageLeft" /> </logic:notEmpty> </td> here i want to color the element â??percentageLeftâ?? when it is greater than 70. So I want to get this value into some variable for comparing.
Post your Comment