struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randy <jrgerm...@fedex.com>
Subject Cannot find bean null in scope session
Date Mon, 16 Dec 2002 15:01:53 GMT
I'm having a problem getting struts to validate a .jsp page using a
bean.  I get the message "Cannot find bean null in scope session"
whenever the submit button is clicked on the page.  I have
scope="request" turned on in the struts-config.xml file.  The validate
works correctly on other pages which don't use beans in them.  Also, the

portion of the .jsp page below that is in question used to validate
correctly but now it gives the blank screen with the above message in
the log.  Can you offer any suggestions as to what I may be doing wrong.




<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib prefix="site" uri="/WEB-INF/site.tld" %>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>

<%@ page import="com.fedex.ess.site.entity.PackageInfo" %>

<bean:define id='dcirPg'
name='<%=(String)request.getAttribute("dcirNbr")%>'
type='com.fedex.ess.site.entity.DCIR' scope='session'/>
<bean:define id="user" name="user" type="com.fedex.ess.site.entity.User"

scope="session"/>
<bean:define id="packageInfo" name="packageInfo"
type="com.fedex.ess.site.entity.PackageInfo" scope="request"/>

<html:form action="modifyContainerDesc.do">
<input type="hidden" name="section" value="cd" />
<input type="hidden" name="s" value="cd" />
<table cellspacing="0" width="610" border="0" cellpadding="0"
bgcolor="#660099">
  <tr>
    <td valign="top" class="sectiontitle"><font color=ffffff>Container
Description</font>
    </td>
    <td valign="top" align="right" class="sectiontitle">
      <font color=ffffff>Master Tracking # <bean:write name="dcirPg"
property="trackingNbr" /></font><div class="packagetitle">Package 1 of
1: </div>
    </td>
  </tr>
</table>
<table border="0">
  <tr>
    <td valign="top" width="300">
      <div class="step">
      <div><html:img height="1" width="200" src="images/spacer.gif"/>
      </div>
      What type of container was used for this package?
      <html:link
page="javascript:helpWin('help/container_type.html',450,400);">
         <html:img alt="Info" border="0" src="images/sinfo.gif" />
</html:link>
      <div>
        <html:errors property="none"/>
        <html:errors property="oLocation"/>
      </div>
    </td>
    <td valign="top">
      <div><font color=red>*</font>
        <html:select name="packageInfo" property="containerType">
        <html:option key="containerType"
value="__select__">--Select--</html:option>
        <html:option key="containerType" value="none">None</html:option>

        <html:option key="containerType"
value="shippers_corrugated_box">Shipper's corrugated box</html:option>
        <html:option key="containerType" value="shippers_tube">Shipper's

tube</html:option>
        <html:option key="containerType" value="transit_case">Transit
case</html:option>
        <html:option key="containerType" value="wooden_crate">Wooden
crate</html:option>
        <html:option key="containerType"
value="baggage">Baggage</html:option>
        <html:option key="containerType" value="fdx_box_sm">FedEx Box
(sm)</html:option>
        <html:option key="containerType" value="fdx_box_med">FedEx Box
(med)</html:option>
        <html:option key="containerType" value="fdx_box_lg">FedEx Box
(lg)</html:option>
        <html:option key="containerType" value="fdx_tube">FedEx
Tube</html:option>
        <html:option key="containerType" value="fdx_letter">FedEx
Letter</html:option>
        <html:option key="containerType" value="fdx_pak">FedEx
Pak</html:option>
        <html:option key="containerType" value="eps">EPS (Styrofoam)
cooler</html:option>
        <html:option key="containerType"
value="hard_plastic_cooler">Hard plastic cooler</html:option>
        <html:option key="containerType" value="plastic_bag_env">Plastic

bag/envelope</html:option>
        <html:option key="containerType" value="paper_bag_env">Paper
bag/envelope</html:option>
        <html:option key="containerType" value="plastic_pail">Plastic
pail</html:option>
        <html:option key="containerType" value="metal_pail">Metal
pail</html:option>
        <html:option key="containerType" value="other">Other
(specify)</html:option>
      </html:select>
        <div>Other:
          <html:text value="<%=packageInfo.getContainerTypeOtherDesc()
%>" property="containerTypeOtherDesc" size="25" maxlength="50"/>


</html:form>




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message