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 James Wang <to...@yahoo.com> on 2002/09/13 08:42:01 UTC

how to set a global context variable which can be used in any velocity template in Jetspeed?

In Jetspeed,I want to set a global variable in
context,
so i can use it in every Velocity template,
everytime i set a variable in a template like that,
...
context.put("user","james");
setTemplate("index.vm");
...

and then i can use '$user' in index.vm,but as i refer
to another Velocity template page from index.vm,
the $user will be null,but i want to keep its value,
how can i do?


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


list portlet-set of other users

Posted by Bui Quoc Thai <st...@ait.ac.th>.
Hi all,

 I play an admin in jetspeed portal, I want to observe other users who have a 
set of portlets on his page.
 The problem is I want to write a portlet that can list all portlets of each 
user. But now, I don't know how to access all portlets of each user.

 Do you know any hint to do that job, listing all portlets of other users?
 
Thanks a lot
Thai

--------------------------
Email: st027235@ait.ac.th
       bqthai@ctu.edu.vn
Room: C34
Tel: 524-7099

----------------------------------------------------------
This mail sent through AIT WebMail : http://www.ait.ac.th/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Classifying portlets in category issue?

Posted by Bui Quoc Thai <st...@ait.ac.th>.
Hi all,

 I want to classify all portlets in jetspeed portal in categories, then group 
the portlets based on the categories in portlet list, how can I do that? 
 I see in the .xreg files, there are <category> elements in each portlet 
entry. If these elements used for classifying the portlets?
 Are there anyone involving this issue, please give me some hints.

Thank you very much!
Thai
--------------------------
Email: st027235@ait.ac.th
       bqthai@ctu.edu.vn
Room: C34
Tel: 524-7099

----------------------------------------------------------
This mail sent through AIT WebMail : http://www.ait.ac.th/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: encoding/charset Question

Posted by Raffaele Ragni <ra...@cone.it>.
Well, essentially, i didn't anything; my problem was with the
database(enabling the encoding on mysql), jetspeed worked great on encoding.
Though i don't use jsp so i dont know if there are other steps to configure
it particularly.
The encoding service configuration line in Turbine properties and Fulcrum
properties is commented on my webapp.
In velocity.properties though, there is a line 'template.encoding=8859_1',
that should mean UTF-8 if i am not wrong.
Even in JetspeedResources.properties there is a line reguarding encoding,
that is: 'content.defaultencoding=iso-8859-1'.

Now since i didnt touch anything and leaved as it were, i dont have more
suggestion to give.

|- Raffaele Ragni < raffaele.ragni@cone.it >
|- Tel 071 2900854 / Fax 071 2908551 / Cel 333 3659770
|- CONE Sistemi Informativi


----- Original Message -----
From: "Mike Zhou" <er...@yahoo.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Wednesday, September 18, 2002 3:30 PM
Subject: Re: encoding/charset Question


