You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Enrique da Costa Cambio <en...@gmail.com> on 2007/03/16 16:21:10 UTC
external jsp files
hi, how can I make struts2 find jsp files outside the webcontext. if the
solution is to specify the full path, how can I do to externalize the base
path as a property/variable/constant.
Thanx in advance.
Re: external jsp files
Posted by Enrique da Costa Cambio <en...@gmail.com>.
I'll explain myself:
This is the thing:
I have a (eclipse) project with the app middle layer. I have another project
that wires this layer using spring. Then I have another project implementing
the view using struts2. Finally, I have a fourth project that integrates all
the spring project and the struts project, this is the project that actually
contains the web context.
Why am I doing such a thing??? Well, because I have to try different
technologies as interchangebily as possible, I may change struts2 for
tapestry or jsf, and spring for jboss or whatever. To acomplish this I must
not include references from spring project to the struts2 project or
viceversa. That is why the fourth project is needed, but that makes the jsp
files from the struts2 are actually outside the web context.
I don't want to make a custom deploy script to copy de jsps. Maybe what is
wrong is my perspective of the problem. Any help will be appreciated.
I've tryed to explain myself: (with uncertain outcome).
Thank you.
Enrique
On 3/16/07, Laurie Harper <la...@holoweb.net> wrote:
>
> Enrique da Costa Cambio wrote:
> > hi, how can I make struts2 find jsp files outside the webcontext. if the
> > solution is to specify the full path, how can I do to externalize the
> base
> > path as a property/variable/constant.
> > Thanx in advance.
>
> I don't think you *can* do that, at least not in any way that would be
> portable across different containers. It's not something that the JSP
> spec allows for. Why do you need to do that?
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: external jsp files
Posted by Laurie Harper <la...@holoweb.net>.
Enrique da Costa Cambio wrote:
> hi, how can I make struts2 find jsp files outside the webcontext. if the
> solution is to specify the full path, how can I do to externalize the base
> path as a property/variable/constant.
> Thanx in advance.
I don't think you *can* do that, at least not in any way that would be
portable across different containers. It's not something that the JSP
spec allows for. Why do you need to do that?
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org