Re: CMS - Struts

2002-10-30 Thread Werner Ramaekers

Christophe wrote:


I must say that i agree on the matter that it should be possible to use
Struts as MVC within Jetspeed instead of velocity,
there has been an attempt at integrating JSP based templates but they
are setup in a wrong way.
I have already addressed this to the Jetspeed-dev mailing list in the
following message :
http://www.mail-archive.com/jetspeed-dev@;jakarta.apache.org/msg04605.html
but have seen no reply.
The reason i favor JSP based templates over velocity is that they are
easier to teach to a learning Java programmer
then velocity.
So i would like to propose to make a first step at reworking the JSP
templates to use or Struts or the JSTL, if there is enough interest from
the jetspeed-dev group.
   


It is possible to learn Velocity in 2 hours. That's not possible with JSP
which are unreadable.
 

if you use the available tag libraries and use your JSP's as the View in 
the MVC approach it can be very readable ...
and the i18n you get is very important and easy to manage (as in Velocity)

Anyway I understand your point of view. Unfortunatly customers are using
JSP/Struts.
So I'm also interesting for this kind of integration between Jetspeed and
Struts :-
 

ok, there is two of us then,  what about the rest ?


Werner, do you have some ideas for that ?
What about accessing Jetspeed services or the Rundata from a Struts action
classes or form ?
I have no idea on the Struts flexibility for this kind of integration.

 

Struts Action and Form classes have access to the HttpServletRequest so 
what could be the problem to access the RunData
or Jetspeed Services ? ... i don't see a problem ... could you elaborate 
a little on what you think is the problem ?

Werner

--
--
ir. Werner Ramaekers
Enterprise Java Solutions Architect - Shift@
Sun Certified Java Programmer - BeJUG steering commitee member

"May the source be with you."

Read my Blog at http://www.werner.be
--



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Problem with 1.42b installation of Jetspeed

2002-10-30 Thread Josh Hone

Has anyone run into a problem with the 1.42b installation of jetspeed.


I am currently running a 1.4b2 under tomcat 4.1.3 (i think), jdk1.4, apache 
something new... on the latest Linux distribution for a physics portal I am 
developing and it works fine for me.  I set up email registration, a defualt 
template for new users, and all I have to do now is make it do physics!! =)

On
startup jetspeed is falling to load of the .xreg files in the ./conf
directory.  A castorregistryservice.java loadfregment method, and exception
is thrown for every .xreg file it tries to read.  Going back the 1.41b
version of castorregistryservice.java seemed to resolve the problem.

brian



your environment can have a lot to do with it.  for example, i put an older 
version of jetspeed into an even older tomcat and the normally working SOAP 
stuff I had in it would not run, so I had to upgrade tomcat to make the 
jetspeed SOAP calls not crash.  Jetspeed maintains backwards compatibility 
with the registry XML, so that it can update/recognize old PSML.  I have 
also built the CVS head and it works fine, even when I add the old PSML from 
my last version into the xreg and other places where PSML is stored.

Josh Hone

_
Get a speedy connection with MSN Broadband.  Join now! 
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



WhereTo for jdbc drivers

2002-10-30 Thread D. S. Johnson
Hi
Does anyone know where to put the JDBC drivers for JSP portals. I want
my portal to access my database, but I keep getting an error concerning
Jasper not finding the (Oracle) driver. I have tried putting the jar
file just about everywhere I can think of, and I have added it to the
CLASSPATH. But, I still get the error...should I be using the database
interface currently part of the source code?




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HelloWorld portlet

2002-10-30 Thread Jim . Jackson

Yes. I was using the TDK. It seemed the easiest way to get things going.
I will pursue your suggestion.
Thanks, very much.

Jim Jackson
SunGard EBS


   
  
"David Sean
  
Taylor"  To: "Jetspeed Users List" 
  
   
  
rise.com>cc:   
  
 Subject: RE: HelloWorld portlet   
  
10/30/2002 
  
04:17 PM   
  
Please respond 
  
to "Jetspeed   
  
Users List"
  
   
  
   
  




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Jim.Jackson@;SunGard.com]
> Sent: Wednesday, October 30, 2002 2:07 PM
> To: [EMAIL PROTECTED]
> Subject: RE: HelloWorld portlet
>
>
> HHmm
> My jetspeed does not seem to have a WEB-INF.
> Should I create one?
>

HHmm
, using the TDK.
Don't recommend using the TDK with Jetspeed, afaik they are incompatible
Try the tutorial http://www.bluesunrise.com/jetspeed-docs/PortletHowTo.htm



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





This email message is for the sole use of the intended recipient(s) and may
contain confidential information.  Any unauthorized review, use, disclosure
or distribution is prohibited.  If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the
original message.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: HelloWorld portlet

2002-10-30 Thread Ozgur Balsoy
Assuming that you copied & pasted the registery files, could the 
problems be that
1) you have given the both of the portlets the same name, "HelloWorld."
2) you don't have a parent portlet called "HelloWorldPortlet." See 1).

Ozgur

[EMAIL PROTECTED] wrote:
Can't get it to work.
Shows up in Add Portlets, but not on the user page after adding.
Any ideas, anybody ?
Here is my portlet:

package com.sungard.portal.portlets;

import org.apache.jetspeed.portal.portlets.AbstractPortlet;
import org.apache.turbine.util.RunData;
import org.apache.ecs.ConcreteElement;
import org.apache.ecs.StringElement;

public class HelloWorldPortlet extends AbstractPortlet
{
public ConcreteElement getContent (RunData runData)
{
return (new StringElement ("Hello World!"));
}
}

And then my xreg entries:
portlets.xreg


HelloWorld
Portlet How To Example 1 ? Hello World

com.sungard.portal.portlets.HelloWorldPortlet




demo-portlets.xreg


Hello World
Hello World

com.sungard.portal.portlets.HelloWorldPortlet
http://java.sun.com/
sites.companies.sun



Jim Jackson
SunGard EBS

This email message is for the sole use of the intended recipient(s) and may
contain confidential information.  Any unauthorized review, use, disclosure
or distribution is prohibited.  If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the
original message.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HelloWorld portlet

2002-10-30 Thread David Sean Taylor
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Jim.Jackson@;SunGard.com]
> Sent: Wednesday, October 30, 2002 2:07 PM
> To: [EMAIL PROTECTED]
> Subject: RE: HelloWorld portlet
> 
> 
> HHmm
> My jetspeed does not seem to have a WEB-INF.
> Should I create one?
> 

HHmm
, using the TDK.
Don't recommend using the TDK with Jetspeed, afaik they are incompatible
Try the tutorial http://www.bluesunrise.com/jetspeed-docs/PortletHowTo.htm



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Need help with Users security roles

2002-10-30 Thread David Sean Taylor
>
> Hi,
>
> Try to use org.apache.jetspeed.om.security.BaseTurbineUser instead of
> org.apache.turbine.om.security.TurbineRole
>

