> -----Original Message-----
> From: Patrick Lightbody [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, March 09, 2003 1:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] Prevent access to .jsp
> 
> 
> 
> > Philipp Meier wrote:
> > >>>XWork may change this significantly.
> > >>
> > >>Nope, this will still work the same way in XWork.
> > >
> > > Can't we add an "result-base-path" or sth. like that so that 
> > > /success.jsp can be mapped to /WEB-INF/views/success.jsp? 
> This would 
> > > make the configuration file more readable. If the 
> parameter defaults 
> > > to "" or "/" the out-of-the-box behaviour would remane the same.
> >
> > As long as it's done on a per-package basis that seems ok to me.
> 
> Well, remember that in XWork there is no concept of a 
> "servlet redirect" or "location" or anything like that. It 
> just handles generic results. In WebWork is where the servlet 
> redirect and the servlet dispatcher result classes are. So 
> making this feature core in the XWork configuration wouldn't 
> be possible, at least directly. There are a few options I can 
> explore that would make this possible using generic concepts, 
> but let me know how important it is first. I'd rather not 
> spend the time looking in to it if it's not a high priority 
> feature right now.
> 
> In fact, open a Jira case and then I'll get to it eventually. 
> Open it for XWork, since it'll be solved in XWork not WebWork 
> most likely.
> 
> -Pat
> 
> 
> 

Couldn't this be handled easily by parameterizing the result types in
your package?

          <result-types>
                <result-type name="dispatcher"
class="com.opensymphony.webwork.dispatcher.ServletDispatcherResult">
                    <param name="basePath">/WEB-INF/jsp</param>
              </result-type>
        </result-types>


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to