I believe that problem with the template example was fixed as of the
17-Jan build.
*********** REPLY SEPARATOR ***********
On 1/28/2001 at 1:28 PM majid kamal wrote:
Hi, I got Error: 500 when I was running a struts example under tomcat,
the error said :
Error: 500
Location: /hellostruts/hello.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to open taglibrary
/WEB-INF/struts-bean.tld
: Parse Error in the tag library descriptor: Element "web-app" does not
allow "welcome-file-list" here.
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPars
eEventListener.java:672)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegating
Listener.java:116)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
...........
And my web.xml is :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-clas
s>
<!--Below is the init-param-->
<!--This defines where your application resources are located.-->
<!--It uses the classloader to find the file.-->
<!--The ".properties" extension isnīt used to locate
resources.-->
<init-param>
<param-name>application</param-name>
<param-value>helloworld.HelloWorldResources</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!--The following section defines a URI to use to retrieve the struts
taglib -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<!--This section defines what file to open first if none is specified
-->
<welcome-file-list>
<welcome-file>hello.jsp</welcome-file>
</welcome-file-list>
</web-app>
Could you please help me.
Thanks
--
majid kamal
[EMAIL PROTECTED] - email
(781) 685-1450 x2371 - voicemail/fax
__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/