Your advising to use the default implementation instead of the interface?
Thats bad advice!

The Role interface has a getName method which correctly retrieves the name
of the role from any implementation.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HelloWorld portlet

2002-10-30 Thread Jim . Jackson
HHmm
My jetspeed does not seem to have a WEB-INF.
Should I create one?


C:\tdk\tdk\webapps\jetspeed\WEB-INF
+--cache
+--conf
+--db
+--lib
+--log
+--psml
|  +--group
|  |  +--apache
|  |  \--Jetspeed
|  | \--html
|  +--role
|  |  +--admin
|  |  \--user
|  \--user
| +--admin
| |  +--html
| |  \--wml
| +--anon
| |  +--html
| |  |  +--en
| |  |  \--es
| |  +--wml
| |  |  \--en
| |  \--xml
| \--turbine
|+--html
|\--wml
+--templates
|  +--jsp
|  |  +--layouts
|  |  |  +--html
|  |  |  |  +--de
|  |  |  |  \--en
|  |  |  +--vxml
|  |  |  \--wml
|  |  +--navigations
|  |  |  +--html
|  |  |  |  +--de
|  |  |  |  \--en
|  |  |  \--wml
|  |  +--portlets
|  |  |  \--html
|  |  +--screens
|  |  |  +--html
|  |  |  |  +--de
|  |  |  |  \--en
|  |  |  +--vxml
|  |  |  \--wml
|  |  \--tld
|  \--vm
| +--controllers
| |  +--html
| |  +--wml
| |  \--xml
| +--controls
| |  \--html
| +--emails
| +--layouts
| |  +--html
| |  +--wml
| |  \--xml
| +--navigations
| |  +--html
| |  \--wml
| +--portlets
| |  +--html
| |  \--wml
| \--screens
|+--html
|+--wml
|\--xml
+--tmp
\--xsl

Jim Jackson
SunGard EBS

__


I tried several differrent places.
1. Altered classpath to have the location where I compilied the java file
into class file
2. share\lib
3. webapps\jetspeed\WEB-INF\lib

In all cases, I re-started Catalina.
None worked.
Here is the error in jetspeed log

[10:21:43,597 ERROR]
org.apache.jetspeed.portal.PortletException: PortletFactory: Unable to load
class com.sungard.portal.portlets.HelloWorldPortlet
 at
org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.getPortlet(JetspeedPortletFactoryService.java:211)
 at
org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.getPortlet(JetspeedPortletFactoryService.java:157)

[lots more of stack trace]

Jim Jackson
SunGard EBS


   
  
"David Sean
  
Taylor"  To: "Jetspeed Users List" 
  
   
  
rise.com>cc:   
  
 Subject: RE: HelloWorld portlet   
  
10/30/2002 
  
01:49 PM   
  
Please respond 
  
to "Jetspeed   
  
Users List"
  
   
  
   
  






> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Jim.Jackson@;SunGard.com]
> Sent: Wednesday, October 30, 2002 7:54 AM
> To: [EMAIL PROTECTED]
> Subject: HelloWorld portlet
>
>
> Can't get it to work.
> Shows up in Add Portlets, but not on the user page after adding.
> Any ideas, anybody ?

Where did you place your HelloWorld class file?


--
To unsubscribe, e-mail:

For additional commands, e-mail:






This email message is for the sole use of the intended recipient(s) and may
contain confidential information.  Any unauthorized review, use, disclosure
or distribution is prohibited.  If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the
original message.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Need help with Users security roles

2002-10-30 Thread Maciej Dziergwa
Użytkownik Shorney, Rob napisał:

How do I get the description of the role, at present I have the following in
the getContent() method of the protlet

try
{
  Iterator roles =
JetspeedRoleManagement.getRoles(runData.getUser().getUserName());
  while (roles.hasNext()) {
tr = (org.apache.turbine.om.security.TurbineRole) roles.next();
text.append("role = " + tr.getName());
text.append("");
  }
}
catch (org.apache.jetspeed.services.security.JetspeedSecurityException
jse)
{

which displays the following

role = org.apache.jetspeed.om.security.turbine.TurbineRole@1f
role = org.apache.jetspeed.om.security.turbine.TurbineRole@7c


Regards

Rob Shorney
PDS - Local Government - Front Office Development Team
Northgate Information Solutions






Hi,

Try to use org.apache.jetspeed.om.security.BaseTurbineUser instead of 
org.apache.turbine.om.security.TurbineRole

MaciekD



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: HelloWorld portlet

2002-10-30 Thread Weaver, Scott
Why not put the portlet's class file in the WEB-INF/classes/directory?

Scott

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Jim.Jackson@;SunGard.com]
> Sent: Wednesday, October 30, 2002 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: RE: HelloWorld portlet
> 
> 
> I tried several differrent places.
> 1. Altered classpath to have the location where I compilied the java file
> into class file
> 2. share\lib
> 3. webapps\jetspeed\WEB-INF\lib
> 
> In all cases, I re-started Catalina.
> None worked.
> Here is the error in jetspeed log
> 
> [10:21:43,597 ERROR]
> org.apache.jetspeed.portal.PortletException: PortletFactory: Unable to
> load
> class com.sungard.portal.portlets.HelloWorldPortlet
>  at
> org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.
> getPortlet(JetspeedPortletFactoryService.java:211)
>  at
> org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.
> getPortlet(JetspeedPortletFactoryService.java:157)
> 
> [lots more of stack trace]
> 
> Jim Jackson
> SunGard EBS
> 
> 
> 
> "David Sean
> Taylor"  To: "Jetspeed Users List"
>  [EMAIL PROTECTED]>
> rise.com>cc:
>  Subject: RE: HelloWorld
> portlet
> 10/30/2002
> 01:49 PM
> Please respond
> to "Jetspeed
> Users List"
> 
> 
> 
> 
> 
> 
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:Jim.Jackson@;SunGard.com]
> > Sent: Wednesday, October 30, 2002 7:54 AM
> > To: [EMAIL PROTECTED]
> > Subject: HelloWorld portlet
> >
> >
> > Can't get it to work.
> > Shows up in Add Portlets, but not on the user page after adding.
> > Any ideas, anybody ?
> 
> Where did you place your HelloWorld class file?
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> 
> 
> This email message is for the sole use of the intended recipient(s) and
> may
> contain confidential information.  Any unauthorized review, use,
> disclosure
> or distribution is prohibited.  If you are not the intended recipient,
> please contact the sender by reply email and destroy all copies of the
> original message.
> 
> 
> 
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>



RE: HelloWorld portlet

2002-10-30 Thread Jim . Jackson

I tried several differrent places.
1. Altered classpath to have the location where I compilied the java file
into class file
2. share\lib
3. webapps\jetspeed\WEB-INF\lib

