You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rich <ri...@mvsc.com> on 2003/05/23 16:49:40 UTC

problems with getting the errors to display (Cannot find bean error in any scope)

I have been having problems getting the struts validation to work.  at the
bottom is some code snippets for reference.  I am using struts 1.1, tomcat
4.1, jdk 1.3.  The problem as I understand it is the struts validation
appears to execute but I keep getting this message when I use this:
      <logic:messagesPresent >
        <bean:message key="error.header" />
          <html:messages id="error" message="false" >
            <bean:message key="error.prefix" />
              <bean:write name="error" /><br />
            <bean:message key="error.suffix" />
          </html:messages>
        <bean:message key="error.footer" />
      </logic:messagesPresent>

in my jsp.  It appears that after hitting submit on a blank form that the
struts validation is ran.  It seems to know that there is a required field
(or other error) and it comes back to my jsp.  The jsp seems to be able to
detect that there is an error with the <logic:messagesPresent > tag, but
either the <html:messages id="error" message="false" > tag or the
<bean:write name="error" /><br /> is not working correctly.  Or something
else is not working.  I then get this error in the browser:

exception
org.apache.jasper.JasperException: Cannot find bean error in any scope
....
root cause
javax.servlet.ServletException: Cannot find bean error in any scope
....

When the form is not completed correctly I never reach the code in my
action.  So, again it seems that the validation is firing but I can not
figure out why I can't get the errors to display on the page correctly.  I
tried changing from using the above code snippet to just using the
<html:errors /> tag, but it comes back to my jsp and nothing is displayed.
Again, it seems to know that there was an error as my action is not reached
when the form is not completed correctly.

Thanks to whatever struts guru that can help me,

Rich


related portion of code (or at least I think)

----------------------- validation.xml--------------------------
<form-validation>

    <global>
    </global>

    <formset>
      <form name="diaryForm">
        <field property="reminderDate" depends="required,date">
          <arg0 key="diary.reminderDate" />
          <msg name="date" key="diary.reminderDate" />
        </field>
    </form>
    </formset>

</form-validation>

---------------------struts-config.xml---------------------------
<struts-config>

  <data-sources>
  </data-sources>

  <form-beans>
    <form-bean name="diaryForm" type="com.mvsc.czee.forms.DiaryForm" />
  </form-beans>

  <action-mappings>

  <action
      path="/diaryEdit"
      type="com.mvsc.czee.actions.DiarySaveAction"
      name="diaryForm"
      scope="request"
      validate="true"
      input="/pages/diaryAddEdit.jsp" >
      <forward name="success" path="/diaryAdjusterAction.do" />
      <forward name="failure" path="/pages/diarySearchList.jsp" />
      <forward name="cancel" path="/diaryAdjusterAction.do" />
    </action>

  </action-mappings>

  <message-resources parameter="resources.application" />

  <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config"
      value="/WEB-INF/tiles-defs.xml" />
    <set-property
      property="moduleAware"
      value="true" />
    <set-property
      property="definitions-parser-validate"
      value="true" />
  </plug-in>

  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames"
      value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
  </plug-in>

</struts-config>

-----------------------------web.xml-------------------------------
....
<taglib>
    <taglib-uri>/tags/validator</taglib-uri>
    <taglib-location>/WEB-INF/struts-validator.tld</taglib-location>
  </taglib>
....

