ARe you requesting by typing in the browser
http://localhost:8080/MyFirstStrutsPage.jsp?
--- [EMAIL PROTECTED] wrote:
>
> 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" %>
>
>
> Test Struts Page
>
>
>
>
>
> and my web.xml is as followed:
>
> 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">
> Welcome to Tomcat
>
> Welcome to Tomcat
>
>
>
>
>
org.apache.jsp.index_jsp
>
>
org.apache.jsp.index_jsp
>
>
>
>
org.apache.jsp.index_jsp
> /index.jsp
>
>
>
> action
>
>
org.apache.struts.action.ActionServlet
>
> application
> ApplicationResources
>
>
> debug
> 2
>
>
>config
>
>
/WEB-INF/struts-config.xml
>
>
>
> action
> *.do
>
>
> /struts-tiles.tld
>
>
/WEB-INF/struts-tiles.tld
>
>
> /struts-html.tld
>
>
/WEB-INF/struts-html.tld
>
>
> /struts-bean.tld
>
>
/WEB-INF/struts-bean.tld
>
>
> /struts-logic.tld
>
>
/WEB-INF/struts-logic.tld
>
>
>
> 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)
>
>
>
__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]