Antwort: RE: Antwort: Validation a form

2001-08-06 Thread Tobias . Himstedt

Have a look in the WEB-INF/struts-config.xml. Look for your action element and in particluar for the validate attribute.

Regr

    
               type="org.apache.struts.webapp.example.EditRegistrationAction"
               name="registrationForm"
              scope="request"
           validate="false">
 ^^
      
    


Hope this helps -- Tobias








DUPRAT Alexandre <[EMAIL PROTECTED]>
06.08.2001 16:26
Bitte antworten an struts-user

        
        An:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
        Kopie:        
        Thema:        RE: Antwort: Validation a form

i have this int parameter in web.xml for ActionServlet :

   validate
   true
 
 
it seem to work cause i can debug the method in visula age for java.
I enter the method but i've an error 500 as response from my web server.

-Message d'origine-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Date: lundi 6 août 2001 16:14
À: [EMAIL PROTECTED]
Objet: Antwort: Validation a form



Did you enable validate="true" in struts-config.xml for that action? 

Regards -- Tobias 




                 DUPRAT Alexandre <[EMAIL PROTECTED]> 


06.08.2001 15:28 
Bitte antworten an struts-user 


        
        An:        "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]> 
        Kopie:         
        Thema:        Validation a form


hi,

How can i validate a form?
I tried : 
public ActionErrors validate(ActionMapping mapping, HttpServletRequest req)
{
                ActionErrors errors= new ActionErrors();
                if(! getSqlQuery().startsWith("select")){
                                 ActionError error = new
ActionError("error.requete");
                                 errors.add("sqlQuery", error);
                }
                return errors;
}

it works when there is no error but not when i've one
Is there somebody with an idea?

Alexandre Duprat
SOPRA. Direction France Sud. Bordeaux 
[EMAIL PROTECTED]



++
| Ce courrier ainsi que les fichiers joints sont confidentiels.  |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du systeme : [EMAIL PROTECTED]               |
|                          -                             |
| Ce message confirme que le courrier a passe le controle        |
| antivirus du relais de messagerie Internet avec succes.        |
++




++
| Ce courrier ainsi que les fichiers joints sont confidentiels. |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du systeme : [EMAIL PROTECTED] |
| - |
| Ce message confirme que le courrier a passe le controle |
| antivirus du relais de messagerie Internet avec succes. |
++






Antwort: Validation a form

2001-08-06 Thread Tobias . Himstedt

Did you enable validate="true" in struts-config.xml for that action?

Regards -- Tobias







DUPRAT Alexandre <[EMAIL PROTECTED]>
06.08.2001 15:28
Bitte antworten an struts-user

        
        An:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
        Kopie:        
        Thema:        Validation a form

hi,

How can i validate a form?
I tried : 
public ActionErrors validate(ActionMapping mapping, HttpServletRequest req)
{
                 ActionErrors errors= new ActionErrors();
                 if(! getSqlQuery().startsWith("select")){
                                  ActionError error = new ActionError("error.requete");
                                  errors.add("sqlQuery", error);
                 }
                 return errors;
}

it works when there is no error but not when i've one
Is there somebody with an idea?

Alexandre Duprat
SOPRA. Direction France Sud. Bordeaux 
[EMAIL PROTECTED]



++
| Ce courrier ainsi que les fichiers joints sont confidentiels.  |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du systeme : [EMAIL PROTECTED]               |
|                          -                             |
| Ce message confirme que le courrier a passe le controle        |
| antivirus du relais de messagerie Internet avec succes.        |
++




logic:iterate / html:option / scriptlet problem

2001-08-06 Thread Tobias . Himstedt

Hi,

the following fragment does not work:

                
                        
                                                        
                        
                        
                                
                                        
                                                "/>
                                        
                                                        
                                                
                


whereas dayCategorys is a ArrayList containing Integers. The resulting HTML output look like this

                
                        
                                                        
                        
                        
                                
                                        
                                                
                                        
                                                                        
                        
                        
                

which is correct apart from the fact that there is still a  rather than a simple option It seems that the html:option is not properly evaluated.

Any hints?

Thanks -- Tobias