Tim--

I dont understand why looping would help when your webserver cant find a page whicgh is misconfigured or missing???

The only reference I could see for Contact was located at
<forward name="Contact"  path="/content/address.jsp" redirect="false"/>

keeping in mind that path="URL"
where The URL can be absolute or relative to the current JSP file. If it is absolute (beginning with a /), the path is resolved by your Web or application server.

my question is where is address.jsp specifically located?

Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "Slattery, Tim - BLS" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, April 16, 2007 1:25 PM
Subject: RE: Struts in Servlet 2.4



tough to guess on what your configuration is without seeing
your configuration files

Please display web.xml and struts.xml for us

Thanks, that's entirely reasonable. I've followed Laurie Harper's
advice, and put a loop into the JSP page immediately before it fails.
That loop calls requestSession.getAttributeNames(), then iterates
through the resulting Enumeration and displays the session attributes
present. "Contact" is there. But the very next statement, an
<html:link..." tag that includes paramName="Contact", generated the
error message:

javax.servlet.jsp.JspException: Cannot find bean Contact in any scope

It's running only the very first "Action", which is path="/index" in the
weblogic-config.xml file. That module finds and reads its form bean,
sets the "Contact" object in the session objects and forwards to a JSP
page.

Hmm..maybe I should put some more debug print into the JSP page, and
make sure that the right object is stored in the Contact session
attribute.

Anyway, thanks for giving some thought to this.

So, as requested, here are the config files

web.xml:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
        version="2.4">

 <display-name>CES</display-name>

 <filter>
   <filter-name>jspFilter</filter-name>
   <filter-class>gov.bls.idcf.ces.filters.jspFilter</filter-class>
 </filter>

 <filter>
   <filter-name>sessionFilter</filter-name>
   <filter-class>gov.bls.idcf.ces.filters.sessionFilter</filter-class>
 </filter>

 <filter-mapping>
   <filter-name>sessionFilter</filter-name>
   <url-pattern>*.do</url-pattern>
 </filter-mapping>

 <filter-mapping>
   <filter-name>jspFilter</filter-name>
   <url-pattern>*.jsp</url-pattern>
 </filter-mapping>

 <filter-mapping>
   <filter-name>sessionFilter</filter-name>
   <url-pattern>*.jsp</url-pattern>
 </filter-mapping>

 <servlet>
   <servlet-name>setup</servlet-name>
   <servlet-class>gov.bls.idcf.SetupServlet</servlet-class>
   <load-on-startup>1</load-on-startup>
 </servlet>

 <servlet>
   <servlet-name>action</servlet-name>

<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
   <init-param>
     <param-name>application</param-name>
     <param-value>ces</param-value>
   </init-param>
   <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>
   <init-param>
     <param-name>validate</param-name>
     <param-value>true</param-value>
   </init-param>
   <load-on-startup>1</load-on-startup>
 </servlet>

 <servlet-mapping>
   <servlet-name>action</servlet-name>
   <url-pattern>*.do</url-pattern>
 </servlet-mapping>

 <session-config>
   <session-timeout>30</session-timeout>
 </session-config>

<jsp-config>
 <taglib>
   <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
   <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
   <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
   <taglib-location>/WEB-INF/tld/struts-logic-el.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri>/WEB-INF/struts-form.tld</taglib-uri>
   <taglib-location>/WEB-INF/tld/struts-form.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
   <taglib-location>/WEB-INF/tld/struts-template.tld</taglib-location>
 </taglib>

</jsp-config>

</web-app>

And here's struts-config.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
         "-//Apache Software Foundation//DTD Struts Configuration
1.0//EN"
         "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>


<struts-config>


 <!-- ========== Form Bean Definitions
=================================== -->
<form-beans>
   <form-bean
       name="CESHomeForm" type="gov.bls.idcf.ces.struts.CESHomeBean">
   </form-bean>
   <form-bean
   name="EntryFormBean"
type="gov.bls.idcf.ces.struts.EntryFormBean">
   </form-bean>
   <form-bean
       name="ContactFormBean"
type="gov.bls.idcf.ces.struts.ContactFormBean">
   </form-bean>
   <form-bean
       name="SolcFormBean" type="gov.bls.idcf.ces.struts.SolcFormBean">
   </form-bean>
   <form-bean
       name="WorksiteFormBean"
type="gov.bls.idcf.ces.struts.WorksiteFormBean">
   </form-bean>
   <form-bean
       name="ReviewBean" type="gov.bls.idcf.ces.struts.ReviewFormBean">
   </form-bean>
   <form-bean
       name="PayGroups" type="gov.bls.idcf.ces.struts.PayGroupForm">
   </form-bean>
</form-beans>


<!-- ========== Global Forward Definitions
============================== -->
<global-forwards>
   <forward name="CESHome" path="/index.jsp" redirect="false"/>
   <forward name="Upload" path="/content/thankup.jsp"
redirect="false"/>
   <forward name="SystemFailure" path="/systemError.jsp"
redirect="false"/>
   <forward name="SessionTimeOut" path="/content/sessionTimeout.jsp"
redirect="false"/>
   <forward name="InvalidPageRquest" path="/invalidPageRequest.jsp"
redirect="false"/>
</global-forwards>


<!-- ========== Action Mapping Definitions
============================== -->
 <action-mappings>

   <action    path="/index"
              type="gov.bls.idcf.ces.struts.CESHomeAction"
              name="CESHomeForm"
             scope="request"
             input="/index.html">
     <forward name="CESHomeEmpty"  path="/cesHomeEmpty.jsp"
