problem with struts "the requested source ... is not available"

View: New views
1 Messages — Rating Filter:   Alert me  

problem with struts "the requested source ... is not available"

by andyandy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello! My problem is a very common one, so I’m sorry for repeating myself. I just don’t see what’s wrong with my application. I’m using Struts with Eclipse, and I get a “the requested source (/insertAdStruts/altaig_hoteles.do) is not available” error.

I call the application with: http://localhost:8080/insertAdStruts/altaig_hoteles.do

An extract of web.xml:

<web-app>
  <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>debug</param-name>
      <param-value>2</param-value>
    </init-param>
    <load-on-startup>9</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
<taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>



An extract of struts-config.xml:

<form-beans >
     <form-bean name="FormGeneralForm" type="com.ax.paol.beans.FormGeneralForm"/>
  </form-beans >
  <global-exceptions />
  <global-forwards />
  <action-mappings >
        <action path="/altaig_hoteles"
        type="com.ax.paol.actions.UploadAction"
              name="FormGeneralForm"
              scope="session">
                 <forward name="success" path="/jsp/altaig_hoteles.jsp"/>
                 <forward name="errors" path="/jsp/altaig_hoteles.jsp"/>
                 <forward name="enviar" path="/uploadSend.do?site=viajarhoy"/>
      </action>
  </action-mappings >


And the structure is:
• Src
• WebRoot
o WEB-INF
 Javascript
 Jsp

Thanks in advance