In all cases, I re-started Catalina.
None worked.
Here is the error in jetspeed log

[10:21:43,597 ERROR]
org.apache.jetspeed.portal.PortletException: PortletFactory: Unable to load
class com.sungard.portal.portlets.HelloWorldPortlet
 at
org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.getPortlet(JetspeedPortletFactoryService.java:211)
 at
org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.getPortlet(JetspeedPortletFactoryService.java:157)

[lots more of stack trace]

Jim Jackson
SunGard EBS


   
  
"David Sean
  
Taylor"  To: "Jetspeed Users List" 
  
   
  
rise.com>cc:   
  
 Subject: RE: HelloWorld portlet   
  
10/30/2002 
  
01:49 PM   
  
Please respond 
  
to "Jetspeed   
  
Users List"
  
   
  
   
  






> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Jim.Jackson@;SunGard.com]
> Sent: Wednesday, October 30, 2002 7:54 AM
> To: [EMAIL PROTECTED]
> Subject: HelloWorld portlet
>
>
> Can't get it to work.
> Shows up in Add Portlets, but not on the user page after adding.
> Any ideas, anybody ?

Where did you place your HelloWorld class file?


--
To unsubscribe, e-mail:

For additional commands, e-mail:






This email message is for the sole use of the intended recipient(s) and may
contain confidential information.  Any unauthorized review, use, disclosure
or distribution is prohibited.  If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the
original message.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: CMS - Struts

2002-10-30 Thread Christophe
> I must say that i agree on the matter that it should be possible to use
> Struts as MVC within Jetspeed instead of velocity,
> there has been an attempt at integrating JSP based templates but they
> are setup in a wrong way.
> I have already addressed this to the Jetspeed-dev mailing list in the
> following message :
> http://www.mail-archive.com/jetspeed-dev@;jakarta.apache.org/msg04605.html
> but have seen no reply.
> The reason i favor JSP based templates over velocity is that they are
> easier to teach to a learning Java programmer
> then velocity.
> So i would like to propose to make a first step at reworking the JSP
> templates to use or Struts or the JSTL, if there is enough interest from
> the jetspeed-dev group.

It is possible to learn Velocity in 2 hours. That's not possible with JSP
which are unreadable.
Anyway I understand your point of view. Unfortunatly customers are using
JSP/Struts.
So I'm also interesting for this kind of integration between Jetspeed and
Struts :-

Werner, do you have some ideas for that ?
What about accessing Jetspeed services or the Rundata from a Struts action
classes or form ?
I have no idea on the Struts flexibility for this kind of integration.


Christophe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HelloWorld portlet

2002-10-30 Thread Jim . Jackson

I tried several differrent places.
1. Altered classpath to have the location
2. share\lib
3. webapps\jetspeed\WEB-INF\lib

In all cases, I re-started Catalina.
None worked.
Here is the error in jetspeed log

[10:21:43,597 ERROR]
org.apache.jetspeed.portal.PortletException: PortletFactory: Unable to load
class com.sungard.portal.portlets.HelloWorldPortlet
 at
org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.getPortlet(JetspeedPortletFactoryService.java:211)
 at
org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.getPortlet(JetspeedPortletFactoryService.java:157)

[lots more of stack trace]

Jim Jackson
SunGard EBS


   
  
"David Sean
  
Taylor"  To: "Jetspeed Users List" 
  
   
  
rise.com>cc:   
  
 Subject: RE: HelloWorld portlet   
  
10/30/2002 
  
01:49 PM   
  
Please respond 
  
to "Jetspeed   
  
Users List"
  
   
  
   
  






> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Jim.Jackson@;SunGard.com]
> Sent: Wednesday, October 30, 2002 7:54 AM
> To: [EMAIL PROTECTED]
> Subject: HelloWorld portlet
>
>
> Can't get it to work.
> Shows up in Add Portlets, but not on the user page after adding.
> Any ideas, anybody ?

Where did you place your HelloWorld class file?


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





This email message is for the sole use of the intended recipient(s) and may
contain confidential information.  Any unauthorized review, use, disclosure
or distribution is prohibited.  If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the
original message.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HelloWorld portlet

2002-10-30 Thread David Sean Taylor


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Jim.Jackson@;SunGard.com]
> Sent: Wednesday, October 30, 2002 7:54 AM
> To: [EMAIL PROTECTED]
> Subject: HelloWorld portlet
> 
> 
> Can't get it to work.
> Shows up in Add Portlets, but not on the user page after adding.
> Any ideas, anybody ?

Where did you place your HelloWorld class file?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Need help with Users security roles

2002-10-30 Thread Shorney, Rob
How do I get the description of the role, at present I have the following in
the getContent() method of the protlet

