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 Riedl Juergen <Ju...@icn.siemens.de> on 2001/09/24 16:51:52 UTC

Call Tree How To: index.jsp -> jetspeed.vm & Default.psml: how do es this work

Hi all,

I really like to understand how jetspeed traverses all the VM files starting with the index.jsp. What I think to know:

o	in the web.xml file the link of index.jsp "portlet/" is redirected to "jetspeed"
o	since the engine runs in VM mode, this shall redirect to jetspeed.vm instead of jetspeed.jsp

But this is only the half story: 
o	someone calls default.psml

Where is that specified ? I greped trough the conf directory, but this gives only little helt. Perhaps I overlooked something.

In jetspeed.vm there is a lot of makro processing. Where can I find what is called e.g. for "$!{skin.PortletStyleClass}". First I thought that it is a class where in the path is skin or something else. But I didn't find anything. 

Maybe this is already documented, then please give me the pointer to it. 

Best Regards

Juergen Riedl
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Call Tree How To: index.jsp -> jetspeed.vm & Default.psml: how does this work

Posted by Paul Spencer <pa...@mikon.com>.
Riedl,
Note the following is based on the default configuration and the user
requested the page http://www.myJetspeed.com/jetspeed

1) The request is redirected to index.jsp.  Based on the
<welcome-file-list> in web.xml

2) The request, index.jsp, is forwarded to /portal by index.jsp.  Note
this has nothing to do with the layout type.

3) The request, /portal, is passed to the jetspeed servlet.  Based on
the <servlet-mapping> in web.xml

4) The jetspeed servlet determines the media type and language from
information provided by the browser in the http request.

5) Using the media type, language, and layout type (as defined in
JetspeedResource.properties) the default.vm is located in the
WEB-INF/templates/vm/layouts/html directory tree.  See jetspeed.log,
located in WEB-INF/log, to determine which default.vm is used

5) default.vm define the top, left, and bottom navigation bars in
addition to $screen_placeholder.    The contents for the navigation bars
can be found in the WEB-INF/templates/vm/navigations/html tree. 
$screen_placeholder is populated using from the default.psml file
located in WEB-INF/psml/anon/html directory tree.  See jetspeed.log to
determine which file are used.

For logged in users, default.psml in step #5 is found in the
WEB-INF/psml/user directory tree.

The Velocity variables skin.*Class are translates in to a CSS class
using appropriate skin registry entry, see skin.xreg and
local-skin.xreg.  The CSS class is defined in css/default.css.

I am working on the Jetspeed documentation.  Does this answer you
questions?

Paul Spencer

Riedl Juergen wrote:
> 
> Hi all,
> 
> I really like to understand how jetspeed traverses all the VM files starting with the index.jsp. What I think to know:
> 
> o       in the web.xml file the link of index.jsp "portlet/" is redirected to "jetspeed"
> o       since the engine runs in VM mode, this shall redirect to jetspeed.vm instead of jetspeed.jsp

> 
> But this is only the half story:
> o       someone calls default.psml
> 
> Where is that specified ? I greped trough the conf directory, but this gives only little helt. Perhaps I overlooked something.
> 
> In jetspeed.vm there is a lot of makro processing. Where can I find what is called e.g. for "$!{skin.PortletStyleClass}". First I thought that it is a class where in the path is skin or something else. But I didn't find anything.
> 
> Maybe this is already documented, then please give me the pointer to it.
> 
> Best Regards
> 
> Juergen Riedl
> >
> 
> ---------------------------------------------------------------------
> 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: Jetspeed goes Webservices !

Posted by "Scott A. Roehrig" <sa...@hotmail.com>.
As I would be willing to work on this. The portlet that I wrote uses a bean
to query a soap webservice and return the result. The result can then be
used within a portlet. Since I work for IBM, the portlet I wrote to use this
was developed under WPS; however, the bean is generic and with a defined
WSDL file can be used against any webservice. The one I used it against was
an XMethods Search Aggregator.

I think it would be very important to have such a generic portlet that would
be available under Jetspeed with the advent of webservices. The
possibilities are pretty mind bending.

I am sure the portlet could use some additional work. I would be willing to
undertake this for the Jetspeed team as well.

If you would be interested in seeing the portlet and bean code, please drop
me an email and I will forward it:)

Thanks.

Scott
IBM Corporation
----- Original Message -----
From: "Norman Schöneich" <sc...@ecooperate.de>
To: <je...@jakarta.apache.org>
Sent: Monday, September 24, 2001 1:11 PM
Subject: AW: Jetspeed goes Webservices !


