Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/08/2008, 11:58
Cimballi
 
Fecha de Ingreso: agosto-2008
Ubicación: Cajamarca
Mensajes: 49
Antigüedad: 16 años, 5 meses
Puntos: 0
Respuesta: Para los que ponen sus jsp dentro de /WEB-INF/

Bunburyscom,

I will answer you in english because my spanish is not enough good, sorry.

I think you are making a mistake when you talk about capas and files location. These are two things totally different !!!

Capas is about where is logically your code (in jsp or in servlet), location is about where is physically your code (in /jsp or /WEB-INF/jsp).

Of course you have to respect the capas separation, it means your JSPs pages must not contain JAVA code, only HTML and jsp tags.

But of course it's better to put your JPSs under WEB-INF, and this for two reasons :

1. Security, it's a garanty that users can't call a JSP that they should not access, and you have nothing to do, only put the JSPs under WEB-INF.

2. It's important for the MVC pattern, if your JSPs or under WEB-INF, it forces your users to call the Controller first, and then the Controller call the view to display the result. So the Controller can control before displaying, even if for some special actions there is nothing to control, it's better to do this way.

On the web :
http://www.jroller.com/tomdz/?page=1
http://www.manning-sandbox.com/message.jspa?messageID=52773

I hope this can help you to better develop your web applications.

Cimballi