You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Steve <sb...@velos.com> on 2002/12/10 23:24:00 UTC
Re: Trying to use the tutorial - solved
I got it working. I will answer my own post in case anyone else
runs into this:
I was using ant v1.4.1. This version does not have the required
class. I upgraded my ant to the latest version which is 1.5.1.
I do not know if it was necessary, but I also copied this new
versions ant.jar into the jetspeed-1.4-b2/lib folder. (copying
1.4.1's ant.jar into this folder did NOT fix it).
Perhaps the tutorial requirements should be corrected for
the ant version number?
Steve B.
----- Original Message -----
From: "Steve" <sb...@sebscape.com>
To: "jetspeed" <je...@jakarta.apache.org>
Sent: Tuesday, December 10, 2002 3:34 PM
Subject: Trying to use the tutorial
I would like to try the tutorial on the bluesunrise site. These
instructions are so complete,
that I feel like an idiot for having to ask this question. I have also
been able to download
jetspeed from cvs and deploy it on tomcat many times in the past.
- I have created a folder called C:\developer\jetspeed-tutorial\
- I have downloaded and extracted the jportal.jar into
C:\developer\jetspeed-tutorial\jportal
- I have downloaded the jetspeed-1.4-b2-src.zip into the
.../jetspeed-tutorial/ folder
so I now have
C:\developer\jetspeed-tutorial\jetspeed-1.4-b2\[bin,WEB-INF etc...]
- I have previously installed ant 1.4.1 (in C:\Developer\ant\)
- I have installed the latest Tomcat 4.1.12 (in C:\Tomcat4.1)
<snip>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: StaticServlet's static method.
Posted by Shan Gopalakrishnan <sg...@cisco.com>.
Thank you Vijay. Will give it a try.
At 07:49 PM 2/7/2003 -0800, Vijay K wrote:
>The easiest way that i can think of is to write a java class that has a non
>static method that invokes the static servlet's method in turn. Now register
>this new class in turbineresources.properties in application scope as a pull
>service as documented in turbine
>(tools.application.staticservletwrapper=wrapper).
>
>Now you should be able to refer to the wrapper's method in any velocity
>page as
>$wrapper.methodcall
>
>vijay
>
>
>--- Shan Gopalakrishnan <sg...@cisco.com> wrote:
> > Hello all,
> >
> > This is a velocity template question.
> >
> > I want to expose a StaticServlet object that I have in the velocity
> context
> > and refer in the velocity templates.
> > Also call its static method by passing the request object to it.
> >
> > The equivalent in JSP is
> >
> > <%= StaticServlet.getStaticPath(request, "/images/globe.gif")
> >
> > I'm still trying to understand velocity better. Any help greatly
> > appreciated .thanks
> >
> > - Shan
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
>
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: StaticServlet's static method.
Posted by Vijay K <vj...@yahoo.com>.
The easiest way that i can think of is to write a java class that has a non
static method that invokes the static servlet's method in turn. Now register
this new class in turbineresources.properties in application scope as a pull
service as documented in turbine
(tools.application.staticservletwrapper=wrapper).
Now you should be able to refer to the wrapper's method in any velocity page as
$wrapper.methodcall
vijay
--- Shan Gopalakrishnan <sg...@cisco.com> wrote:
> Hello all,
>
> This is a velocity template question.
>
> I want to expose a StaticServlet object that I have in the velocity context
> and refer in the velocity templates.
> Also call its static method by passing the request object to it.
>
> The equivalent in JSP is
>
> <%= StaticServlet.getStaticPath(request, "/images/globe.gif")
>
> I'm still trying to understand velocity better. Any help greatly
> appreciated .thanks
>
> - Shan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
StaticServlet's static method.
Posted by Shan Gopalakrishnan <sg...@cisco.com>.
Hello all,
This is a velocity template question.
I want to expose a StaticServlet object that I have in the velocity context
and refer in the velocity templates.
Also call its static method by passing the request object to it.
The equivalent in JSP is
<%= StaticServlet.getStaticPath(request, "/images/globe.gif")
I'm still trying to understand velocity better. Any help greatly
appreciated .thanks
- Shan
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Trying to use the tutorial - solved
Posted by Gary Lawrence Murphy <ga...@canada.com>.
>>>>> "K" == Kevin Cruz <je...@wiserlabz.com> writes:
K> Changed: dir="./bin" arg line="-uf ../dist/jportal.war *"
K> After this modification, everything worked well.
Same here. That's a patch worth committing.
--
Gary Lawrence Murphy - garym@teledyn.com - TeleDynamics Communications
- blog: http://www.teledyn.com/mt/ - biz: http://teledyn.com/ -
"Computers are useless. They can only give you answers." (Picasso)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Trying to use the tutorial - solved
Posted by Kevin Cruz <je...@wiserlabz.com>.
To add to Steve's findings, I also had to make a modification to the build.xml file to get the jportal.war in the ./dist to update correctly.
The Ant jar task does not seem to be working correctly in Ant 1.5.1 (Win2K) as noted in the build.xml file. I had to modify the exec workaround in the war target.
Changed:
dir="./bin"
arg line="-uf ../dist/jportal.war *"
After this modification, everything worked well.
Kevin Cruz
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>