RE: JSP Action being called multiple times

2003-10-02 Thread Holger Dewes
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 01, 2003 7:34 PM
 To: [EMAIL PROTECTED]
 Subject: JSP Action being called multiple times
 
 
 
 Hi Folks,
 
 I created three very simply JSP Portlets (one example shown 
 below.)   When
 the user clicks on any of the URLs in the portlet.  I want 
 the DynamicJspPortletAction to be called, and then I would 
 like the screen to refresh.  (the DynamicJspPortletAction is 
 reading the dynamicPort variable from the request, and then 
 setting the attribute into the session.  When the screen 
 refreshes, a different portlet, will read the value from the 
 session and display the appropriate html file.)
 
 I keep running into two issues with this design.  1) The 
 first issue -- Whenever I click on one url the 
 DynamicJspPortletAction is being called THREE times.  It's 
 called once for each JSP portlet I have added to my three 
 column template.

That's as it should be. Every time the screen is displayed, the actions
of all portlets are called. If you have three portlets with the same
action class, that class will be called three times. What you can do,
however, is to send an event to one specific portlet. In Velocity, I do
it like this:

$jslink.Template.addQueryData(eventSubmit_doNext,
1).addQueryData(js_peid, $portlet.ID)

I think it's done in a similar way in JSP. So the url must look like
this (e.g.)

...?eventSubmit_doNext=1js_peid=foobar

Then the doNext method in your action will be called only for that
portlet.


 2)  The second issue -- I cannot guarantee 
 the action is run prior to the refresh of the screen.

That's right, and that's why you shouldn't use events like I told you in
the answer to your first question :-), but what you must do is evaluate
the request in the second portlet, not have the first portlet put it in
the session for the second portlet.

Cheers
-- 
Holger Dewes


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Xalan

2003-10-02 Thread Marek Dbrowski
Hello

I have problem:

problem in SAX transform: org.apache.xml.utils.WrappedRuntimeException: 
The output format must have a 
'{http://xml.apache.org/xalan}content-handler' property!

This error is i.e. in JetspeedDocumentation portlet.
I use tomcat-4.1.27 and jetspeed-1.4-b4
Please help.
Marek


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Jetspeed with an Object Oriented DB for managing users and ro les.

2003-10-02 Thread Doherty, Sean
We haven't used an OODB, but we do have a company J2EE-based infrastructure
that provides  security for all our applications.  I wrote adapters to
delegate the Jetspeed security requests to our infrastructure.