try
{
  Iterator roles =
JetspeedRoleManagement.getRoles(runData.getUser().getUserName());
  while (roles.hasNext()) {
tr = (org.apache.turbine.om.security.TurbineRole) roles.next();
text.append("role = " + tr.getName());
text.append("");
  }
}
catch (org.apache.jetspeed.services.security.JetspeedSecurityException
jse)
{

which displays the following

role = org.apache.jetspeed.om.security.turbine.TurbineRole@1f
role = org.apache.jetspeed.om.security.turbine.TurbineRole@7c


Regards

Rob Shorney
PDS - Local Government - Front Office Development Team
Northgate Information Solutions






 
This email is sent on behalf of Northgate Information Solutions UK Limited 
("Northgate") and is strictly confidential and intended solely for the addressee(s).  
It may contain personal and confidential information and as such may be protected by 
the Data Protection Act 1998.

If you are not the intended recipient of this email you must: (i) not disclose, copy 
or distribute its contents to any other person nor use its contents in any way or you 
may be acting unlawfully;  (ii) contact Northgate immediately on +44 (0)1442 232424 
quoting the name of the sender and the addressee then delete it from your system.

Any views or opinions expressed within this email are those of the author, and do not 
necessarily represent those of Northgate.

Northgate has scanned this email for viruses but does not accept any responsibility 
once this email has been transmitted.  You should scan attachments (if any) for 
viruses.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Need help with getPaneByName

2002-10-30 Thread David Sean Taylor


> -Original Message-
> From: Michael Rothrock [mailto:michael@;michaelrothrock.com]
> Sent: Wednesday, October 30, 2002 10:17 AM
> To: Jetspeed Users List
> Subject: Need help with getPaneByName
>
>
> Hello!
>
> I'm becoming a bit frustrated by what should be an easy task: creating a
> link to activate a different pane on a menu pane.  Right now, I have two
> panes, Home and Features.  I have a Velocity portlet on Home that should
> have a link to Features.  I tried the following:
>
> $jslink.getPaneByName("Features")
>
> Which creates a link like so:
>
> http://127.0.0.1:8080/jetspeed/portal/user/anon/page/default.psml/
> js_panenam
> e/Features
>
> Unfortunately, clicking on this just loads the current (home) page.
>
> Looking at the generating link for the menu, I see it references
> the pane by
> ID, which I'd rather not do.
>
> What am I doing wrong?
>
> Env: Jetspeed 1.4b1, Tomcat4, Mac OS X, JRE 1.3

Did you give your PSML entry a name as in :



This works for me, but I've seen a bug where it doesn't correctly highlight
the menu or tab item, however the portlet content displays.
I tried to fix the menu item bug yesterday, but no luck

btw, Have you had any luck running Java 1.4 or J2EE on your Mac?



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Need help with getPaneByName

2002-10-30 Thread Michael Rothrock
Hello!

I'm becoming a bit frustrated by what should be an easy task: creating a
link to activate a different pane on a menu pane.  Right now, I have two
panes, Home and Features.  I have a Velocity portlet on Home that should
have a link to Features.  I tried the following:

$jslink.getPaneByName("Features")

Which creates a link like so:

http://127.0.0.1:8080/jetspeed/portal/user/anon/page/default.psml/js_panenam
e/Features

Unfortunately, clicking on this just loads the current (home) page.

Looking at the generating link for the menu, I see it references the pane by
ID, which I'd rather not do.

What am I doing wrong?

Env: Jetspeed 1.4b1, Tomcat4, Mac OS X, JRE 1.3

Thanks!

-- Michael


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: RE: Registry-CastorRegistryService

2002-10-30 Thread Luta, Raphael (VUN)


From: Alfer, Daniel [mailto:daniel.alfer@;volkswagen.de]
> 
> Hey!
> 
> Thanks Raphael and Hugh,
> 
> now it works, but i´ve still the problem that the regestry 
> changes or not
> permanent.
> How it is possible to store new RegistryEntry or update RegistryEntry.
> First, i thought that jetspeed automaticly store them before 
> shutting down
> the webserver. But it works only with old entries.
> 

Yes, I found out this bug when you used 
org.apache.jetspeed.om.registry.Registry.addEntry()

instead of using 

org.apache.jetspeed.services.Registry

I've patched the package today to make it work either way.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




CustomLanguage service +portlet

2002-10-30 Thread Massimiliano Dessi
I'd like to give to the jetspeed comunity the sources of a
portlet and the correlated service to change the current language.

Jetspeed by default reads the header from the request and to change
the language is necessary to modify the browser settings.

How it works:
this service is similar to the original localization and it works in the
same way
until the use of the changeLanguage portlet
If a user changes the language from the portlet, the new language  is set
and remains or he can change it again when he wants,
without the browser rules.
If it is necessary he can use  not official languages ( minority languages)
that the browser doesn't use.
The service can be compiled with   jdk 1.4.1  or 1.3.1 as described in the
code.
For the portlet it' s possible to view the label of the state or view the
flag of the country  as described in the code.
If  the developer wants to add other languages , he have to add the  file "
JetspeedLocalization_newlanguage.properties"
in the jetspeed.jar  and add the link " cL=newlanguage"  in a
contructorHtml.java

After compile put the classes injetspeed\WEB-INF\classes\   ,  the
language.xreg in the folder conf

To start the service comment  the original service
#services.LocalizationService.classname=org.apache.turbine.services.localiza
tion
and add the follow string
services.LocalizationService.classname=org.apache.jetspeed.services.customlo
calization.JetspeedLocalizationService
and comment the original tool
#tool.request.l10n=org.apache.turbine.services.localization.LocalizationTool
and add the follow string
tool.request.l10n=org.apache.jetspeed.services.customlocalization.CustomLoca
lizationTool


Enjoy it







language.xreg
Description: Binary data


ChangeLanguagePortlet.java
Description: Binary data


ConstructorHtml.java
Description: Binary data


CustomLocalization.java
Description: Binary data


CustomLocalizationService.java
Description: Binary data


CustomLocalizationTool.java
Description: Binary data


JetspeedLocalizationService.java
Description: Binary data
<><><><><><>
Questa email e' stata controllata dal RAV AntiVirus.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


HelloWorld portlet

2002-10-30 Thread Jim . Jackson
Can't get it to work.
Shows up in Add Portlets, but not on the user page after adding.
Any ideas, anybody ?
Here is my portlet:

package com.sungard.portal.portlets;

import org.apache.jetspeed.portal.portlets.AbstractPortlet;
import org.apache.turbine.util.RunData;
import org.apache.ecs.ConcreteElement;
import org.apache.ecs.StringElement;

public class HelloWorldPortlet extends AbstractPortlet
{
public ConcreteElement getContent (RunData runData)
{
return (new StringElement ("Hello World!"));
}
}

And then my xreg entries:
portlets.xreg


HelloWorld
Portlet How To Example 1 ? Hello World

com.sungard.portal.portlets.HelloWorldPortlet





demo-portlets.xreg


Hello World
Hello World

com.sungard.portal.portlets.HelloWorldPortlet

http://java.sun.com/
sites.companies.sun



Jim Jackson
SunGard EBS

This email message is for the sole use of the intended recipient(s) and may
contain confidential information.  Any unauthorized review, use, disclosure
or distribution is prohibited.  If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the
original message.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Hidden portlets

2002-10-30 Thread Mark Orciuch
> What's the best place to put all the hidden portlets? Is it possible to
> put it in some PSML and then only add reference to this file?

You can place hidden portlets in arbitrary PSML and then reference it from
there.

> How to do  this?

Check out "JSLINK Examples" portlet, it'll point you in the right direction.

> Is it possible to hide all those portlets(references) in customize view?

Hidden portlets are not listed in the customizer.

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: [EMAIL PROTECTED]
web: http://www.ngsltd.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with 1.42b installation of Jetspeed

2002-10-30 Thread Hugh Brien
Try the following URL if you want that war file. 
http://www.hughbrien.com/jetspeed/downloads/

This is a slow connection someone may want to post it somewhere else.
r
Hugh

-Original Message-
From: Hugh Brien [mailto:hpbrien@;comcast.net]
Sent: Tuesday, October 29, 2002 10:53 PM
To: Jetspeed Users List
Subject: RE: Problem with 1.42b installation of Jetspeed


I have had good luck building the source from the following cvs tag:

PRE-JAKARTA-UPDATE-2002-10-15

After that the developers started upgrading Torque and Fulcrum. If someone
want a copy of the jar I will upload it to my website.
http:/www.hughbrien.com/jetspeed/downloads/jetspeed-1.4b2-dev.war

I checked it out and ran build.bat.  I built in on a Win2K box with JDK
1.4.1_1.  Since I have duel Athelon 2200s it took about 40 seconds

Let me know if this versions works for you.

r,
Hugh


-Original Message-
From: Brian G. Riviere [mailto:briviere@;wi.rr.com]
Sent: Monday, October 28, 2002 8:31 PM
To: Jetspeed Users List
Subject: Problem with 1.42b installation of Jetspeed



Has anyone run into a problem with the 1.42b installation of jetspeed.  On
startup jetspeed is falling to load of the .xreg files in the ./conf
directory.  A castorregistryservice.java loadfregment method, and exception
is thrown for every .xreg file it tries to read.  Going back the 1.41b
version of castorregistryservice.java seemed to resolve the problem.

brian


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Calling another jsp

2002-10-30 Thread Vijay Kumar
Hi,

I donot know how to specify the jsp path in action attribute. In spite of
having the jsp (which is called) in the same folder (calling jsp) I am
getting resource not found. I know that calling a jsp directly will not
serve any purpose as it would not be displayed as a portlet.

Could anybody point me how to call someother jsp, but still display it as a
portlet.

Regards,
Vijay


The information contained in this e-mail transmission is confidential
and may be privileged. It is intended only for the addressee(s) stated 
above.  If you are not an addressee, any use, dissemination, distribution,
publication, or copying of the information contained in this e-mail is 
strictly prohibited. If you have received this e-mail in error, please
immediately notify our IT Department by telephone at 353-1-6769333 
or e-mail [EMAIL PROTECTED] and delete the e-mail from your 
system.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: #parse/#include in VelocityPortlet

2002-10-30 Thread Massimiliano Dessi
Parser a text file  locate in  a template root (WEB-INF\templates\vm)

example :
#include ("web.TXT")

velocity put the content of web.txt in a template

- Original Message -
From: "Stefan Kuhn" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 6:48 PM
Subject: #parse/#include in VelocityPortlet


> Hi everybody,
> I just tried to use #parse/#include directives in a velocity portlet, but
I
> didn't get it working. Does anybody have experiences with that ?
> Thanks
> Stefan
>
> --
> 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:

> For additional commands, e-mail:

>
>
> Questa email e' stata controllata dal RAV AntiVirus.
>
>


Questa email e' stata controllata dal RAV AntiVirus.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: #parse/#include in VelocityPortlet

2002-10-30 Thread Weaver, Scott
I use #parse all the time.  Are you sure that the template path you are using is 
correct?  Remember, #include and #parse directives require that the resource you want 
include be within the resource loader path.

Scott

> -Original Message-
> From: Stefan Kuhn [mailto:skuhn@;ice.mpg.de]
> Sent: Wednesday, October 30, 2002 12:49 PM
> To: Jetspeed Users List
> Subject: #parse/#include in VelocityPortlet
> 
> Hi everybody,
> I just tried to use #parse/#include directives in a velocity portlet, but
> I
> didn't get it working. Does anybody have experiences with that ?
> Thanks
> Stefan
> 
> --
> 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:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>



#parse/#include in VelocityPortlet

2002-10-30 Thread Stefan Kuhn
Hi everybody,
I just tried to use #parse/#include directives in a velocity portlet, but I 
didn't get it working. Does anybody have experiences with that ?
Thanks
Stefan

-- 
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:   
For additional commands, e-mail: 




RE: Jetspeed and Netscape 4.7

2002-10-30 Thread ebardet
A quick hack would be upgrading Netscape! If this is not an acceptable
solution for you, you can dig into the JSP or VM files and get rid of some
tables.

E

-Original Message-
From: NAJMAN Yves - SOP ( [EMAIL PROTECTED] )
[mailto:YNajman@;sophia-antipolis.sema.slb.com]
Sent: 30 October 2002 10:23
To: Jetspeed Users List (E-mail)
Subject: Jetspeed and Netscape 4.7


Because Jetspeed construct pages with many HTML tables, Netscape 4 takes a
long time (minutes) to display a rich page (many portlets). As far as I
know this is a problem in Netscape that have an horrible algorythm for
imbricated tables.

Did anyone find a quick hack that would make Jetspeed usable under Netscape
4.7

___
Yves Najman
phone : +33 4 9295 2330
fax : +33 4 9295 2262
[EMAIL PROTECTED]
SchlumbergerSema
Le Millénium - 150, allée Pierre Ziller
B.P. 279
06905 Sophia Antipolis Cedex
FRANCE 

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Jetspeed and Netscape 4.7

2002-10-30 Thread Luta, Raphael (VUN)
One possible way would be to try to optimize the number of tables by
making assumptions about the context in which a specific template is
rendered (for example with controls). In the current setup, each 
controller, control and portlet takes no risk with its context and
sets up its own HTML table to ensure display consistency.

Another way to possibly optimize the layout for NS, is simply to try and
kill the outer most table (spanning the complete page) and rely on
 or  tags + Javascript to setup the overall layout.
The real performance killer in NS table implementation is the un-dimensioned
outer tables, as NS4 has a completely screwed algorithm to compute the
table dimensions.

However, none of these solutions are really simple to setup.

> -Message d'origine-
> De : NAJMAN Yves - SOP ( [EMAIL PROTECTED] )
> [mailto:YNajman@;sophia-antipolis.sema.slb.com]
> Envoyé : mercredi 30 octobre 2002 11:23
> À : Jetspeed Users List (E-mail)
> Objet : Jetspeed and Netscape 4.7
> 
> 
> Because Jetspeed construct pages with many HTML tables, 
> Netscape 4 takes a
> long time (minutes) to display a rich page (many 
> portlets). As far as I
> know this is a problem in Netscape that have an horrible algorythm for
> imbricated tables.
> 
> Did anyone find a quick hack that would make Jetspeed usable 
> under Netscape
> 4.7
> 
> ___
> Yves Najman
> phone : +33 4 9295 2330
> fax : +33 4 9295 2262
> [EMAIL PROTECTED]
> SchlumbergerSema
> Le Millénium - 150, allée Pierre Ziller
> B.P. 279
> 06905 Sophia Antipolis Cedex
> FRANCE 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Hidden portlets

2002-10-30 Thread Łukasz Olek
Hi!
What's the best place to put all the hidden portlets? Is it possible to
put it in some PSML and then only add reference to this file? How to do
this?
Is it possible to hide all those portlets(references) in customize view?
Thanks for any help
Greetings
Lukasz Olek



Jetspeed and Netscape 4.7

2002-10-30 Thread NAJMAN Yves - SOP ( [EMAIL PROTECTED] )
Because Jetspeed construct pages with many HTML tables, Netscape 4 takes a
long time (minutes) to display a rich page (many portlets). As far as I
know this is a problem in Netscape that have an horrible algorythm for
imbricated tables.

Did anyone find a quick hack that would make Jetspeed usable under Netscape
4.7

___
Yves Najman
phone : +33 4 9295 2330
fax : +33 4 9295 2262
[EMAIL PROTECTED]
SchlumbergerSema
Le Millénium - 150, allée Pierre Ziller
B.P. 279
06905 Sophia Antipolis Cedex
FRANCE 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Url invalid

2002-10-30 Thread Luta, Raphael (VUN)
And clean your datasource.properties if you have activated the BadURLDaemon.

> -Message d'origine-
> De : Hugh Brien [mailto:hpbrien@;comcast.net]
> Envoyé : mercredi 30 octobre 2002 05:24
> À : Jetspeed Users List
> Objet : RE: Url invalid
> 
> 
> I have seen that issue before.  Try deleting all entryies from the
> WEB-INF/cache directory before you start your app server
> 
> -Original Message-
> From: Raffaele Ragni [mailto:raffaele.ragni@;cone.it]
> Sent: Tuesday, October 29, 2002 12:50 PM
> To: Jetspeed Users List
> Subject: Url invalid
> 
> 
> Hi, i have more than a server, and only in one of those i get 
> an error. This
> error pops up on any rss portlet (so i think when the app tries to get
> something from the outside), i tried to check if it was the 
> machine that
> coudln't get any files, but that isn't te problem, i assume 
> that is tomcat
> or jetspeed.
> 
> Here the error: (the url is *not* invalid)
> 
> org.apache.jetspeed.portal.PortletException: The following URL is not
> available because it is considered invalid:
> http://www.bbc.co.uk/syndication/feeds/news/ukfs_news/world/rss091.xml
>   at
> org.apache.jetspeed.portal.portlets.NewRSSPortlet.init(NewRSSP
> ortlet.java:16
> 9)
>   at
> org.apache.jetspeed.services.portletfactory.JetspeedPortletFac
> toryService.ge
> tPortlet(JetspeedPortletFactoryService.java:334)
>   at
> org.apache.jetspeed.services.portletfactory.JetspeedPortletFac
> toryService.ge
> tPortlet(JetspeedPortletFactoryService.java:157)
>   at
> org.apache.jetspeed.services.PortletFactory.getPortlet(Portlet
> Factory.java:9
> 2)
>   at
> org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolk
> itService.getS
> et(JetspeedPortalToolkitService.java:426)
>   at
> org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolk
> itService.getS
> et(JetspeedPortalToolkitService.java:407)
>   at
> org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolk
> itService.getS
> et(JetspeedPortalToolkitService.java:407)
>   at
> org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolk
> itService.getS
> et(JetspeedPortalToolkitService.java:407)
>   at
> org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolk
> itService.getS
> et(JetspeedPortalToolkitService.java:407)
>   at
> org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolk
> itService.getS
> et(JetspeedPortalToolkitService.java:363)
>   at
> org.apache.jetspeed.services.PortalToolkit.getSet(PortalToolki
> t.java:165)
>   at
> org.apache.jetspeed.util.template.JetspeedTool.getPane(Jetspee
> dTool.java:167
> )
>   at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl
> .java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTM
> ethod.java:259
> )
>   at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(A
> STReference.ja
> va:207)
>   at
> org.apache.velocity.runtime.parser.node.ASTReference.render(AS
> TReference.jav
> a:250)
>   at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlo
> ck.java:94)
>   at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(Simp
> leNode.java:27
> 1)
>   at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(
> ASTIfStatement
> .java:128)
>   at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(Simp
> leNode.java:27
> 1)
>   at org.apache.velocity.Template.merge(Template.java:296)
>   at 
> org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
>   at 
> org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
>   at
> org.apache.turbine.services.velocity.TurbineVelocityService.de
> codeRequest(Tu
> rbineVelocityService.java:485)
>   at
> org.apache.turbine.services.velocity.TurbineVelocityService.ha
> ndleRequest(Tu
> rbineVelocityService.java:327)
>   at
> org.apache.turbine.services.velocity.TurbineVelocity.handleReq
> uest(TurbineVe
> locity.java:146)
>   at
> org.apache.turbine.modules.screens.VelocityDirectScreen.buildT
> emplate(Veloci
> tyDirectScreen.java:123)
>   at
> org.apache.turbine.modules.screens.TemplateScreen.doBuild(Temp
> lateScreen.jav
> a:130)
>   at org.apache.turbine.modules.Screen.build(Screen.java:99)
>   at 
> org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:129)
>   at
> org.apache.turbine.util.template.TemplateScreen.toString(Templ
> ateScreen.java
> :126)
>   at
> org.apache.velocity.runtime.parser.node.ASTReference.render(AS
> TReference.jav
> a:321)
>   at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(Simp
> leNode.java:27
> 1)
>   at org.apache.velocity.Template.merge(Template.java:296)
>   at 
> org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
>   at 
> org.apache.vel