> Raffaele,
>
> I am new to Jetspeed, but have very strong knowledge
> about Java/JSP and portal. Can you summarize your
> steps to config Jetspeed for a different
> encoding/charset? I think it will benefit lot of
> users.
>
> Thanks, Erzhuan
> --- Raffaele Ragni <ra...@libero.it> wrote:
> > I am using vm.
> >
> >
> > <=- Raffaele Ragni -=>
> >
> > ----- Original Message -----
> > From: "Mike Zhou" <er...@yahoo.com>
> > To: "Jetspeed Users List"
> > <je...@jakarta.apache.org>
> > Sent: Monday, September 16, 2002 8:00 PM
> > Subject: Re: encoding/charset Question
> >
> >
> > > Raffaele,
> > >
> > > After I switched from vm scripting format to jsp
> > > format, things become better. Which scripting
> > format
> > > are you using?
> > >
> > > Thanks, Erzhuan
> > > --- Raffaele Ragni <ra...@cone.it> wrote:
> > > > I am using encoding normally, java supports it,
> > and
> > > > jetspeed too, it all
> > > > works (just for the database i had to do
> > something,
> > > > but this is another
> > > > thing and depends on wich one you have).
> > > > The only problem i had is when i used a
> > javascript
> > > > to modify data in a form,
> > > > and the encoding was bad.
> > > > For now i just don't use that javascript
> > anymore.
> > > >
> > > > |- Raffaele Ragni
> > > > |- raffaele.ragni@cone.it
> > > > |- Tel 071 2900 854
> > > > |- Fax 071 2908 551
> > > > |- Cel 333 3659770
> > > > |- CONE
> > > > |- Sistemi Informativi
> > > >
> > > > ----- Original Message -----
> > > > From: "Mike Zhou" <er...@yahoo.com>
> > > > To: "'Jetspeed Users List'"
> > > > <je...@jakarta.apache.org>
> > > > Sent: Saturday, September 14, 2002 10:23 PM
> > > > Subject: Re: encoding/charset Question
> > > >
> > > >
> > > > > Hi all,
> > > > >
> > > > > I am trying to develop a Chinese site based on
> > > > > Jetseepd. I am confused with regarding how
> > > > Jetspeed
> > > > > deals with encoding/charset. You can at lease
> > set
> > > > > these attributes in conf/velocity.propertes
> > and
> > > > > conf/TurbineResources.properties.
> > > > >
> > > > > In JSP, you can simply do
> > > > >
> > > > > <%@ page contentType= "TEXT/HTML;
> > CHARSET=GB2312"
> > > > %>
> > > > >
> > > > > to switch your browser to display pages in
> > > > Chinese.
> > > > >
> > > > > Any previous experience to share?
> > > > >
> > > > > Thanks, Erzhaun
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do you Yahoo!?
> > > > > Yahoo! News - Today's headlines
> > > > > http://news.yahoo.com
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > >
> > >
> >
> <ma...@jakarta.apache.org>
> > > > > For additional commands, e-mail:
> > > > <ma...@jakarta.apache.org>
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > >
> > >
> >
> <ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > > <ma...@jakarta.apache.org>
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! News - Today's headlines
> > > http://news.yahoo.com
> > >
> > > --
> > > To unsubscribe, e-mail:
> >
> <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> http://news.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: encoding/charset Question

Posted by Mike Zhou <er...@yahoo.com>.
Raffaele,

I am new to Jetspeed, but have very strong knowledge
about Java/JSP and portal. Can you summarize your
steps to config Jetspeed for a different
encoding/charset? I think it will benefit lot of
users.

Thanks, Erzhuan
--- Raffaele Ragni <ra...@libero.it> wrote:
> I am using vm.
> 
> 
> <=- Raffaele Ragni -=>
> 
> ----- Original Message -----
> From: "Mike Zhou" <er...@yahoo.com>
> To: "Jetspeed Users List"
> <je...@jakarta.apache.org>
> Sent: Monday, September 16, 2002 8:00 PM
> Subject: Re: encoding/charset Question
> 
> 
> > Raffaele,
> >
> > After I switched from vm scripting format to jsp
> > format, things become better. Which scripting
> format
> > are you using?
> >
> > Thanks, Erzhuan
> > --- Raffaele Ragni <ra...@cone.it> wrote:
> > > I am using encoding normally, java supports it,
> and
> > > jetspeed too, it all
> > > works (just for the database i had to do
> something,
> > > but this is another
> > > thing and depends on wich one you have).
> > > The only problem i had is when i used a
> javascript
> > > to modify data in a form,
> > > and the encoding was bad.
> > > For now i just don't use that javascript
> anymore.
> > >
> > > |- Raffaele Ragni
> > > |- raffaele.ragni@cone.it
> > > |- Tel 071 2900 854
> > > |- Fax 071 2908 551
> > > |- Cel 333 3659770
> > > |- CONE
> > > |- Sistemi Informativi
> > >
> > > ----- Original Message -----
> > > From: "Mike Zhou" <er...@yahoo.com>
> > > To: "'Jetspeed Users List'"
> > > <je...@jakarta.apache.org>
> > > Sent: Saturday, September 14, 2002 10:23 PM
> > > Subject: Re: encoding/charset Question
> > >
> > >
> > > > Hi all,
> > > >
> > > > I am trying to develop a Chinese site based on
> > > > Jetseepd. I am confused with regarding how
> > > Jetspeed
> > > > deals with encoding/charset. You can at lease
> set
> > > > these attributes in conf/velocity.propertes
> and
> > > > conf/TurbineResources.properties.
> > > >
> > > > In JSP, you can simply do
> > > >
> > > > <%@ page contentType= "TEXT/HTML;
> CHARSET=GB2312"
> > > %>
> > > >
> > > > to switch your browser to display pages in
> > > Chinese.
> > > >
> > > > Any previous experience to share?
> > > >
> > > > Thanks, Erzhaun
> > > >
> > > >
> __________________________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! News - Today's headlines
> > > > http://news.yahoo.com
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > >
> >
>
<ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> >
>
<ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! News - Today's headlines
> > http://news.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
>
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> 
> 
> --
> To unsubscribe, e-mail:  
>
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: encoding/charset Question

