structure off the root of your
classpath.
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 9:46 AM
To: Struts Users Mailing List
Subject: Re: Somewhat OT: Forward to JSP in JAR file
Well, I *sort of* found a solution... I couldn
PROTECTED]
Sent: Wednesday, April 25, 2007 9:46 AM
To: Struts Users Mailing List
Subject: Re: Somewhat OT: Forward to JSP in JAR file
Well, I *sort of* found a solution... I couldn't literally do what I
wanted, that seems all but impossible in a cross-container way (a
compiled JSP servlet
Well, I *sort of* found a solution... I couldn't literally do what I
wanted, that seems all but impossible in a cross-container way (a
compiled JSP servlet won't work because its specific to the container
that compiled it, and writing to the file system won't work if run from
an EAR without kno
You define a plugin with a constant named "extensionId" that has some unique
name, inside that plugin you define your actions like
${extensionId}/MyJsp.jsp
where MyJsp.jsp is a jsp that will be in a subdir under "s2resources". I
have a context listener that searches the class path for the
another cheap workaround i'm currently using, is to unpack the jsps
from jars in the ant script which builds the war file:
in this case the jar file was specially prepared previously, but you
can also tell unjar task to unjar the jsps only.
regards
Leon
On 4/25/07, Zoran Avtarovski <[EMAIL P
Just an idea, but couldn't you use pre-compiled jsp pages. This way they're
available as servlets.
I remember looking at the Jrun admin console which uses precompiled jsps.
Z.
> Do you have anything on the forwarding to a JSP in a JAR file that you
> can tell us about? I'm running into the same
I was doing this sort of dodgy thing at one stage, dynamically writing
jsp's to the filesystem
To get the real path of the webroot you can use the following code:
String webroot = pageContext.getServletContext().getRealPath("/");
if (!webroot.endsWith("/")) {
webroot += '/';
}
From memory thi
Do you have anything on the forwarding to a JSP in a JAR file that you
can tell us about? I'm running into the same situation where I work
and can't figure out a solution. I had thought that maybe if I
forwarded to something like /struts/jsps/test.jsp and add the package
that jsps are contained i
The thing is that with current plugins you can add stuff to the framework,
but I want a way to plugin stuff into my application, not the framework
alone, ala eclipse. So I could plugin actions, with their jsps or whathever
they use, and have extension points in my application that get extended by
Sounds cool Musachy! I could see that being a useful thing for sure.
Thanks Laurie, that's what I was thinking was the case... I'd need to do
it in a compliant way, so I'll have to go with my backup plan instead.
Thanks guys.
Frank
Musachy Barroso wrote:
I'm working on an Struts plugin to
resin does, tomcat doesnt.
:-)
Leon
On 4/10/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
I'm working on an Struts plugin to try to work around (more like hack
around) that and other fun stuff :)
musachy
On 4/10/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> Frank W. Zammetti wrote:
> > Qu
I'm working on an Struts plugin to try to work around (more like hack
around) that and other fun stuff :)
musachy
On 4/10/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
Frank W. Zammetti wrote:
> Quick question... can anyone tell me if it's possible to forward to a
> JSP that is stored in a JAR
Frank W. Zammetti wrote:
Quick question... can anyone tell me if it's possible to forward to a
JSP that is stored in a JAR file (i.e., in a JAR located in
WEB-INF/lib), and if so, how? I couldn't find a quick answer on the
first few pages of Googling, figured someone here would probably know
13 matches
Mail list logo