RE: RE: Registry-CastorRegistryService

2002-10-30 Thread Luta, Raphael (VUN)
I'm currently making updates to the Registry code and as I can tell 
everything looks right, can you send the exact code you're using to
add a new entry ?

I'm also adding a new method that should help writing portlet definitions
programatically:

RegistryEntry Registry.createEntry(registryName)

It's a factory like method that will return a newly created Entry
implementation
compatible with the registry you're using.

> -Message d'origine-
> De : Hugh Brien [mailto:hpbrien@;comcast.net]
> Envoyé : mercredi 30 octobre 2002 05:16
> À : Jetspeed Users List
> Objet : RE: RE: Registry-CastorRegistryService
> 
> 
> 
> Check out the test classes under the following package:
> 
> org.apache.jetspeed.services.registry
> 
> This may point you in the right direction.
> 
> r,
> Hugh
> 
> -Original Message-
> From: Alfer, Daniel [mailto:daniel.alfer@;volkswagen.de]
> Sent: Tuesday, October 29, 2002 8:39 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: RE: Registry-CastorRegistryService
> 
> 
> Hey!
> 
> Thanks Raphael and Hugh,
> 
> now it works, but i´ve still the problem that the regestry 
> changes or not
> permanent.
> How it is possible to store new RegistryEntry or update RegistryEntry.
> First, i thought that jetspeed automaticly store them before 
> shutting down
> the webserver. But it works only with old entries.
> 
> Daniel
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Security - User Roles

