Hello,

We are in process of moving to different IDE and at same time have decided
to upgrade to Struts 1.2.7.

Started out with a just two pages from an app that is running fine in our
current environment. It consists of a login page and a "viewPrices.jsp"
page. Upon valid login the user is supposed to see the "viewPrices.jsp"
page.

Using the debugger to step thru the "execute" method of my LoginAction
class I can see that it's finding my action mapping and pointing to the
right jsp page. However, after it exits the "execute" method of my
LoginAction class I get the following error:

Cannot get request dispatcher for path viewPrices.jsp

If I try open the viewPrices.jsp file directly in the browser it comes up
fine.

Thanks in advance for any help.

David.



Not sure what to include to help you help me so if you need anything else
please let me know.

I've downloaded and placed the following files in my WEB-INF\lib folder:
- struts.jar
- antlr.jar
- commons-beanutils.jar
- commons-digester.jar
- commons-fileupload.jar
- commons-logging.jar
- commons-validator.jar
- jakarta-oro.jar

I have also downloaded the following tlds and placed them in my WEB-INF
folder
- struts-bean.tld
- struts-html.tld
- struts-logic.tld

Here is the content of my web.xml file:
  <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN"
                         "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
    <display-name>WEB APP</display-name>
    <description>WEB APP description</description>
    <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>
        <init-param>
            <param-name>detail</param-name>
            <param-value>2</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
     <servlet>
        <servlet-name>login.jsp</servlet-name>
        <jsp-file>/login.jsp</jsp-file>
    </servlet>
    <servlet>
        <servlet-name>viewPrices.jsp</servlet-name>
        <jsp-file>/viewPrices.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>/forms/*</url-pattern>
    </servlet-mapping>
 </web-app>

Here is the content of my struts-config.sml file:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
    "http://fe-dev/jds/struts-config_1_1.dtd";>
<struts-config>
<form-beans>
      <form-bean
         name="rtpForm"
            type="com.firstenergycorp.hep.RTPForm"/>
</form-beans>
<action-mappings>
      <action
          path="/viewPrices"
                  type="com.firstenergycorp.hep.ViewPricesAction"
          name="rtpForm"
          scope="session"
          input="viewPrices.jsp">
              <forward
                        name="viewPrices"
                        path="viewPrices.jsp"/>
      </action>
      <action
          path="/login"
                  type="com.firstenergycorp.hep.LoginAction"
          name="rtpForm"
          scope="session"
          input="login.jsp">
              <forward
                        name="viewPrices"
                        path="viewPrices.jsp"/>
      </action>
</action-mappings>
</struts-config>



-----------------------------------------
The information contained in this message is intended only for the
personal and confidential use of the recipient(s) named above. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately, and delete the original message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to