That doesn't seem like it buys you anything... Then what's the point of
hiding JSP pages behind WEB-INF, if all of them are available through a
simple forwarding action?

This is the (small) paradox I find with the whole hiding behind WEB-INF
thing. It seems like it should be a good idea, but what do you do about
JSP pages you really want to be shown without any pre-processing (by
that I mean, processing by an action before rendering the JSP).

Bryan

On Thu, 2002-02-28 at 09:55, Jeff Krueger wrote:

    You could setup a action mapping that just does a forward.
    
    <action path="/signup" forward="/WEB-INF/docroot/signup.jsp" />
    
    Jeff Krueger
    
    
    -----Original Message-----
    From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]]
    Sent: Wednesday, February 27, 2002 1:54 PM
    To: Struts Users Mailing List; Ted Husted
    Subject: Re: changing from *.do to /do/* screws up everything?
    
    
    
    On Wed, 2002-02-27 at 11:56, Ted Husted wrote:
    > It originally came up in response to inquiries about how to enforce MVC.
    > If all the JSPs are under WEB-INF, then the only possible way to get to
    > them is through an action. Users can't just bookmark a JSP and pop into
    > the middle of something.
    >
    > Though, if you self-impose the recommended model of linking only to
    > actions, the value of actually storing the pages under WEB-INF
    > diminishes, since the address of the page is never directly exposed to
    > the user.
    >
    
    So Ted, one small gap in my Struts knowledge (in terms of
    best-practices) is, what's the recommended way to build a pass-through
    Action which really does just display a JSP page?
    
    I have a "signup.jsp" form, which for the sake of this discussion, is
    going to be underneath WEB-INF. I really don't need any processing in an
    action to execute prior to displaying the form -- I just want to link to
    the (empty) form. Since I can't link directly to it, I need some kind of
    really shallow Action to get at it. How do you usually build this?
    
    Bryan
    
    --
    To unsubscribe, e-mail:
    <mailto:[EMAIL PROTECTED]>
    For additional commands, e-mail:
    <mailto:[EMAIL PROTECTED]>
    
    
    
    --
    To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
    For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
    

Reply via email to