2002-10-30 Thread Łukasz Olek
Hi!
Ju must catch the exception that is thrown by getRoles():

try {
  Iterator roles =
 
JetspeedRoleManagement.getRoles(rundata.getJetspeedUser().getUserName())
;
}
catch (JetspeedSecurityException ex) {
 ...  //do something with ex
}

Greetings
Lukasz Olek

> -Original Message-
> From: Shorney, Rob [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 30, 2002 9:13 AM
> To: 'Jetspeed Users List'
> Subject: RE: Security - User Roles
> 
> Hi,
> 
> Many thanks for this, however when I put this code in and compile I
get
> the
> following error.
> 
> I have put the code in the getContent() method
> 
> "UserDetails.java": Error #: 360 : unreported exception:
> org.apache.jetspeed.services.security.JetspeedSecurityException; must
be
> caught or declared to be thrown at line 35, column 45
> 
> 
> Regards
> 
> Rob Shorney
> PDS - Local Government - Front Office Development Team
> Northgate Information Solutions
>

--
> --
> 
> 
> 
> -Original Message-
> From: Maciej Dziergwa [mailto:[EMAIL PROTECTED]]
> Sent: 29 October 2002 21:30
> To: Jetspeed Users List
> Subject: Re: Security - User Roles
> 
> 
> Hi,
> 
> Try this:
> 
> Iterator roles =
>
JetspeedRoleManagement.getRoles(rundata.getJetspeedUser().getUserName())
;
> 
> MaciekD
> 
> 
> 
> > Hi,
> >
> > Please could someone supply some sample code on how to retrieve what
> roles
> a
> > user belongs to.
> >
> > I need to be able to determine this in either the init () or the
> > getContent() methods as this will determine what html page to
display in
> the
> > portlet.
> >
> > Many thanks in advance.
> >
> >
> > Regards
> >
> > Rob Shorney
> > PDS - Local Government - Front Office Development Team
> > Northgate Information Solutions
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> This email is sent on behalf of Northgate Information Solutions UK
Limited
> ("Northgate") and is strictly confidential and intended solely for the
> addressee(s).  It may contain personal and confidential information
and as
> such may be protected by the Data Protection Act 1998.
> 
> If you are not the intended recipient of this email you must: (i) not
> disclose, copy or distribute its contents to any other person nor use
its
> contents in any way or you may be acting unlawfully;  (ii) contact
> Northgate immediately on +44 (0)1442 232424 quoting the name of the
sender
> and the addressee then delete it from your system.
> 
> Any views or opinions expressed within this email are those of the
author,
> and do not necessarily represent those of Northgate.
> 
> Northgate has scanned this email for viruses but does not accept any
> responsibility once this email has been transmitted.  You should scan
> attachments (if any) for viruses.
> 
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Security - User Roles

2002-10-30 Thread Shorney, Rob
Hi,

Again many thanks.

I have now put this into a try catch and that has sorted it out.

However, how do I get the description of the role, at present I have the
following

try
{
  Iterator roles =
JetspeedRoleManagement.getRoles(runData.getUser().getUserName());
  while (roles.hasNext()) {
tr = (org.apache.turbine.om.security.TurbineRole) roles.next();
text.append("role = " + tr.getName());
text.append("");
  }
}
catch (org.apache.jetspeed.services.security.JetspeedSecurityException
jse)
{

which displays the following

role = org.apache.jetspeed.om.security.turbine.TurbineRole@1f
role = org.apache.jetspeed.om.security.turbine.TurbineRole@7c


Regards

Rob Shorney
PDS - Local Government - Front Office Development Team
Northgate Information Solutions




-Original Message-
From: Raffaele Ragni [mailto:raffaele.ragni@;cone.it] 
Sent: 30 October 2002 08:27
To: Jetspeed Users List
Subject: Re: Security - User Roles

Umm, if i remember right it seems that you are using a function that can
thrown an Exception, so you need to catch it or throw too.


|- Raffaele Ragni < [EMAIL PROTECTED] >
|- Tel 071 2900854 / Fax 071 2908551 / Cel 333 3659770
|- CONE Sistemi Informativi


- Original Message -
From: "Shorney, Rob" <[EMAIL PROTECTED]>
To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 9:13 AM
Subject: RE: Security - User Roles


> Hi,
>
> Many thanks for this, however when I put this code in and compile I get
the
> following error.
>
> I have put the code in the getContent() method
>
> "UserDetails.java": Error #: 360 : unreported exception:
> org.apache.jetspeed.services.security.JetspeedSecurityException; must be
> caught or declared to be thrown at line 35, column 45
>
>
> Regards
>
> Rob Shorney
> PDS - Local Government - Front Office Development Team
> Northgate Information Solutions
> --
--
> 
>
>
> -Original Message-
> From: Maciej Dziergwa [mailto:mack5@;icpnet.pl]
> Sent: 29 October 2002 21:30
> To: Jetspeed Users List
> Subject: Re: Security - User Roles
>
>
> Hi,
>
> Try this:
>
> Iterator roles =
> JetspeedRoleManagement.getRoles(rundata.getJetspeedUser().getUserName());
>
> MaciekD
>
>
>
> > Hi,
> >
> > Please could someone supply some sample code on how to retrieve what
roles
> a
> > user belongs to.
> >
> > I need to be able to determine this in either the init () or the
> > getContent() methods as this will determine what html page to display in
> the
> > portlet.
> >
> > Many thanks in advance.
> >
> >
> > Regards
> >
> > Rob Shorney
> > PDS - Local Government - Front Office Development Team
> > Northgate Information Solutions
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> This email is sent on behalf of Northgate Information Solutions UK Limited
("Northgate") and is strictly confidential and intended solely for the
addressee(s).  It may contain personal and confidential information and as
such may be protected by the Data Protection Act 1998.
>
> If you are not the intended recipient of this email you must: (i) not
disclose, copy or distribute its contents to any other person nor use its
contents in any way or you may be acting unlawfully;  (ii) contact Northgate
immediately on +44 (0)1442 232424 quoting the name of the sender and the
addressee then delete it from your system.
>
> Any views or opinions expressed within this email are those of the author,
and do not necessarily represent those of Northgate.
>
> Northgate has scanned this email for viruses but does not accept any
responsibility once this email has been transmitted.  You should scan
attachments (if any) for viruses.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Security - User Roles

2002-10-30 Thread Raffaele Ragni
Umm, if i remember right it seems that you are using a function that can
thrown an Exception, so you need to catch it or throw too.


|- Raffaele Ragni < [EMAIL PROTECTED] >
|- Tel 071 2900854 / Fax 071 2908551 / Cel 333 3659770
|- CONE Sistemi Informativi


- Original Message -
From: "Shorney, Rob" <[EMAIL PROTECTED]>
To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 9:13 AM
Subject: RE: Security - User Roles


> Hi,
>
> Many thanks for this, however when I put this code in and compile I get
the
> following error.
>
> I have put the code in the getContent() method
>
> "UserDetails.java": Error #: 360 : unreported exception:
> org.apache.jetspeed.services.security.JetspeedSecurityException; must be
> caught or declared to be thrown at line 35, column 45
>
>
> Regards
>
> Rob Shorney
> PDS - Local Government - Front Office Development Team
> Northgate Information Solutions
> --
--
> 
>
>
> -Original Message-
> From: Maciej Dziergwa [mailto:mack5@;icpnet.pl]
> Sent: 29 October 2002 21:30
> To: Jetspeed Users List
> Subject: Re: Security - User Roles
>
>
> Hi,
>
> Try this:
>
> Iterator roles =
> JetspeedRoleManagement.getRoles(rundata.getJetspeedUser().getUserName());
>
> MaciekD
>
>
>
> > Hi,
> >
> > Please could someone supply some sample code on how to retrieve what
roles
> a
> > user belongs to.
> >
> > I need to be able to determine this in either the init () or the
> > getContent() methods as this will determine what html page to display in
> the
> > portlet.
> >
> > Many thanks in advance.
> >
> >
> > Regards
> >
> > Rob Shorney
> > PDS - Local Government - Front Office Development Team
> > Northgate Information Solutions
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> This email is sent on behalf of Northgate Information Solutions UK Limited
("Northgate") and is strictly confidential and intended solely for the
addressee(s).  It may contain personal and confidential information and as
such may be protected by the Data Protection Act 1998.
>
> If you are not the intended recipient of this email you must: (i) not
disclose, copy or distribute its contents to any other person nor use its
contents in any way or you may be acting unlawfully;  (ii) contact Northgate
immediately on +44 (0)1442 232424 quoting the name of the sender and the
addressee then delete it from your system.
>
> Any views or opinions expressed within this email are those of the author,
and do not necessarily represent those of Northgate.
>
> Northgate has scanned this email for viruses but does not accept any
responsibility once this email has been transmitted.  You should scan
attachments (if any) for viruses.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Url invalid

2002-10-30 Thread Raffaele Ragni
ok, i can't restart it now so i will see, though i've assumed that was
something with cache, thanks


|- Raffaele Ragni < [EMAIL PROTECTED] >
|- Tel 071 2900854 / Fax 071 2908551 / Cel 333 3659770
|- CONE Sistemi Informativi


- Original Message -
From: "Hugh Brien" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 5:24 AM
Subject: RE: Url invalid


> I have seen that issue before.  Try deleting all entryies from the
> WEB-INF/cache directory before you start your app server
>
> -Original Message-
> From: Raffaele Ragni [mailto:raffaele.ragni@;cone.it]
> Sent: Tuesday, October 29, 2002 12:50 PM
> To: Jetspeed Users List
> Subject: Url invalid
>
>
> Hi, i have more than a server, and only in one of those i get an error.
This
> error pops up on any rss portlet (so i think when the app tries to get
> something from the outside), i tried to check if it was the machine that
> coudln't get any files, but that isn't te problem, i assume that is tomcat
> or jetspeed.
>
> Here the error: (the url is *not* invalid)
>
> org.apache.jetspeed.portal.PortletException: The following URL is not
> available because it is considered invalid:
> http://www.bbc.co.uk/syndication/feeds/news/ukfs_news/world/rss091.xml
> at
>
org.apache.jetspeed.portal.portlets.NewRSSPortlet.init(NewRSSPortlet.java:16
> 9)
> at
>
org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.ge
> tPortlet(JetspeedPortletFactoryService.java:334)
> at
>
org.apache.jetspeed.services.portletfactory.JetspeedPortletFactoryService.ge
> tPortlet(JetspeedPortletFactoryService.java:157)
> at
>
org.apache.jetspeed.services.PortletFactory.getPortlet(PortletFactory.java:9
> 2)
> at
>
org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolkitService.getS
> et(JetspeedPortalToolkitService.java:426)
> at
>
org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolkitService.getS
> et(JetspeedPortalToolkitService.java:407)
> at
>
org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolkitService.getS
> et(JetspeedPortalToolkitService.java:407)
> at
>
org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolkitService.getS
> et(JetspeedPortalToolkitService.java:407)
> at
>
org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolkitService.getS
> et(JetspeedPortalToolkitService.java:407)
> at
>
org.apache.jetspeed.services.portaltoolkit.JetspeedPortalToolkitService.getS
> et(JetspeedPortalToolkitService.java:363)
> at
> org.apache.jetspeed.services.PortalToolkit.getSet(PortalToolkit.java:165)
> at
>
org.apache.jetspeed.util.template.JetspeedTool.getPane(JetspeedTool.java:167
> )
> at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259
> )
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
> va:207)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
> a:250)
> at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
> at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:27
> 1)
> at
>
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement
> .java:128)
> at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:27
> 1)
> at org.apache.velocity.Template.merge(Template.java:296)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(Tu
> rbineVelocityService.java:485)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(Tu
> rbineVelocityService.java:327)
> at
>
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVe
> locity.java:146)
> at
>
org.apache.turbine.modules.screens.VelocityDirectScreen.buildTemplate(Veloci
> tyDirectScreen.java:123)
> at
>
org.apache.turbine.modules.screens.TemplateScreen.doBuild(TemplateScreen.jav
> a:130)
> at org.apache.turbine.modules.Screen.build(Screen.java:99)
> at org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:129)
> at
>
org.apache.turbine.util.template.TemplateScreen.toString(TemplateScreen.java
> :126)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
> a:321)
> at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:27
> 1)
> at org.apache.velocity.Template.merge(Template.java:296)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(Tu
> rbineVelocityService.java:485)
> at
>
org.apache.

