struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Tedone" <mted...@jemos.org>
Subject Re: Struts doesn't execute my ActionForm.
Date Sun, 08 Jun 2003 17:07:21 GMT

----- Original Message ----- 
From: "Thomas Miskiewicz" <thomas.miskiewicz@web.de>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Sunday, June 08, 2003 6:02 PM
Subject: Re: Struts doesn't execute my ActionForm.


> > I am new to Struts and learning myself but from what I have read the
> > input attribute is for validation if the form/Action fails it will
> > send it back to the view.
> My book states:
> "input - Used to define where the user should be redirected, if a
validation
> error occurs. Usually, the user is redirected back to the JSP page where
> the data was submitted."

    Correct.
>
> And this is exactly what I'm doing. I want to send the user back to the
> PostTest.jsp form to let him correct his entry and I want to tell him
which
> part is wrong showing error messages.
>
> And know that you should never has .jsp
> > pages located in your WEB-INF directory. Just an idea.
>
> I'm new to Struts too. But this is what I got from the Professional
> Struts Applications from WROX. They've placed the the jsp directory
> containing all jsps unter WEB-INF. BTW I wouldn't know what's the
> trouble with that would be?

    You can have jsp under WEB-INF and it's not a bad practice. Usually you
may want it for security reasons, as everything put under WEB-INF cannot be
accessed directly from clients.

>
> Thanks
> Tom

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


Mime
View raw message