S
Stefan
I'm very new to struts and am trying to develop a very simple test -
just navitaging to a home page - index.jsp...
I'm running WebLogic 8.1 and Struts 1.1.
Every time I try to navigate to
http://localhost:7001/myWebApp/lookup/home/
I get a page NOT FOUND in the browser and the web server error log
outputs 'SEVERE: Invalid path /home/ was requested.'....
Every time I try to navigate to
http://localhost:7001/myWebApp/lookup/home (without the slash at the
end)
I get a page CANNOT BE DISPLAYED in the browser and the web server
error log outputs
ERROR 13 Nov 2003 12:18:12,726 nulljava.lang.NullPointerException
ERROR 13 Nov 2003 12:18:12,726 nulljava.lang.NullPointerException
ERROR 13 Nov 2003 12:18:12,726 nulljava.lang.NullPointerException
Any idea of what i'm doing wrong:
Thanks!!
index.jsp simply contains one line:
<jsp:forward page="/lookup/home/" />
web.xml contains:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>mapping</param-name>
<param-value>org.grnds.structural.ic.struts.IcActionMapping</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/lookup/*</url-pattern>
</servlet-mapping>
action-mapping in struts-config:
<action-mappings>
<action path="/home">
<set-property property="implClass"
value="org.grnds.structural.ic.action.SimpleAction" />
<set-property property="navCtrl" value="NAV_CTRL_NONE" />
<forward name="success" path="/index.jsp"/>
</action>
</action-mappings>
just navitaging to a home page - index.jsp...
I'm running WebLogic 8.1 and Struts 1.1.
Every time I try to navigate to
http://localhost:7001/myWebApp/lookup/home/
I get a page NOT FOUND in the browser and the web server error log
outputs 'SEVERE: Invalid path /home/ was requested.'....
Every time I try to navigate to
http://localhost:7001/myWebApp/lookup/home (without the slash at the
end)
I get a page CANNOT BE DISPLAYED in the browser and the web server
error log outputs
ERROR 13 Nov 2003 12:18:12,726 nulljava.lang.NullPointerException
ERROR 13 Nov 2003 12:18:12,726 nulljava.lang.NullPointerException
ERROR 13 Nov 2003 12:18:12,726 nulljava.lang.NullPointerException
Any idea of what i'm doing wrong:
Thanks!!
index.jsp simply contains one line:
<jsp:forward page="/lookup/home/" />
web.xml contains:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>mapping</param-name>
<param-value>org.grnds.structural.ic.struts.IcActionMapping</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/lookup/*</url-pattern>
</servlet-mapping>
action-mapping in struts-config:
<action-mappings>
<action path="/home">
<set-property property="implClass"
value="org.grnds.structural.ic.action.SimpleAction" />
<set-property property="navCtrl" value="NAV_CTRL_NONE" />
<forward name="success" path="/index.jsp"/>
</action>
</action-mappings>