It's a weird errors from the web server.
An error 500 with no stack trace and no log just (sorry for the french
output but it's a pretty standard one, you should be able to recognize it) :

*****ERROR*****

Impossible d'afficher la page
Il y a un probl�me avec la page que vous essayez d'atteindre ; elle ne peut
pas �tre affich�e.

----------------------------------------------------------------------------
----

Essayez de la mani�re suivante :

Ouvrez la page de d�marrage localhost:8080 et recherchez des liens vers les
informations voulues.
Cliquez sur le bouton  Actualiser ou r�essayez ult�rieurement.

Cliquez sur  Rechercher pour trouver des informations sur Internet.
Vous pouvez �galement voir une liste de sites apparent�s.


HTTP 500 - Erreur interne de serveur 
Internet Explorer 

*** END ERROR *********


It occurs when myFrom.validate (you can see it below) returns a non empty
ActionErrors (when sqlquery does not start with "select")
I hava the good maessage in Application.properties (i manage to see it in my
first jsp page using html:message tag.

I don't know what a don't manage to correctly do?




-----Message d'origine-----
De: Pham Thanh Quan [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ]
Date: mercredi 8 ao�t 2001 10:26
�: [EMAIL PROTECTED]
Objet: Re: Validation a form


But what is the specific error ?

----- Original Message -----
From: DUPRAT Alexandre <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 07, 2001 11:31 PM
Subject: RE: Validation a form


I don't understand why it does not work.
It crashes only when the validate method is called and must return an error.
Is sqlQuery begins with "select" it works fine and i got to the result page.
Do i need to write a jsp page in case of error? (i already have one where i
forward to when an exception is called in my Action class)


-----Message d'origine-----
De: Craig R. McClanahan [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Date: lundi 6 ao�t 2001 18:35
�: '[EMAIL PROTECTED]'
Objet: Re: Validation a form




On Mon, 6 Aug 2001, DUPRAT Alexandre wrote:

> 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?
>

The above code looks OK -- what about it doesn't work?

Note that you *must* specify an input attribute on your <Action>, so that
Struts knows where to send the user back to.

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

Craig McClanahan 



+----------------------------------------------------------------+
| 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.        |
+----------------------------------------------------------------+

Reply via email to