You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/07/19 03:55:02 UTC
Welcome file, servlet mapping in web.xml file
Subject: Welcome file, servlet mapping in web.xml file
From: "BillB" <bi...@verizon.net>
===
Given the following web.xml entry:
<servlet>
<servlet-name>banking</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>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>validating</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>banking</servlet-name>
<url-pattern>/action/*</url-pattern>
</servlet-mapping>
<welcome-file-list><welcome-file>login.jsp</welcome-file></welcome-file-list
>
and a jsp file called login.jsp in the root webapp directory, what else is
required to view the page
with the URL: localhost:8080/EGPS/banking/action/login.jsp? I continually
get a 500 error saying the
resource isn't found. Is there something I'm missing?
Thanks,
Bill
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Welcome file, servlet mapping in web.xml file
Posted by James Mitchell <jm...@telocity.com>.
> localhost:8080/EGPS/banking/action/login.jsp
It looks like you are confusing pathmapping with welcome file list
Try this instead:
http://localhost:8080/EGPS/banking/login.jsp
I removed "/action" because that's what you need to call an action, which
will forward to your jsp.
Good luck.
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta
> -----Original Message-----
> From: Struts Newsgroup [mailto:@Basebeans.comstruts@basebeans.com]
> Sent: Thursday, July 18, 2002 9:55 PM
> To: struts-user@jakarta.apache.org
> Subject: Welcome file, servlet mapping in web.xml file
>
>
> Subject: Welcome file, servlet mapping in web.xml file
> From: "BillB" <bi...@verizon.net>
> ===
>
> Given the following web.xml entry:
>
> <servlet>
> <servlet-name>banking</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>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>validating</param-name>
> <param-value>true</param-value>
> </init-param>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>banking</servlet-name>
> <url-pattern>/action/*</url-pattern>
> </servlet-mapping>
>
>
> <welcome-file-list><welcome-file>login.jsp</welcome-file></welcome
> -file-list
> >
>
> and a jsp file called login.jsp in the root webapp directory, what else is
> required to view the page
> with the URL: localhost:8080/EGPS/banking/action/login.jsp? I continually
> get a 500 error saying the
> resource isn't found. Is there something I'm missing?
>
> Thanks,
> Bill
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>