Hi There, I've created MyFirstStrutsPage.jsp: <%@ page language="java" %> <%@ taglib uri="/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/struts-html.tld" prefix="html" %> <%@ taglib uri="/struts-logic.tld" prefix="logic" %> <html:html locale="true"> <head> <title>Test Struts Page</title> <html:base/> </head> <body><bean:message key="index.text1" /></body> </html:html> and my web.xml is as followed: <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="_http://java.sun.com/xml/ns/j2ee_ (http://java.sun.com/xml/ns/j2ee) " xmlns:xsi="_http://www.w3.org/2001/XMLSchema-instance_ (http://www.w3.org/2001/XMLSchema-instance) " xsi:schemaLocation="_http://java.sun.com/xml/ns/j2ee_ (http://java.sun.com/xml/ns/j2ee) _http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd_ (http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd) " version="2.4"> <display-name>Welcome to Tomcat</display-name> <description> Welcome to Tomcat </description> <!-- JSPC servlet mappings start --> <servlet> <servlet-name>org.apache.jsp.index_jsp</servlet-name> <servlet-class>org.apache.jsp.index_jsp</servlet-class> </servlet> <servlet-mapping> <servlet-name>org.apache.jsp.index_jsp</servlet-name> <url-pattern>/index.jsp</url-pattern> </servlet-mapping> <!-- Define Struts --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>ApplicationResources</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <taglib> <taglib-uri>/struts-tiles.tld</taglib-uri> <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location> </taglib> <taglib> <taglib-uri>/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> </web-app>
and i've created ApplicationResources.properties with the following entries: index.title = My first Struts application! index.text1 = This is my first Dynamic Struts application. However, when i request MyFirstStrutsPage.jsp is get the following error ( what have i done wrong, any ideas on how to fix it?): org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NullPointerException org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1219) org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082) org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:226) org.apache.jsp.registeruser_jsp._jspx_meth_bean_message_0(org.apache.jsp.registeruser_jsp:157) org.apache.jsp.registeruser_jsp._jspx_meth_html_html_0(org.apache.jsp.registeruser_jsp:118) org.apache.jsp.registeruser_jsp._jspService(org.apache.jsp.registeruser_jsp:73) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.service JspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)