Showing posts with label Struts. Show all posts
Showing posts with label Struts. Show all posts

Monday, March 11, 2013

Error: Missing message for key "label.username" in bundle "(default bundle)" for locale en_IN

Error: HTTP Status 500 - javax.servlet.ServletException: javax.servlet.jsp.JspException: Missing message for key "label.username" in bundle "(default bundle)" for locale en_IN

struts.config file
<message-resources parameter="resource.MessageResource" />

Folder Structure







Solution:
Change the struts.config file line to given below
<message-resources parameter="MessageResource" />

Error: javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception creating bean of class

Error:
javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception creating bean of class

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

Solution
In struts-config.xml  check in <action-mappings> whether the type path is correct.