Posted by Raffaele Ragni <ra...@libero.it>.
I am using vm.


<=- Raffaele Ragni -=>

----- Original Message -----
From: "Mike Zhou" <er...@yahoo.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Monday, September 16, 2002 8:00 PM
Subject: Re: encoding/charset Question


> Raffaele,
>
> After I switched from vm scripting format to jsp
> format, things become better. Which scripting format
> are you using?
>
> Thanks, Erzhuan
> --- Raffaele Ragni <ra...@cone.it> wrote:
> > I am using encoding normally, java supports it, and
> > jetspeed too, it all
> > works (just for the database i had to do something,
> > but this is another
> > thing and depends on wich one you have).
> > The only problem i had is when i used a javascript
> > to modify data in a form,
> > and the encoding was bad.
> > For now i just don't use that javascript anymore.
> >
> > |- Raffaele Ragni
> > |- raffaele.ragni@cone.it
> > |- Tel 071 2900 854
> > |- Fax 071 2908 551
> > |- Cel 333 3659770
> > |- CONE
> > |- Sistemi Informativi
> >
> > ----- Original Message -----
> > From: "Mike Zhou" <er...@yahoo.com>
> > To: "'Jetspeed Users List'"
> > <je...@jakarta.apache.org>
> > Sent: Saturday, September 14, 2002 10:23 PM
> > Subject: Re: encoding/charset Question
> >
> >
> > > Hi all,
> > >
> > > I am trying to develop a Chinese site based on
> > > Jetseepd. I am confused with regarding how
> > Jetspeed
> > > deals with encoding/charset. You can at lease set
> > > these attributes in conf/velocity.propertes and
> > > conf/TurbineResources.properties.
> > >
> > > In JSP, you can simply do
> > >
> > > <%@ page contentType= "TEXT/HTML; CHARSET=GB2312"
> > %>
> > >
> > > to switch your browser to display pages in
> > Chinese.
> > >
> > > Any previous experience to share?
> > >
> > > Thanks, Erzhaun
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! News - Today's headlines
> > > http://news.yahoo.com
> > >
> > > --
> > > To unsubscribe, e-mail:
> >
> <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> http://news.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: encoding/charset Question

Posted by Mike Zhou <er...@yahoo.com>.
Raffaele,

After I switched from vm scripting format to jsp
format, things become better. Which scripting format
are you using?

Thanks, Erzhuan
--- Raffaele Ragni <ra...@cone.it> wrote:
> I am using encoding normally, java supports it, and
> jetspeed too, it all
> works (just for the database i had to do something,
> but this is another
> thing and depends on wich one you have).
> The only problem i had is when i used a javascript
> to modify data in a form,
> and the encoding was bad.
> For now i just don't use that javascript anymore.
> 
> |- Raffaele Ragni
> |- raffaele.ragni@cone.it
> |- Tel 071 2900 854
> |- Fax 071 2908 551
> |- Cel 333 3659770
> |- CONE
> |- Sistemi Informativi
> 
> ----- Original Message -----
> From: "Mike Zhou" <er...@yahoo.com>
> To: "'Jetspeed Users List'"
> <je...@jakarta.apache.org>
> Sent: Saturday, September 14, 2002 10:23 PM
> Subject: Re: encoding/charset Question
> 
> 
> > Hi all,
> >
> > I am trying to develop a Chinese site based on
> > Jetseepd. I am confused with regarding how
> Jetspeed
> > deals with encoding/charset. You can at lease set
> > these attributes in conf/velocity.propertes and
> > conf/TurbineResources.properties.
> >
> > In JSP, you can simply do
> >
> > <%@ page contentType= "TEXT/HTML; CHARSET=GB2312"
> %>
> >
> > to switch your browser to display pages in
> Chinese.
> >
> > Any previous experience to share?
> >
> > Thanks, Erzhaun
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! News - Today's headlines
> > http://news.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
>
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:  
>
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: encoding/charset Question

Posted by Raffaele Ragni <ra...@cone.it>.
I am using encoding normally, java supports it, and jetspeed too, it all
works (just for the database i had to do something, but this is another
thing and depends on wich one you have).
The only problem i had is when i used a javascript to modify data in a form,
and the encoding was bad.
For now i just don't use that javascript anymore.

|- Raffaele Ragni
|- raffaele.ragni@cone.it
|- Tel 071 2900 854
|- Fax 071 2908 551
|- Cel 333 3659770
|- CONE
|- Sistemi Informativi