redirect="false"/>
   </action>

   <action    path="/PayGroups"
              type="gov.bls.idcf.ces.struts.PayGroupsAction"
              name="PayGroups"
              scope="request"
              input="/content/PayGroups.jsp">
     <forward name="FormABCE" path="/content/cesform_abce.jsp"
redirect="false"/>
   </action>

   <action    path="/entryForm"
              type="gov.bls.idcf.ces.struts.EntryFormAction"
              name="EntryFormBean"
              scope="request"
              input="/index.jsp">
     <forward name="FormABCE"  path="/content/cesform_abce.jsp"
redirect="false"/>
     <forward name="FormGS"  path="/content/cesform_gs.jsp"
redirect="false"/>
     <forward name="PayGroup" path="/content/PayGroups.jsp"
redirect="false"/>
   </action>

   <action    path="/History"
              type="gov.bls.idcf.ces.struts.HistoryAction"
              name="EntryFormBean"
              scope="request">
     <forward name="HistoryABCE" path="/content/history_abce.jsp"
redirect="false"/>
     <forward name="HistoryGS" path="/content/history_gs.jsp"
redirect="false"/>
   </action>

   <action    path="/entryFormUpdate"
              type="gov.bls.idcf.ces.struts.EntryFormUpdateAction"
              name="EntryFormBean"
              scope="request"
              input="/content/entryForm.jsp">
     <forward name="FormABCE"  path="/content/cesform_abce.jsp"
redirect="false"/>
     <forward name="FormGS"  path="/content/cesform_gs.jsp"
redirect="false"/>
     <forward name="reviewABCE" path="/content/review_abce.jsp"
redirect="false" />
     <forward name="reviewGS" path="/content/review_gs.jsp"
redirect="false" />
     <forward name="review2pg" path="/content/review2pg.jsp"
redirect="false"/>
   </action>

   <action    path="/review"
              type="gov.bls.idcf.ces.struts.ReviewAction"
              name="EntryFormBean"
              scope="request"
              input="/content/review_abce.jsp">
     <forward name="reviewABCE" path="/content/review_abce.jsp"
redirect="false"/>
     <forward name="review2pg" path="/content/review2pg.jsp"
redirect="false" />
     <forward name="reviewGS" path="/content/review_gs.jsp"
redirect="false"/>
     <forward name="FormABCE"  path="/content/cesform_abce.jsp"
redirect="false"/>
     <forward name="FormGS"  path="/content/cesform_gs.jsp"
redirect="false"/>
     <forward name="ThankYou" path="/content/thankyou.jsp"
redirect="false"/>
   </action>

   <action    path="/finalEdit"
              type="gov.bls.idcf.ces.struts.FinalEditAction"
              name="EntryFormBean"
              scope="request"
              input="/content/review2pg.jsp">
     <forward name="success" path="/content/thankyou.jsp"
redirect="false"/>
     <forward name="review" path="/content/review2pg.jsp"
redirect="false"/>
   </action>

   <action    path="/finish"
              type="gov.bls.idcf.ces.struts.FinishAction"
              name="EntryFormBean"
              scope="request"
              input="/content/FinalEdit.jsp">
     <forward name="ThankYou" path="/content/thankyou.jsp"
redirect="false"/>
   </action>


       <action  path="/contactForm"
       type="gov.bls.idcf.ces.struts.ContactFormAction"
       name="ContactFormBean"
                scope="request">
        <forward name="Contact"  path="/content/address.jsp"
redirect="false"/>
        </action>

        <action path="/contactFormUpdate"
        type="gov.bls.idcf.ces.struts.ContactFormUpdateAction"
        name="ContactFormBean"
   scope="request"
   input="/content/address.jsp">
   <forward name="Completed"  path="/content/completed.jsp"
redirect="false"/>
   <forward name="Contact" path="/content/address.jsp"
redirect="false"/>
        </action>

   <action    path="/solcForm"
              type="gov.bls.idcf.ces.struts.SolcFormAction"
              name="SolcFormBean"
              scope="request">
     <forward name="solc"  path="/content/solcForm.jsp"
redirect="false"/>
   </action>

   <action    path="/solcFormUpdate"
              type="gov.bls.idcf.ces.struts.SolcFormUpdateAction"
              name="SolcFormBean"
              scope="request"
              input="/content/solcForm.jsp">
     <forward name="solc_failure"  path="/content/solcForm.jsp"
redirect="false"/>
     <forward name="solc_success"  path="/content/solc_completed.jsp"
redirect="false"/>
   </action>

   <action    path="/worksiteForm"
              type="gov.bls.idcf.ces.struts.WorksiteFormAction"
              name="WorksiteFormBean"
              scope="request">
     <forward name="worksite"  path="/content/worksiteForm.jsp"
redirect="false"/>
   </action>

   <action    path="/worksiteFormUpdate"
              type="gov.bls.idcf.ces.struts.WorksiteFormUpdateAction"
              name="WorksiteFormBean"
              scope="request"
              input="/content/worksiteForm.jsp">
     <forward name="worksite_failure"  path="/content/worksiteForm.jsp"
redirect="false"/>
     <forward name="worksite_success"  path="/content/completed.jsp"
redirect="false"/>
   </action>

 </action-mappings>

</struts-config>

--
Tim Slattery
[EMAIL PROTECTED]


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



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

Reply via email to