Re: Programmatically Requesting a Jetspeed Page

2004-05-29 Thread Raphaël Luta
Le 25 mai 04, à 15:55, Jason Shindler a écrit :
Hello,
I wish to email the contents of a page from inside of my Jetspeed
portlet. The page requires authentication, so I'm passing the current
session's JSESSIONID as a cookie so my program can be authenticated. 
For
some reason this is not working:

snip code
The code requests the page, but returns a login screen instead of the
page I want. I believe it is somehow ignoring the cookie, but can't put
my finger on why. Any ideas?
I'm not sure exactly how you have constructed your email module but I 
would
strongly advise you *against* using sub-HTTP connections to generate 
your
mail messages.

Since you seem ti be able to rely on the user session, your code is 
probably
called during a user request, in which case Jetspeed will have populated
the RunData object with all the necessary context.

Then define a custom velocity template for your mail and in this 
template use
$jetspeed.getPane(pagename). It should work but you will want to save
the Profile stored in rundata before rendering the velocity template 
and restore
it after because $jetspeed.getPane() will set the page globally for the 
request.

Make sure to take a look at
src/java/org/apache/jetspeed/util/template/JetspeedTool.java
webapp/WEB-INF/templates/vm/screens/html/Home.vm
to have a better idea of what you can do with this JetspeedTool (viewed 
as
$jetspeed in Velocity templates)

--
Raphaël Luta - [EMAIL PROTECTED]
Apache Jetspeed - Enterprise Portal in Java
http://portals.apache.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: dynamic Uri does not work while manipulating multiple psmls

2004-05-29 Thread Raphaël Luta
Le 27 mai 04, à 15:10, Archana Turaga a écrit :
Hi,
 I have two psml files default.psml (the one that comes up by default  
when the user logs in) and infoview.psml (navigated to using  
jetspeed:forward from one of the portlets in default.psml).

I have some portlets declared in infoview.psml that use setTemplate in  
their action classes to navigate to another jsp.
As a sample there is the following href link in one of our jsps:
 a  
href=jetspeed:dynamicUri/? 
eventSubmit_doPortview=portviewjs_peid=%=jspeid%IPAddr=%=ipAddr% 
Port=%=p% 100%s/a

Have you looked at the generated link in your HTML markup ? Is it well  
formed ? jetspeed:dynamicUri may contain it's own
query parameters in which case yours will never be used...

The above link would basically invoke a doPortview method in the  
action class declared for this jsp. The problem that i see here is  
that when i click on this link it takes me right back to the home page  
(default.psml). When i do a system.out in the java action class it is  
never executed. It almost seems like it needs to be told that it  
belongs to infoview.psml.

If this link is not used in the inforview page, then yes you need to  
explicitely set it in a page parameter or better use
jetspeed:portletlink psml=infoview.psml jspeid=%=jspeid%:/

Also if there are submit buttons whose action is defined as dynamicUri  
those also do not seem to work.

Does anybody know what is going on here? How does dynamicUri tag work  
in jsp?

You probably try to activate a portlet from a different PSML page. By  
default Jetspeed only looks for portlets in the
currently loaded page.

--
Raphaël Luta - [EMAIL PROTECTED]
Apache Jetspeed - Enterprise Portal in Java
http://portals.apache.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: userbrowser portlet not working completely

2004-05-29 Thread Raphaël Luta
Le 27 mai 04, à 23:58, Archana Turaga a écrit :
Hi,
  I logged in as admin/jetspeed. Went to the Admin tab and added the 
Userbrowser to the list of menus there. When i click on the Roles, 
Groups or any of the links the resulting forms never show up.

When i navigate to the security tab and click the same links in the 
user browser there they all seem to work fine. I opened the psml file 
and saw that all the target panes were declared there with menustate 
value set to closed.

When we are using the customizer to add a portlet how can we make sure 
that these target panes are added with the menustate set to closed?

The default customizer does not know how to handle this automatically.
I would appreciate any response with regard to this query. I'm stuck 
(badly stuck) since we have a lot of portlets with links to other 
portlets and we want to use the customizer to add them. How can we 
accomplish the specified requirement in the current jetspeed 
framework?

I'm not sure exactly what you're trying to implement but there's 
probably a way to do it :) Would you care to elaborate on your
functional and layout requirements ?

--
Raphaël Luta - [EMAIL PROTECTED]
Apache Jetspeed - Enterprise Portal in Java
http://portals.apache.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


maven jetspeed:hotdeploy

2004-05-29 Thread numa memi
Hi every one,
 
i am newbie with jetspeed , i changed my configuration file and i used my.properties 

 
Both \rep and \org are in my../myapp/WEB-INF/classes  folder
Under the \rep there are \modules , \om and \portal folders
Under \modules there is \action folder.
 
I could'nt compile my project. My java files action are located in the \action folder.
i used maven jetspeed:hotdeploy to compile into my project. I got the following errors:
XXX java class does not exist (where XXX is the java class name),.. the .jar file are 
in the lib directory though  !
 
am i missing something ? should i modify the maven.xml or other ?
 
thanks for your help
 
numa




-
Post your free ad now! Yahoo! Canada Personals