----- Original Message -----
From: "Mike Zhou" <er...@yahoo.com>
To: "'Jetspeed Users List'" <je...@jakarta.apache.org>
Sent: Saturday, September 14, 2002 10:23 PM
Subject: Re: encoding/charset Question


> Hi all,
>
> I am trying to develop a Chinese site based on
> Jetseepd. I am confused with regarding how Jetspeed
> deals with encoding/charset. You can at lease set
> these attributes in conf/velocity.propertes and
> conf/TurbineResources.properties.
>
> In JSP, you can simply do
>
> <%@ page contentType= "TEXT/HTML; CHARSET=GB2312" %>
>
> to switch your browser to display pages in Chinese.
>
> Any previous experience to share?
>
> Thanks, Erzhaun
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> http://news.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: encoding/charset Question

Posted by Mike Zhou <er...@yahoo.com>.
Hi all,

I am trying to develop a Chinese site based on
Jetseepd. I am confused with regarding how Jetspeed
deals with encoding/charset. You can at lease set
these attributes in conf/velocity.propertes and
conf/TurbineResources.properties. 

In JSP, you can simply do

<%@ page contentType= "TEXT/HTML; CHARSET=GB2312" %>

to switch your browser to display pages in Chinese. 

Any previous experience to share?

Thanks, Erzhaun

__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Newbie Question

Posted by Matt Yubin He <mh...@itsc.uah.edu>.
I am trying to learn Jetspeed and I have successfully created some portlets.
Now I have a problem on creating a stockquote-like portlet. I want to use a
portlet to display some book names, and if user click the custermizer icon,
a list of books will be displayed and user can choose a new set of books to
be displayed. (this is similar to stockquote portlet) However, I have no
clue how to create this portlet. Could someone please give me some hints on
what I should do?

Thanks.

Matt


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: how to set a global context variable which can be used in any velocity template in Jetspeed?

Posted by James Wang <to...@yahoo.com>.
Thank u,Stefan
I'll remember this.

James Wang

--- Stefan Kuhn <sk...@ice.mpg.de> wrote:
> Think about the Turbine pull service, which offers
> the possibility to 
> register classes which are availably in all
> contexts. Look at section
> #  P U L L  S E R V I C E
> in TR.properties.
> I personally think it's great to have some traces of
> politness in mails, even 
> to mailing lists, like Hi everybody or your name at
> the end.
> Stefan
> 
> Am Freitag, 13. September 2002 08:42 schrieben Sie:
> > In Jetspeed,I want to set a global variable in
> > context,
> > so i can use it in every Velocity template,
> > everytime i set a variable in a template like
> that,
> > ...
> > context.put("user","james");
> > setTemplate("index.vm");
> > ...
> >
> > and then i can use '$user' in index.vm,but as i
> refer
> > to another Velocity template page from index.vm,
> > the $user will be null,but i want to keep its
> value,
> > how can i do?
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! News - Today's headlines
> > http://news.yahoo.com
> 
> -- 
> Stefan Kuhn M. A.
> MPI of Chemical Ecology, Winzerlaer Str. 10,
> Beutenberg Campus, 07745 
> Jena, Germany
> Tel: +49(0)3641 571261 - Fax: +49(0)3641 571202
> 
> --
> To unsubscribe, e-mail:  
>
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: how to set a global context variable which can be used in any velocity template in Jetspeed?

Posted by Stefan Kuhn <sk...@ice.mpg.de>.
Think about the Turbine pull service, which offers the possibility to 
register classes which are availably in all contexts. Look at section
#  P U L L  S E R V I C E
in TR.properties.
I personally think it's great to have some traces of politness in mails, even 
to mailing lists, like Hi everybody or your name at the end.
Stefan

Am Freitag, 13. September 2002 08:42 schrieben Sie:
> In Jetspeed,I want to set a global variable in
> context,
> so i can use it in every Velocity template,
> everytime i set a variable in a template like that,
> ...
> context.put("user","james");
> setTemplate("index.vm");
> ...
>
> and then i can use '$user' in index.vm,but as i refer
> to another Velocity template page from index.vm,
> the $user will be null,but i want to keep its value,
> how can i do?
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> http://news.yahoo.com

-- 
Stefan Kuhn M. A.
MPI of Chemical Ecology, Winzerlaer Str. 10, Beutenberg Campus, 07745 
Jena, Germany
Tel: +49(0)3641 571261 - Fax: +49(0)3641 571202

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>