You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jonathan zhang <lo...@gmail.com> on 2005/02/18 05:56:41 UTC

struts and jsp

is it a good idea to have a  direct link to jsp instead of going
through an action in a jsp page?
thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts and jsp

Posted by Mr Maillist <dw...@gmail.com>.
You can also use security constraints and create module-like folders
for jsp pages.  After listening to the discussion about placing jsp
pages under WEB-INF I found an article that discussed security
constraints....  (Not to get the discussion started again)...


On Fri, 18 Feb 2005 14:56:35 +0800, Andrew Hill
<an...@gridnode.com> wrote:
> Its considered best practice to go through an action first - even in
> those cases where the action doesnt need to do anything.
> 
> In such cases its recommended (though not unanimously - we had a bit of
> a debate about this a couple of weeks ago on the list!) that you also
> put your JSPs under WEB-INF so that they cannot be directly accessed
> from the client.
> 
> jonathan zhang wrote:
> > is it a good idea to have a  direct link to jsp instead of going
> > through an action in a jsp page?
> > thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts and jsp

Posted by Andrew Hill <an...@gridnode.com>.
Its considered best practice to go through an action first - even in 
those cases where the action doesnt need to do anything.

In such cases its recommended (though not unanimously - we had a bit of 
a debate about this a couple of weeks ago on the list!) that you also 
put your JSPs under WEB-INF so that they cannot be directly accessed 
from the client.

jonathan zhang wrote:
> is it a good idea to have a  direct link to jsp instead of going
> through an action in a jsp page?
> thanks
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: struts and jsp

Posted by Ruben Cepeda <ru...@hotmail.com>.
Hello Jonathan,

Without knowing what the excect reason for you linking to a page there is 
not real answer.   So  I will give you the default answer NO IT IS NOT A 
GOOD IDEA.  The reasoning I think is simply when you are doing a web 
application you don't want to leave anything in the up in the air.  This 
could happend with you link to a page b/c you are leaving your self open to 
the possibilidy that someone will bookmark that page and the one day in the 
future when you move that page the user will no longer be able to find that 
page.

*************************************
Ruben Cepeda
ruben_cepeda@hotmail.com
*************************************



----Original Message Follows----
From: jonathan zhang <lo...@gmail.com>
Reply-To: jonathan zhang <lo...@gmail.com>
To: user@struts.apache.org
Subject: struts and jsp
Date: Thu, 17 Feb 2005 20:56:41 -0800

is it a good idea to have a  direct link to jsp instead of going
through an action in a jsp page?
thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org