> I would be interested in such a portlet.
> But I don't have write-access to jetspeed cvs. I would aggree in taking a
> look at this portlet.
> If some integration is necessary, i would do it.
>
> If none of the jetspeed contributors are willing to do that or have other
> task with higher priority to do (i think so, see do to list), i would be
> interested in.
>
> What does the jetspeed users think ? (especially the jetspeed
contributors)
> ?
>
>
> Maybe you can mail me the portlet.
>
> Thanks in advance
>
> norman schöneich
>
>
> -----Ursprüngliche Nachricht-----
> Von: Scott A. Roehrig [mailto:saroehr@hotmail.com]
> Gesendet: Montag, 24. September 2001 17:48
> An: jetspeed-user@jakarta.apache.org
> Betreff: Re: Jetspeed goes Webservices !
>
>
> I have written a portlet that uses a soapbean in this manner. If the
> jetspeed team would be interested in taking a look they are welcome to.
>
>
> Scott
> IBM Corporation
> ----- Original Message -----
> From: "Norman Schöneich" <sc...@ecooperate.de>
> To: <je...@jakarta.apache.org>
> Sent: Monday, September 24, 2001 11:24 AM
> Subject: Jetspeed goes Webservices !
>
>
> > I checked out the latest cvs and see a stock quote portlet (as a
> webservice
> > call).
> >
> > Good job !
> >
> > P.S.
> > What's about a common webservice portlet, where i can choose a
webservice
> > from UDDI and call methods of the webservice and get response.
> > Are there plans to do something like that ?
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
> ---------------------------------------------------------------------
> 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


AW: Jetspeed goes Webservices !

Posted by Norman Schöneich <sc...@ecooperate.de>.
I would be interested in such a portlet.
But I don't have write-access to jetspeed cvs. I would aggree in taking a
look at this portlet.
If some integration is necessary, i would do it.

If none of the jetspeed contributors are willing to do that or have other
task with higher priority to do (i think so, see do to list), i would be
interested in.

What does the jetspeed users think ? (especially the jetspeed contributors)
?


Maybe you can mail me the portlet.

Thanks in advance

norman schöneich


-----Ursprüngliche Nachricht-----
Von: Scott A. Roehrig [mailto:saroehr@hotmail.com]
Gesendet: Montag, 24. September 2001 17:48
An: jetspeed-user@jakarta.apache.org
Betreff: Re: Jetspeed goes Webservices !


I have written a portlet that uses a soapbean in this manner. If the
jetspeed team would be interested in taking a look they are welcome to.


Scott
IBM Corporation
----- Original Message -----
From: "Norman Schöneich" <sc...@ecooperate.de>
To: <je...@jakarta.apache.org>
Sent: Monday, September 24, 2001 11:24 AM
Subject: Jetspeed goes Webservices !


> I checked out the latest cvs and see a stock quote portlet (as a
webservice
> call).
>
> Good job !
>
> P.S.
> What's about a common webservice portlet, where i can choose a webservice
> from UDDI and call methods of the webservice and get response.
> Are there plans to do something like that ?
>
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Jetspeed goes Webservices !

Posted by "Scott A. Roehrig" <sa...@hotmail.com>.
David:

Sure, I did indeed write a soap bean using the Apache Soap Framework. I am
sure it could use some work, but it got the job done for me!

Here is the relevant code. As I mentioned the portlet extends the Jetspeed
abstract portlet. I have used the bean in several manners, servlets, ejbs
etc.

Basically, you obtain the needed parameters from the service wsdl file, set
those on the bean and then ask it to processRequest(). It returns the
results object which you can then use in any manner you wish.

Hope it is helpful in some manner.

Scott
IBM Corporation
----- Original Message -----
From: "David Sean Taylor" <da...@bluesunrise.com>
To: <je...@jakarta.apache.org>
Sent: Monday, September 24, 2001 1:54 PM
Subject: RE: Jetspeed goes Webservices !


> Scott,
>
> I assume you are talking about the apache soap (beans).
> I'd like to learn more about apache soap, please send the example code to
> the list, thanks!
>
> David
>
>
> > -----Original Message-----
> > From: Scott A. Roehrig [mailto:saroehr@hotmail.com]
> > Sent: Monday, September 24, 2001 8:48 AM
> > To: jetspeed-user@jakarta.apache.org
> > Subject: Re: Jetspeed goes Webservices !
> >
> >
> > I have written a portlet that uses a soapbean in this manner. If the
> > jetspeed team would be interested in taking a look they are
> > welcome to.
> >
> >
> > Scott
> > IBM Corporation
> > ----- Original Message -----
> > From: "Norman Schöneich" <sc...@ecooperate.de>
> > To: <je...@jakarta.apache.org>
> > Sent: Monday, September 24, 2001 11:24 AM
> > Subject: Jetspeed goes Webservices !
> >
> >
> > > I checked out the latest cvs and see a stock quote portlet (as a
> > webservice
> > > call).
> > >
> > > Good job !
> > >
> > > P.S.
> > > What's about a common webservice portlet, where i can
> > choose a webservice
> > > from UDDI and call methods of the webservice and get response.
> > > Are there plans to do something like that ?
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > 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
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>

RE: Jetspeed goes Webservices !

Posted by David Sean Taylor <da...@bluesunrise.com>.
Scott,

I assume you are talking about the apache soap (beans).
I'd like to learn more about apache soap, please send the example code to
the list, thanks!

David