--------------------------one of the forms------------------------
....
public class DiaryForm extends ValidatorForm {
  private String diaryId;
  private String diaryCode;
  private String ownerId;
  private String ownerType;
  private String remindUserId;
  private String reminderDate;
  private String reminderTime;
  private String priorityCode;
  private String completedDate;
  private String zoomId;
  private String zoomType;
  private String createdDate;
  private String createdUserId;
  private String lastChangDate;
  private String lastChangeUserId;
  private String diaryDesc;
....(the rest is just getters and setters....


---------------------------and here is the related jsp----------------------
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/czee-tags.tld" prefix="cz" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/czee-tags.tld" prefix="cz" %>

<tiles:insert definition="diaryLayout">
  <tiles:put name="title" type="String">ClaimZone Enterprise Edition - Diary
Adjuster List</tiles:put>
  <tiles:put name="content" type="String">
    <script language="JavaScript" src="dt_select.js">
    </script>
    <html:form action="/diaryEdit" focus="remindUserId" >
    <script language="JavaScript" src="dt_select.js" >
    </script>
       <table border="0" cellspacing="5">
        <tr>
          <td colspan="4" class="diaryTodayHeader"><bean:message
key="diary.createNewDiary"  /></td>
        </tr>
        <tr>
          <br/>
          <td class="mainTextLt" colspan="4">
            <cz:label property="diary.diaryDesc"  /><br />
            <html:textarea property="diaryDesc" styleClass="formTextArea570"
/>
          </td>
        </tr>
        <tr>
          <html:hidden property="diaryId" />
          <td class="mainTextLt">
            <cz:label property="diary.remindUserId"  /><br />
            <html:text styleClass="formTextField120" property="remindUserId"
maxlength="10"/>
            <html:link href="#">
              <html:img src="images/magnify.gif" width="16" height="16"
border="0"/>
            </html:link>
          </td>
          <td class="mainTextLt">
            <cz:label property="diary.diaryCode"  /><br />
            <html:text styleClass="formTextField80" property="diaryCode"
maxlength="15"/>
          </td>
          <td class="mainTextLt">
            <cz:label property="diary.priorityCode"  /><br />
            <html:text styleClass="formTextField80" property="priorityCode"
maxlength="1"/>
          </td>
        </tr>
        <tr>
          <td class="mainTextLt">
            <!-- 2 hidden fields, and the link to the claimID -->
            <html:hidden property="ownerType"/>
            <html:hidden property="ownerId" />
            <cz:label property="diary.ownerId"  /><br />
            <html:text styleClass="formTextField120" property="ownerId" />
            <html:link href="#">
              <html:img src="images/link.gif" width="16" height="16"
border="0"/>
            </html:link>
          </td>
          <td class="mainTextLt">
            <cz:label property="diary.zoomType"  /><br />
            <html:text styleClass="formTextField120" property="zoomType"
maxlength="3"/>
          </td>
          <td class="mainTextLt">
            <cz:label property="diary.zoomId"  /><br />
            <html:text styleClass="formTextField120" property="zoomId"
readonly="true" />
          </td>
        </tr>
        <tr>
          <td class="mainTextLt">
            <cz:label property="diary.reminderDate"  /><br />
              <cz:dateselect
                inputName="reminderDate"
                calendarImage="calendar.gif"
                styleInput="formTextField120"
                formUsed="diaryForm"
                fieldUsed="reminderDate"
                displayTime="true" />
              <html:hidden styleClass="formTextField120"
property="reminderTime"/>
          </td>
          <td class="mainTextLt">
            <cz:label property="diary.completedDate"  /><br />
              <cz:dateselect
                inputName="completedDate"
                calendarImage="calendar.gif"
                styleInput="formTextField80"
                formUsed="diaryForm"
                fieldUsed="completedDate"
                displayTime="false" />
          </td>
          <td class="mainTextLt"><bean:message key="default.blankSpace"
/></td>
        </tr>
        <tr>
          <td colspan="4" class="diaryTodayHeader">
            <html:submit value="Save" styleClass="formSubmit"  />
              <bean:message key="default.blankSpace" /><bean:message
key="default.blankSpace" />
            <html:cancel value="Cancel" styleClass="formSubmit"
onclick="bCancel=true;"/>
          </td>
        </tr>
      </table>
      <logic:messagesPresent >
        <bean:message key="error.header" />
          <html:messages id="error" message="false" >
            <bean:message key="error.prefix" />
              <bean:write name="error" /><br />
            <bean:message key="error.suffix" />
          </html:messages>
        <bean:message key="error.footer" />
      </logic:messagesPresent>
      </html:form>

  </tiles:put>
</tiles:insert>


Richard Conover
Developer
MountainView Software Products and Services
Gallagher Bassett Services, Inc.
Phone: 801-544-2446 Ext. 320
Fax: 866-741-0545
rich@mvsc.com


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


RE: problems with getting the errors to display (Cannot find bean error in any scope)

Posted by Rich <ri...@mvsc.com>.
Got it.  Someone on our team merge our resource files and when they did they
changed all the errors.required etc to error.required.

-----Original Message-----
From: Ted Husted [mailto:husted@apache.org]
Sent: Friday, May 23, 2003 10:14 AM
To: Struts Users Mailing List
Subject: Re: problems with getting the errors to display (Cannot find
bean error in any scope)


Check to see if all three taglibs (bean,logic,html) are all being
imported correctly.

You don't need message="false" with html:messages, since that is the
default. (Same as messagesPresent.)

-Ted.

Rich wrote:
> I have been having problems getting the struts validation to work.  at the
> bottom is some code snippets for reference.  I am using struts 1.1, tomcat
> 4.1, jdk 1.3.  The problem as I understand it is the struts validation
> appears to execute but I keep getting this message when I use this:
>       <logic:messagesPresent >
>         <bean:message key="error.header" />
>           <html:messages id="error" message="false" >
>             <bean:message key="error.prefix" />
>               <bean:write name="error" /><br />
>             <bean:message key="error.suffix" />
>           </html:messages>
>         <bean:message key="error.footer" />
>       </logic:messagesPresent>
>
> in my jsp.  It appears that after hitting submit on a blank form that the
> struts validation is ran.  It seems to know that there is a required field
> (or other error) and it comes back to my jsp.  The jsp seems to be able to
> detect that there is an error with the <logic:messagesPresent > tag, but
> either the <html:messages id="error" message="false" > tag or the
> <bean:write name="error" /><br /> is not working correctly.  Or something
> else is not working.  I then get this error in the browser:
>
> exception
> org.apache.jasper.JasperException: Cannot find bean error in any scope
> ....
> root cause
> javax.servlet.ServletException: Cannot find bean error in any scope
> ....
>
> When the form is not completed correctly I never reach the code in my
> action.  So, again it seems that the validation is firing but I can not
> figure out why I can't get the errors to display on the page correctly.  I
> tried changing from using the above code snippet to just using the
> <html:errors /> tag, but it comes back to my jsp and nothing is displayed.
> Again, it seems to know that there was an error as my action is not
reached
> when the form is not completed correctly.
>
> Thanks to whatever struts guru that can help me,
>
> Rich
>
>
> related portion of code (or at least I think)
>
> ----------------------- validation.xml--------------------------
> <form-validation>
>
>     <global>
>     </global>
>
>     <formset>
>       <form name="diaryForm">
>         <field property="reminderDate" depends="required,date">
>           <arg0 key="diary.reminderDate" />
>           <msg name="date" key="diary.reminderDate" />
>         </field>
>     </form>
>     </formset>
>
> </form-validation>
>
> ---------------------struts-config.xml---------------------------
> <struts-config>
>
>   <data-sources>
>   </data-sources>
>
>   <form-beans>
>     <form-bean name="diaryForm" type="com.mvsc.czee.forms.DiaryForm" />
>   </form-beans>
>
>   <action-mappings>
>
>   <action
>       path="/diaryEdit"
>       type="com.mvsc.czee.actions.DiarySaveAction"
>       name="diaryForm"
>       scope="request"
>       validate="true"
>       input="/pages/diaryAddEdit.jsp" >
>       <forward name="success" path="/diaryAdjusterAction.do" />
>       <forward name="failure" path="/pages/diarySearchList.jsp" />
>       <forward name="cancel" path="/diaryAdjusterAction.do" />
>     </action>
>
>   </action-mappings>
>
>   <message-resources parameter="resources.application" />
>
>   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>     <set-property property="definitions-config"
>       value="/WEB-INF/tiles-defs.xml" />
>     <set-property
>       property="moduleAware"
>       value="true" />
>     <set-property
>       property="definitions-parser-validate"
>       value="true" />
>   </plug-in>
>
>   <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
>     <set-property property="pathnames"
>       value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>   </plug-in>
>
> </struts-config>
>
> -----------------------------web.xml-------------------------------
> ....
> <taglib>
>     <taglib-uri>/tags/validator</taglib-uri>
>     <taglib-location>/WEB-INF/struts-validator.tld</taglib-location>
>   </taglib>
> ....
>
> --------------------------one of the forms------------------------
> ....
> public class DiaryForm extends ValidatorForm {
>   private String diaryId;
>   private String diaryCode;
>   private String ownerId;
>   private String ownerType;
>   private String remindUserId;
>   private String reminderDate;
>   private String reminderTime;
>   private String priorityCode;
>   private String completedDate;
>   private String zoomId;
>   private String zoomType;
>   private String createdDate;
>   private String createdUserId;
>   private String lastChangDate;
>   private String lastChangeUserId;
>   private String diaryDesc;
> ....(the rest is just getters and setters....
>
>
> ---------------------------and here is the related
jsp----------------------
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/czee-tags.tld" prefix="cz" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> <%@ taglib uri="/WEB-INF/czee-tags.tld" prefix="cz" %>
>
> <tiles:insert definition="diaryLayout">
>   <tiles:put name="title" type="String">ClaimZone Enterprise Edition -
Diary
> Adjuster List</tiles:put>
>   <tiles:put name="content" type="String">
>     <script language="JavaScript" src="dt_select.js">
>     </script>
>     <html:form action="/diaryEdit" focus="remindUserId" >
>     <script language="JavaScript" src="dt_select.js" >
>     </script>
>        <table border="0" cellspacing="5">
>         <tr>
>           <td colspan="4" class="diaryTodayHeader"><bean:message
> key="diary.createNewDiary"  /></td>
>         </tr>
>         <tr>
>           <br/>
>           <td class="mainTextLt" colspan="4">
>             <cz:label property="diary.diaryDesc"  /><br />
>             <html:textarea property="diaryDesc"
styleClass="formTextArea570"
> />
>           </td>
>         </tr>
>         <tr>
>           <html:hidden property="diaryId" />
>           <td class="mainTextLt">
>             <cz:label property="diary.remindUserId"  /><br />
>             <html:text styleClass="formTextField120"
property="remindUserId"
> maxlength="10"/>
>             <html:link href="#">
>               <html:img src="images/magnify.gif" width="16" height="16"
> border="0"/>
>             </html:link>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.diaryCode"  /><br />
>             <html:text styleClass="formTextField80" property="diaryCode"
> maxlength="15"/>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.priorityCode"  /><br />
>             <html:text styleClass="formTextField80"
property="priorityCode"
> maxlength="1"/>
>           </td>
>         </tr>
>         <tr>
>           <td class="mainTextLt">
>             <!-- 2 hidden fields, and the link to the claimID -->
>             <html:hidden property="ownerType"/>
>             <html:hidden property="ownerId" />
>             <cz:label property="diary.ownerId"  /><br />
>             <html:text styleClass="formTextField120" property="ownerId" />
>             <html:link href="#">
>               <html:img src="images/link.gif" width="16" height="16"
> border="0"/>
>             </html:link>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.zoomType"  /><br />
>             <html:text styleClass="formTextField120" property="zoomType"
> maxlength="3"/>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.zoomId"  /><br />
>             <html:text styleClass="formTextField120" property="zoomId"
> readonly="true" />
>           </td>
>         </tr>
>         <tr>
>           <td class="mainTextLt">
>             <cz:label property="diary.reminderDate"  /><br />
>               <cz:dateselect
>                 inputName="reminderDate"
>                 calendarImage="calendar.gif"
>                 styleInput="formTextField120"
>                 formUsed="diaryForm"
>                 fieldUsed="reminderDate"
>                 displayTime="true" />
>               <html:hidden styleClass="formTextField120"
> property="reminderTime"/>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.completedDate"  /><br />
>               <cz:dateselect
>                 inputName="completedDate"
>                 calendarImage="calendar.gif"
>                 styleInput="formTextField80"
>                 formUsed="diaryForm"
>                 fieldUsed="completedDate"
>                 displayTime="false" />
>           </td>
>           <td class="mainTextLt"><bean:message key="default.blankSpace"
> /></td>
>         </tr>
>         <tr>
>           <td colspan="4" class="diaryTodayHeader">
>             <html:submit value="Save" styleClass="formSubmit"  />
>               <bean:message key="default.blankSpace" /><bean:message
> key="default.blankSpace" />
>             <html:cancel value="Cancel" styleClass="formSubmit"
> onclick="bCancel=true;"/>
>           </td>
>         </tr>
>       </table>
>       <logic:messagesPresent >
>         <bean:message key="error.header" />
>           <html:messages id="error" message="false" >
>             <bean:message key="error.prefix" />
>               <bean:write name="error" /><br />
>             <bean:message key="error.suffix" />
>           </html:messages>
>         <bean:message key="error.footer" />
>       </logic:messagesPresent>
>       </html:form>
>
>   </tiles:put>
> </tiles:insert>
>
>
> Richard Conover
> Developer
> MountainView Software Products and Services
> Gallagher Bassett Services, Inc.
> Phone: 801-544-2446 Ext. 320
> Fax: 866-741-0545
> rich@mvsc.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


--
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>



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


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


Re: problems with getting the errors to display (Cannot find bean error in any scope)

Posted by Ted Husted <hu...@apache.org>.
Check to see if all three taglibs (bean,logic,html) are all being 
imported correctly.

You don't need message="false" with html:messages, since that is the 
default. (Same as messagesPresent.)

-Ted.

Rich wrote:
> I have been having problems getting the struts validation to work.  at the
> bottom is some code snippets for reference.  I am using struts 1.1, tomcat
> 4.1, jdk 1.3.  The problem as I understand it is the struts validation
> appears to execute but I keep getting this message when I use this:
>       <logic:messagesPresent >
>         <bean:message key="error.header" />
>           <html:messages id="error" message="false" >
>             <bean:message key="error.prefix" />
>               <bean:write name="error" /><br />
>             <bean:message key="error.suffix" />
>           </html:messages>
>         <bean:message key="error.footer" />
>       </logic:messagesPresent>
> 
> in my jsp.  It appears that after hitting submit on a blank form that the
> struts validation is ran.  It seems to know that there is a required field
> (or other error) and it comes back to my jsp.  The jsp seems to be able to
> detect that there is an error with the <logic:messagesPresent > tag, but
> either the <html:messages id="error" message="false" > tag or the
> <bean:write name="error" /><br /> is not working correctly.  Or something
> else is not working.  I then get this error in the browser:
> 
> exception
> org.apache.jasper.JasperException: Cannot find bean error in any scope
> ....
> root cause
> javax.servlet.ServletException: Cannot find bean error in any scope
> ....
> 
> When the form is not completed correctly I never reach the code in my
> action.  So, again it seems that the validation is firing but I can not
> figure out why I can't get the errors to display on the page correctly.  I
> tried changing from using the above code snippet to just using the
> <html:errors /> tag, but it comes back to my jsp and nothing is displayed.
> Again, it seems to know that there was an error as my action is not reached
> when the form is not completed correctly.
> 
> Thanks to whatever struts guru that can help me,
> 
> Rich
> 
> 
> related portion of code (or at least I think)
> 
> ----------------------- validation.xml--------------------------
> <form-validation>
> 
>     <global>
>     </global>
> 
>     <formset>
>       <form name="diaryForm">
>         <field property="reminderDate" depends="required,date">
>           <arg0 key="diary.reminderDate" />
>           <msg name="date" key="diary.reminderDate" />
>         </field>
>     </form>
>     </formset>
> 
> </form-validation>
> 
> ---------------------struts-config.xml---------------------------
> <struts-config>
> 
>   <data-sources>
>   </data-sources>
> 
>   <form-beans>
>     <form-bean name="diaryForm" type="com.mvsc.czee.forms.DiaryForm" />
>   </form-beans>
> 
>   <action-mappings>
> 
>   <action
>       path="/diaryEdit"
>       type="com.mvsc.czee.actions.DiarySaveAction"
>       name="diaryForm"
>       scope="request"
>       validate="true"
>       input="/pages/diaryAddEdit.jsp" >
>       <forward name="success" path="/diaryAdjusterAction.do" />
>       <forward name="failure" path="/pages/diarySearchList.jsp" />
>       <forward name="cancel" path="/diaryAdjusterAction.do" />
>     </action>
> 
>   </action-mappings>
> 
>   <message-resources parameter="resources.application" />
> 
>   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>     <set-property property="definitions-config"
>       value="/WEB-INF/tiles-defs.xml" />
>     <set-property
>       property="moduleAware"
>       value="true" />
>     <set-property
>       property="definitions-parser-validate"
>       value="true" />
>   </plug-in>
> 
>   <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
>     <set-property property="pathnames"
>       value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>   </plug-in>
> 
> </struts-config>
> 
> -----------------------------web.xml-------------------------------
> ....
> <taglib>
>     <taglib-uri>/tags/validator</taglib-uri>
>     <taglib-location>/WEB-INF/struts-validator.tld</taglib-location>
>   </taglib>
> ....
> 
> --------------------------one of the forms------------------------
> ....
> public class DiaryForm extends ValidatorForm {
>   private String diaryId;
>   private String diaryCode;
>   private String ownerId;
>   private String ownerType;
>   private String remindUserId;
>   private String reminderDate;
>   private String reminderTime;
>   private String priorityCode;
>   private String completedDate;
>   private String zoomId;
>   private String zoomType;
>   private String createdDate;
>   private String createdUserId;
>   private String lastChangDate;
>   private String lastChangeUserId;
>   private String diaryDesc;
> ....(the rest is just getters and setters....
> 
> 
> ---------------------------and here is the related jsp----------------------
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/czee-tags.tld" prefix="cz" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> <%@ taglib uri="/WEB-INF/czee-tags.tld" prefix="cz" %>
> 
> <tiles:insert definition="diaryLayout">
>   <tiles:put name="title" type="String">ClaimZone Enterprise Edition - Diary
> Adjuster List</tiles:put>
>   <tiles:put name="content" type="String">
>     <script language="JavaScript" src="dt_select.js">
>     </script>
>     <html:form action="/diaryEdit" focus="remindUserId" >
>     <script language="JavaScript" src="dt_select.js" >
>     </script>
>        <table border="0" cellspacing="5">
>         <tr>
>           <td colspan="4" class="diaryTodayHeader"><bean:message
> key="diary.createNewDiary"  /></td>
>         </tr>
>         <tr>
>           <br/>
>           <td class="mainTextLt" colspan="4">
>             <cz:label property="diary.diaryDesc"  /><br />
>             <html:textarea property="diaryDesc" styleClass="formTextArea570"
> />
>           </td>
>         </tr>
>         <tr>
>           <html:hidden property="diaryId" />
>           <td class="mainTextLt">
>             <cz:label property="diary.remindUserId"  /><br />
>             <html:text styleClass="formTextField120" property="remindUserId"
> maxlength="10"/>
>             <html:link href="#">
>               <html:img src="images/magnify.gif" width="16" height="16"
> border="0"/>
>             </html:link>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.diaryCode"  /><br />
>             <html:text styleClass="formTextField80" property="diaryCode"
> maxlength="15"/>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.priorityCode"  /><br />
>             <html:text styleClass="formTextField80" property="priorityCode"
> maxlength="1"/>
>           </td>
>         </tr>
>         <tr>
>           <td class="mainTextLt">
>             <!-- 2 hidden fields, and the link to the claimID -->
>             <html:hidden property="ownerType"/>
>             <html:hidden property="ownerId" />
>             <cz:label property="diary.ownerId"  /><br />
>             <html:text styleClass="formTextField120" property="ownerId" />
>             <html:link href="#">
>               <html:img src="images/link.gif" width="16" height="16"
> border="0"/>
>             </html:link>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.zoomType"  /><br />
>             <html:text styleClass="formTextField120" property="zoomType"
> maxlength="3"/>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.zoomId"  /><br />
>             <html:text styleClass="formTextField120" property="zoomId"
> readonly="true" />
>           </td>
>         </tr>
>         <tr>
>           <td class="mainTextLt">
>             <cz:label property="diary.reminderDate"  /><br />
>               <cz:dateselect
>                 inputName="reminderDate"
>                 calendarImage="calendar.gif"
>                 styleInput="formTextField120"
>                 formUsed="diaryForm"
>                 fieldUsed="reminderDate"
>                 displayTime="true" />
>               <html:hidden styleClass="formTextField120"
> property="reminderTime"/>
>           </td>
>           <td class="mainTextLt">
>             <cz:label property="diary.completedDate"  /><br />
>               <cz:dateselect
>                 inputName="completedDate"
>                 calendarImage="calendar.gif"
>                 styleInput="formTextField80"
>                 formUsed="diaryForm"
>                 fieldUsed="completedDate"
>                 displayTime="false" />
>           </td>
>           <td class="mainTextLt"><bean:message key="default.blankSpace"
> /></td>
>         </tr>
>         <tr>
>           <td colspan="4" class="diaryTodayHeader">
>             <html:submit value="Save" styleClass="formSubmit"  />
>               <bean:message key="default.blankSpace" /><bean:message
> key="default.blankSpace" />
>             <html:cancel value="Cancel" styleClass="formSubmit"
> onclick="bCancel=true;"/>
>           </td>
>         </tr>
>       </table>
>       <logic:messagesPresent >
>         <bean:message key="error.header" />
>           <html:messages id="error" message="false" >
>             <bean:message key="error.prefix" />
>               <bean:write name="error" /><br />
>             <bean:message key="error.suffix" />
>           </html:messages>
>         <bean:message key="error.footer" />
>       </logic:messagesPresent>
>       </html:form>
> 
>   </tiles:put>
> </tiles:insert>
> 
> 
> Richard Conover
> Developer
> MountainView Software Products and Services
> Gallagher Bassett Services, Inc.
> Phone: 801-544-2446 Ext. 320
> Fax: 866-741-0545
> rich@mvsc.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


-- 
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>



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