I needed to provide implementations for the PortalAuthentication,
GroupManagment, PermissionManagement, RoleManagement, UserManagement, and
CredentialManagement (these last two were implemented by a single class).
For these interfaces, I created a class that extended the TurbineBaseService
class and implemented the appropriate interface(s).  I wound up with the
following classes (XelusAuthentication, XelusGroupManagement,
XelusPermissionManagement, XelusRoleManagement, and XelusUserManagement.

I also needed to create a XelusUser class that extends the
org.apache.turbine.om.security.SecurityObject class implements the
JetspeedUser interface to map it to our infrastructure's SecurityPrincipal
class.

I also needed to create a XelusJetspeedSecurityService class that extends
the JetspeedDBSecurityService class to delegate disabled account checking to
our infrastructure.

You specify your replacement classes in the JetspeedSecurity.properties file
in the WEB-INF/conf.  Since the last definition wins, we created an override
section at the end (to make future updates easier).

Hope this helps -- it sounds like a lot but it wasn't too bad.

Regards,
Sean Doherty

-Original Message-
From: Jesús María Román Ruiz del Moral [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 3:26 AM
To: [EMAIL PROTECTED]
Subject: Jetspeed with an Object Oriented DB for managing users and
roles.


Hi, 

Does anybody use jetspeed authentication and authoritation with an objet 
oriented dababase instead of one of the given implementations form 
relational databases?

Any hint on how to write and plug the suitable services UserManagement, 
RoleManagement...?

Thanks.


Saludos.
  jroman

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Xalan

2003-10-02 Thread Jeremy Ford
This may actually be a problem in regards to JDK 1.4.2 and the version of 
Xalan that is bundled with it.  If you search the mail archives and 
bugzilla, I believe that there was a possible solution posted.  It dealt 
with using the endorsed directories I believe.

Jeremy


From: Marek D±browski [EMAIL PROTECTED]
Reply-To: Jetspeed Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Xalan
Date: Thu, 02 Oct 2003 11:09:53 +0200
Hello

I have problem:

problem in SAX transform: org.apache.xml.utils.WrappedRuntimeException: The 
output format must have a '{http://xml.apache.org/xalan}content-handler' 
property!

This error is i.e. in JetspeedDocumentation portlet.
I use tomcat-4.1.27 and jetspeed-1.4-b4
Please help.
Marek


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add MSN 8 Internet Software to your existing Internet access and enjoy 
patented spam protection and more.  Sign up now!   
http://join.msn.com/?page=dept/byoa

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to open link(href) in same parent portlet window

2003-10-02 Thread Dev
Hi,

My current portlet has many different links(urls). And
when user clicks on that link, I want to get it open 
within same portlet window.

How should I wrap these links(urls) so that they will
open in same portlet frame ?

thanks,
j


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to open link(href) in same parent portlet window

2003-10-02 Thread Christophe Lombart
Can you give more info ?
What kind of url ? do you want to use another template for the portlet 
or redirect to an external site ?



Dev wrote:

Hi,

My current portlet has many different links(urls). And
when user clicks on that link, I want to get it open 
within same portlet window.

How should I wrap these links(urls) so that they will
open in same portlet frame ?
thanks,
j
__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to open link(href) in same parent portlet window

2003-10-02 Thread Dev
Hi Chris,

I want to redirect to external site.

I know we can use jsForward to forward control to
different pane/portlet.

But not able to figure out, how can I redirect the
output of external url within same portlet window.

thanks,
d
--- Christophe Lombart [EMAIL PROTECTED]
wrote:
 Can you give more info ?
 What kind of url ? do you want to use another
 template for the portlet 
 or redirect to an external site ?
 
 
 
 Dev wrote:
 
 Hi,
 
 My current portlet has many different links(urls).
 And
 when user clicks on that link, I want to get it
 open 
 within same portlet window.
 
 How should I wrap these links(urls) so that they
 will
 open in same portlet frame ?
 
 thanks,
 j
 
 
 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product
 search
 http://shopping.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
   
 
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jetspeed through SSO/Proxy

2003-10-02 Thread Tim O'Donnell
Hi all,

I'm experiencing some strange behavior I'm hoping someone might 
recognize and clue me in to.

I'm using jetspeed and currently have it integrated (via a custom 
Authentication class) with an SSO product. The SSO solution is 
essentially a proxy which adds some data to the headers and passes the 
requests onto Jetspeed -- the url, thus, is changed a bit. Through SSO, 
I access it via:

http://sso/desktop

and without SSO, via:

http://myserver:8080/

NOTE: I moved jetspeed to the root context in tomcat. That ok?

The strange behavior I'm seeing is that when I access jetspeed through 
SSO (proxy), some of the portal breaks. Specifically, under the 
Customize screens, moving portlets around, changing the order of tab 
panes, changing skins -- all this doesn't work. In some cases it fails 
to cause any change and in other (many) cases I get a screen that says:

$jetspeed.getCustomizer($data.Customized).getContent($data)

Interestingly, if I access jetspeed OUTSIDE of sso (the second url), 
everything works flawlessly.

Does this make sense to anyone? Is there any reason why these sort of 
things break when accessed through a proxy server? Under what scenarios 
would I get the above unprocessed velocity template (e.g. lost session, 
internal error or some kind, etc)?

If anyone has ANY ideas, I'd really love to hear them. I've been 
banging my head against the wall for the last few days trying to figure 
it out.

Thanks for your time,

Tim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]