> -----Original Message-----
> From: Scott A. Roehrig [mailto:saroehr@hotmail.com]
> Sent: Monday, September 24, 2001 8:48 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: Re: Jetspeed goes Webservices !
>
>
> I have written a portlet that uses a soapbean in this manner. If the
> jetspeed team would be interested in taking a look they are
> welcome to.
>
>
> Scott
> IBM Corporation
> ----- Original Message -----
> From: "Norman Schöneich" <sc...@ecooperate.de>
> To: <je...@jakarta.apache.org>
> Sent: Monday, September 24, 2001 11:24 AM
> Subject: Jetspeed goes Webservices !
>
>
> > I checked out the latest cvs and see a stock quote portlet (as a
> webservice
> > call).
> >
> > Good job !
> >
> > P.S.
> > What's about a common webservice portlet, where i can
> choose a webservice
> > from UDDI and call methods of the webservice and get response.
> > Are there plans to do something like that ?
> >
> >
> >
> ---------------------------------------------------------------------
> > 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
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Jetspeed goes Webservices !

Posted by "Scott A. Roehrig" <sa...@hotmail.com>.
I have written a portlet that uses a soapbean in this manner. If the
jetspeed team would be interested in taking a look they are welcome to.


Scott
IBM Corporation
----- Original Message -----
From: "Norman Schöneich" <sc...@ecooperate.de>
To: <je...@jakarta.apache.org>
Sent: Monday, September 24, 2001 11:24 AM
Subject: Jetspeed goes Webservices !


> I checked out the latest cvs and see a stock quote portlet (as a
webservice
> call).
>
> Good job !
>
> P.S.
> What's about a common webservice portlet, where i can choose a webservice
> from UDDI and call methods of the webservice and get response.
> Are there plans to do something like that ?
>
>
> ---------------------------------------------------------------------
> 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: Jetspeed goes Webservices !

Posted by David Sean Taylor <da...@bluesunrise.com>.
Thanks Norman,

Yes, I agree that the StockQuote service code needs to be refactored and
made more generic.
I wrote all the soap client code from scratch to illustrate how easy it is
to write soap clients without the need of any framework.
In fact, the only other jar file needed in the example is xerces.jar (that
reminds me, the code needs to be decoupled from xerces)
We should consider using soap beans or other frameworks in the refactoring.
See

http://xml.apache.org/soap/docs/apiDocs/org/apache/soap/package-summary.html

The code in the jetspeed cvs is actually a webservice client, whereas the
webservice is running in another container on my server.

The StockQuote portlet is not complete, hope to finish this week...:
- customization, to select your own quotes, and store the quote list by user
- wml support

As for a UDDI browser portlet, yes, great!

With this portlet, my goal was to bring some focus to web services in
jetspeed, which we haven't really explored up until now.

David



> -----Original Message-----
> From: Norman Schöneich [mailto:schoeneich@ecooperate.de]
> Sent: Monday, September 24, 2001 8:25 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: Jetspeed goes Webservices !
>
>
> I checked out the latest cvs and see a stock quote portlet
> (as a webservice
> call).
>
> Good job !
>
> P.S.
> What's about a common webservice portlet, where i can choose
> a webservice
> from UDDI and call methods of the webservice and get response.
> Are there plans to do something like that ?
>
>
> ---------------------------------------------------------------------
> 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


Jetspeed goes Webservices !

Posted by Norman Schöneich <sc...@ecooperate.de>.
I checked out the latest cvs and see a stock quote portlet (as a webservice
call).

Good job !

P.S.
What's about a common webservice portlet, where i can choose a webservice
from UDDI and call methods of the webservice and get response.
Are there plans to do something like that ?


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: Call Tree How To: index.jsp -> jetspeed.vm & Default.psml: how does this work

Posted by David Sean Taylor <da...@bluesunrise.com>.
> I really like to understand how jetspeed traverses all the VM 
> files starting with the index.jsp. What I think to know:

see services/template/JetspeedTemplateLocatorService 

 

> -----Original Message-----
> From: Riedl Juergen [mailto:Juergen.Riedl@icn.siemens.de]
> Sent: Monday, September 24, 2001 7:52 AM
> To: 'jetspeed-user@jakarta.apache.org'
> Subject: Call Tree How To: index.jsp -> jetspeed.vm & 
> Default.psml: how
> does this work
> 
> 
> Hi all,
> 
> I really like to understand how jetspeed traverses all the VM 
> files starting with the index.jsp. What I think to know:
> 
> o	in the web.xml file the link of index.jsp "portlet/" is 
> redirected to "jetspeed"
> o	since the engine runs in VM mode, this shall redirect 
> to jetspeed.vm instead of jetspeed.jsp
> 
> But this is only the half story: 
> o	someone calls default.psml
> 
> Where is that specified ? I greped trough the conf directory, 
> but this gives only little helt. Perhaps I overlooked something.
> 
> In jetspeed.vm there is a lot of makro processing. Where can 
> I find what is called e.g. for "$!{skin.PortletStyleClass}". 
> First I thought that it is a class where in the path is skin 
> or something else. But I didn't find anything. 
> 
> Maybe this is already documented, then please give me the 
> pointer to it. 
> 
> Best Regards
> 
> Juergen Riedl
> >  
> 
> ---------------------------------------------------------------------
> 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