RE: Security - User Roles

2002-10-30 Thread Shorney, Rob
Hi,

Many thanks for this, however when I put this code in and compile I get the
following error.

I have put the code in the getContent() method

"UserDetails.java": Error #: 360 : unreported exception:
org.apache.jetspeed.services.security.JetspeedSecurityException; must be
caught or declared to be thrown at line 35, column 45


Regards

Rob Shorney
PDS - Local Government - Front Office Development Team
Northgate Information Solutions




-Original Message-
From: Maciej Dziergwa [mailto:mack5@;icpnet.pl] 
Sent: 29 October 2002 21:30
To: Jetspeed Users List
Subject: Re: Security - User Roles


Hi,

Try this:

Iterator roles = 
JetspeedRoleManagement.getRoles(rundata.getJetspeedUser().getUserName());

MaciekD



> Hi,
> 
> Please could someone supply some sample code on how to retrieve what roles
a
> user belongs to.
> 
> I need to be able to determine this in either the init () or the
> getContent() methods as this will determine what html page to display in
the
> portlet.
> 
> Many thanks in advance.
> 
> 
> Regards
> 
> Rob Shorney
> PDS - Local Government - Front Office Development Team
> Northgate Information Solutions


--
To unsubscribe, e-mail:

For additional commands, e-mail:



 
This email is sent on behalf of Northgate Information Solutions UK Limited 
("Northgate") and is strictly confidential and intended solely for the addressee(s).  
It may contain personal and confidential information and as such may be protected by 
the Data Protection Act 1998.

If you are not the intended recipient of this email you must: (i) not disclose, copy 
or distribute its contents to any other person nor use its contents in any way or you 
may be acting unlawfully;  (ii) contact Northgate immediately on +44 (0)1442 232424 
quoting the name of the sender and the addressee then delete it from your system.

Any views or opinions expressed within this email are those of the author, and do not 
necessarily represent those of Northgate.

Northgate has scanned this email for viruses but does not accept any responsibility 
once this email has been transmitted.  You should scan attachments (if any) for 
viruses.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: