aspose file tools*
The moose likes Struts and the fly likes Struts - Missing message for key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts - Missing message for key " Watch "Struts - Missing message for key " New topic
Author

Struts - Missing message for key

Mariya Antony christopher
Ranch Hand

Joined: Jan 24, 2012
Posts: 49

Iam stuck with error for 2 days.kindly suggest the comments
my jsp file
<table>
<tr>
<td>
<div style="overflow:auto; height:468px;width:970px; border:1px solid #8cb2ce;">
<br>
<br>
<html:form action="/register" method="post" focus="login">
<table id="customers1" border="0" align="center">
<tr class="alt">
<td colspan="2">LOGIN REGISTRATION</td>
</tr>
<tr>
<td colspan="2" align="center">
</td>
</tr>
<tr>
<td><bean:message key="login.registerusername" /></td>
<td><html:text property="username1" onkeyup="showHint(this.value)" style="width:170px; font-family:Verdana; border: 1px solid #c0c0c0; color: #454545; font-size: 1.0em;" /><span id="txtHint" style="color:red;"> </span><br>
<script>
document.getElementById('username1').focus()
</script>
<div style="color:red; font-family:verdana; font-size:1.0em;">
<html:messages id="err_name1" property="username1">
<bean:write name="err_name1"/>
</html:messages>
</div>
</td>
</tr>
<tr>
<td><bean:message key="login.password"/></td>
<td><html:password property="password1" style="width:170px; font-family:Verdana; border:1px solid #c0c0c0; color: #454545; font-size: 1.0em;" />
<div style="color:red; font-family:verdana; font-size:1.0em;">
<html:messages id="err_name1" property="password1">
<bean:write name="err_name1"/>
</html:messages>
</div>
</td>
</tr>
<tr>
<td><bean:message key="login.confirmpassword" />
</td>
<td>
<html:password property="confirmpassword" style="width:170px; font-family:Verdana; border:1px solid #c0c0c0; color: #454545; font-size: 1.0em;" />
<div style="color:red; font-family:verdana; font-size:1.0em;">
<html:messages id="err_name1" property="confirmpassword">
<bean:write name="err_name1"/>
</html:messages>
</div>
</td>
</tr>
<tr>
<td>
<bean:message key="login.cube" />
</td>
<td>
<html:text property="cubicleid" style="width:100px; font-family:Verdana;border:1px solid #c0c0c0; color:#454545; font-size: 1.0em;" />
<div style="color:red; font-family:verdana; font-size:1.0em">
<html:messages id="cube" property="cubicleid">
<bean:write name="cube" />
</html:messages>
</div>
</td>
</tr>

tomcat display:
org.apache.jasper.JasperException: An exception occurred processing JSP page /register.jsp at line 208

205: </tr>
206: <tr>
207: <td>
208: <bean:message key="login.cube" />
209: </td>
210: <td>
211: <html:text property="cubicleid" style="width:100px; font-family:Verdana;border:1px solid #c0c0c0; color:#454545; font-size: 1.0em;" />


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

javax.servlet.ServletException: javax.servlet.jsp.JspException: Missing message for key "login.cube"


my application resources
login.startul=<ul>
login.startli=<li>
login.endli=</li>
login.endul=</ul>
login.oldpassword=Oldpassword
login.cube=Cubicle Id
login.newpassword=Newpassword
login.user=EmailId
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts - Missing message for key
 
Similar Threads
Page displaying in IE6 and older versions but not in Higher versions, chrome and firefox also.
Client side validation not working
What American Accent Do You Have?
Text is not getting equally vertical align in Moz/Safari/IE
HTML does not print properly - table width exceeding 100%?