As Richard mentioned your xml is wrong.  Try this...
I assume you have the header information or else it would be a different
error.;-)

<?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-class>
     <!--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>
 
   <!--This section defines what file to open first if none is specified
 -->
   <welcome-file-list>
   <welcome-file>hello.jsp</welcome-file>
   </welcome-file-list>

   <!--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>
 
</web-app>

Notice, that <welcome-file-list></welcome-file-list> comes before the
<taglib></taglib>.
Richard was saying that XMLSpy would inform you of your error as it did.  Now
you have to fix it.  Move your welcome-file-list above the taglib.
Here is what Richard referred to in the DTD...
<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?, error-page*, taglib*,
resource-ref*, security-constraint*, login-config?, security-role*,
env-entry*, ejb-ref*)>

This means that welcome-file-list comes before a taglib.  Hope that's more
clear.

Steve


majid kamal wrote:
> 
> Hi, I still have the error: 500, I just tryied to open web.xml in spyxml
> and I got this error :
> The file is not valid
> Unexpected child element wilcome-file-list
> 
> And here is again web.xml
> <?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-class>
>     <!--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>
> 
> Please help, 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

-- 
-----------------------------------------------------------------
Steven D. Wilkinson, [EMAIL PROTECTED]

Reply via email to