1. You need to put the <html:errors property="whatever"/> where you want
them to appear. If you have several input fields, put a <html:errors
property="whatever"/> next to each input field.

The header and footer are for formatting but they are optional.

Rob Breeds





                                                                                       
                                                           
                    "Scriven,                                                          
                                                           
                    Marcos"              To:     "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>                              
                    <Marcos.Scrive       cc:                                           
                                                           
                    [EMAIL PROTECTED]>            Subject:     problem with <html:errors> tag   
                                                           
                                                                                       
                                                           
                    23/10/2001                                                         
                                                           
                    11:48                                                              
                                                           
                    Please respond                                                     
                                                           
                    to struts-user                                                     
                                                           
                                                                                       
                                                           
                                                                                       
                                                           




When I get errors with my form validation, I cannot seem to place them
where
I want them.

I have tried <html:errors /> and <html:errors property="firstName"/>

1) In both cases (and even when there is no errors tag at all), I get all
of
the errors at the top of my page... any ideas why?

2) Once I get errors, I then have a page with no javascript on it - in
which
case the user can then just type garbage, which I want to check on the
client side. How do I get around this one?

I've seen posts that use the errors.header/footer to include some clever
javascript - is this the only way?

Thanks

Marcos



Reply via email to