does the form work OK if you remove dateOfBirth but leave the other form
fields?
Is it possible you have 1 mapping that puts the form in the session & another
one that puts another form in the request but with the same name?
That would explain it if you can find the form bean but struts doesn't? Or even
give you 2 beans with same name but of different types.
Perhaps try to call setDateOfBirth() in your debug code (I bet that works
though).
Perhaps remove focus="dateOfBirth" just in case....
err ran out of ideas for now! More tomorrow morning, but you must have the
ansewr by then.!
                
--- Tim Sawyer <[EMAIL PROTECTED]> wrote:
> Hmmm.
> 
> This works:
> 
> 
> 
> <%@ page language="java"
> import="com.pancredit.tkbespoke.tjs.strutstest.form.* %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <html:html>
> <head>
> <title>Untitled Document</title>
> <!--
>
<%=((AddExtraPersonDetailsForm)session.getAttribute("addExtraPersonInfoForm")).getDateOfBirth()
> %>
> -->
> </head>
> 
> <body bgcolor="#FFFFFF" text="#000000">
> <p>Please enter the following customer details: </p>
> <p>&nbsp; </p>
> </body>
> </html:html>
> 
> 
> 
> 
> put it back to what it was and it doesn't work anymore, same error:
> 
> 
> 
> <%@ page language="java"
> import="com.pancredit.tkbespoke.tjs.strutstest.form.* %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <html:html>
> <head>
> <title>Untitled Document</title>
> <!--
>
<%=((AddExtraPersonDetailsForm)session.getAttribute("addExtraPersonInfoForm")).getDateOfBirth()
> %>
> -->
> </head>
> 
> <body bgcolor="#FFFFFF" text="#000000">
> <p>Please enter the following customer details: </p>
> <html:form action="/saveExtraPersonDetails.do" focus="dateOfBirth">
>   <table width="39%" border="0">
>     <tr>
>       <td width="24%">Date of Birth:</td>
>       <td width="76%">
>         <html:text property="dateOfBirth" size="30"/>
>       </td>
>       <td width="24%">Marital status:</td>
>       <td width="76%">
>         <html:text property="maritalStatusID" size="30"/>
>       </td>
>     </tr>
>     <tr>
>       <td width="24%">&nbsp;</td>
>       <td width="76%">
>         <html:submit>
>           <input type="submit" value="Submit">
>         </html:submit>
>       </td>
>     </tr>
>   </table>
> </html:form>
> <p>&nbsp; </p>
> </body>
> </html:html>
> 
> Eh?
> 
> Tim.
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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

Reply via email to