Re: Problem with a tutorial's CoffeeBrowser portlet !
Try this: "TutorialCoffeesBrowser" "CoffeesForm" bye Matteo Setti --- Michael Muller <[EMAIL PROTECTED]> wrote: > Hi Jetspeed Veterans, > > I'm looking at the tutorial's portltets: the > CoffeeBrowser portlet. > But once deployed the portlet is empty... > > There was an error because in t9-portlets.xreg > references the class portlets.CoffeesBrowserAction > which dosn't exist, so I renamed it to > portlets.CafeBrowserAction (which is the new name > since JS-1.5). > > But it still dosn't work, the error is described in > jetspeed.log : > 2004-06-08 23:21:52,216 [http8080-Processor23] > ERROR GenericMVCPortlet - GenericMVCPortlet - error > executing action > java.lang.ClassNotFoundException: > Requested Action not found: > portlets.CafeBrowserAction > Turbine looked in the following > modules.packages path: > [org.apache.jetspeed.modules, > org.apache.turbine.modules] > at > org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174) > > Turbine didn't look at the package > org.apache.jetspeed.tutorial.modules.actions.portlets, > where the class is located. > What should I modify so that the turbine looks at > the jetspeed.tutorial classpath, or is there > something else to do ? > > Thanks in advance, > > Michael Muller __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to add Portlet from Java Program.
Hi All, We have a requirement to add portlet from our java program This java program is not inside Jetspeed application. We will be having a servlet and we will redirect to the Jetspeed portal application. After redirection is done, the portlet if not present in the profile of the user should be added. If the user doesn't have profile then portal application automatically creates profile and portlet gets added. But if the user already has a profile and if he doesn't have the portlet, we need to add the portlet. Is there a way to add the portlet to the user profile dynamically ? Any API's to do this? Please let me know if anyone have worked on these type of requirement or have an idea about this. Thanks & Regards, Sunil. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with a tutorial's CoffeeBrowser portlet !
Hi Jetspeed Veterans, I'm looking at the tutorial's portltets: the CoffeeBrowser portlet. But once deployed the portlet is empty... There was an error because in t9-portlets.xreg references the class portlets.CoffeesBrowserAction which dosn't exist, so I renamed it to portlets.CafeBrowserAction (which is the new name since JS-1.5). But it still dosn't work, the error is described in jetspeed.log : 2004-06-08 23:21:52,216 [http8080-Processor23] ERROR GenericMVCPortlet - GenericMVCPortlet - error executing action java.lang.ClassNotFoundException: Requested Action not found: portlets.CafeBrowserAction Turbine looked in the following modules.packages path: [org.apache.jetspeed.modules, org.apache.turbine.modules] at org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174) Turbine didn't look at the package org.apache.jetspeed.tutorial.modules.actions.portlets, where the class is located. What should I modify so that the turbine looks at the jetspeed.tutorial classpath, or is there something else to do ? Thanks in advance, Michael Muller
http://portals.apache.org/jetspeed-2/tutorial/ ??
Does anybody know where to find a tutorial for building portlets in jetspeed2? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ScheduledJob
Hi, How do you make jetspeed 1.5+ scheduledjob works? Do you need to create ID_TABLE and TURBINE_SCHEDULED_JOB om classes? Thanks for the help. Aloundeth,
RE: How to get additional mehtod parameters in a form-url, but not with hidden fields
Perhaps you could do something like the following. You would have a generic form that can be submitted with a dynamic value based on what image is clicked. This is one possible solution. function submitform(imageNum) { var f = document.form_image; f.imageNumber.value = imageName; f.submit(); } #foreach($image in $imageList) #set($imageNum = $velocityCount) #end Jeremy Ford [EMAIL PROTECTED] From: "Remo Waller" <[EMAIL PROTECTED]> Reply-To: <[EMAIL PROTECTED]> To: "'Jetspeed Users List'" <[EMAIL PROTECTED]> Subject: How to get additional mehtod parameters in a form-url, but not with hidden fields Date: Tue, 8 Jun 2004 13:24:27 +0200 Hy, I've written a portlet, which shows several images. By clicking on a such image, i should be loaded in the portlet in a larger size. Therefor I'm using a Velocityportlet. It looks as following: #set($tmp = 1) #foreach($image in $imageList) #end #set($tmp=${tmp}+1) All images (or the source of this image -> http://xxx/image.jpg) are in the $imageList. I defined 1 form, which will be called, when the users will click on a image. There are max. 5 small images. That i can determine, which image was clicked I implemented in the Portlet (portlets.ActiveRegionMonitor) 5 methods doImage$tmp (doImage1 - doImage5). The reason is, that i know the sourceaddress of the image: public void doImage2(RunData rundata, Context context) { String tmp = ((String[]) rundata.getUser().getTemp(Constants.IMAGE_LIST))[1]; tmp = tmp.replaceAll("thumb", "fd"); rundata.getUser().setTemp(Constants.IMAGE2, tmp); } But this is not a quite nice solution. Is there a way to give additional parameters to a method, invoked by this form like: ^^ ? Best regards and thanks for answers. Remo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get additional mehtod parameters in a form-url, but not with hidden fields
Hy, I've written a portlet, which shows several images. By clicking on a such image, i should be loaded in the portlet in a larger size. Therefor I'm using a Velocityportlet. It looks as following: #set($tmp = 1) #foreach($image in $imageList) #end #set($tmp=${tmp}+1) All images (or the source of this image -> http://xxx/image.jpg) are in the $imageList. I defined 1 form, which will be called, when the users will click on a image. There are max. 5 small images. That i can determine, which image was clicked I implemented in the Portlet (portlets.ActiveRegionMonitor) 5 methods doImage$tmp (doImage1 - doImage5). The reason is, that i know the sourceaddress of the image: public void doImage2(RunData rundata, Context context) { String tmp = ((String[]) rundata.getUser().getTemp(Constants.IMAGE_LIST))[1]; tmp = tmp.replaceAll("thumb", "fd"); rundata.getUser().setTemp(Constants.IMAGE2, tmp); } But this is not a quite nice solution. Is there a way to give additional parameters to a method, invoked by this form like: ^^ ? Best regards and thanks for answers. Remo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: use servlet as portlet or call from JSP
Bryan: There are 2 ways, that we have used, to pass userid to a iframe portlet: 1. Crude: Get the userid in toploggedin.jsp from rundata, and put into a javascript variable: var userid = "<%=rundata.getUser().getUserName()%>"; Now in the iframe create a dummy page that does something like , ... I hope you follow, you may have to write a js function to do this. 2. Better: Change the login class (JLogin) to put userid in the servlet session like: rundata.getRequest().getSession(false).setAttribute ("userid",rundata.getUser().getUserName()); This session variable can now to accessed from JSP or servlets. Hope this helps. pramod Original message >Date: Mon, 7 Jun 2004 23:15:02 -0500 >From: "Bryan K. Cantwell" <[EMAIL PROTECTED]> >Subject: use servlet as portlet or call from JSP >To: "'Jetspeed Users List'" > >I have successfully installed WBCalendar (a servlet) in my system and I can >make an Iframe portlet that displays the calendar in my jetspeed 1.5 >I have made modifications, however, that require me to pass the userid from >the current user to the servlet in order to display that user's unique >calendar. > >Since I am a total newbie at this, I have no Idea how to either register >this a a portlet and make it aware of the userid, or make an IFrame portlet >that passes the userid, or even create a JSP that will display the calendare >created by the servlet after being passed the UI... > >What to do? > > > - >To unsubscribe, e-mail: jetspeed-user- [EMAIL PROTECTED] >For additional commands, e-mail: jetspeed-user- [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem building jetspeed2 with Oracle DB
Hi I'm new to jetspeed so there may be an ob obvious answer to my question. I'm having trouble with the build of js2 when i try maven allClean allBuild The error i'm getting is below. I have tried to rename the classes12.zip to .jar and putting it in different places and in the classpath. Nothing is doing me any good. I've got a current cvs from this morning. [echo] Generating SQL schema creation scripts for Oracle [torque-sql] Using classpath [torque-sql] Generating to file D:\jakarta-jetspeed-2\target\src\sql\oracle\ report.portal.sql.generation BUILD FAILED File.. D:\jakarta-jetspeed-2\maven.xml Element... sql Line.. 387 Column 39 Class Not Found: JDBC driver oracle.jdbc.driver.OracleDriver could not be loaded In my build.properties i've added the following (rows and changed them accordingly whern i moved the clases12.jar around). # Oracle 8i Driver Path Example, test and production org.apache.jetspeed.test.jdbc.drivers.path=D:\Tomcat 4.1\shared\lib\classes12.jar; org.apache.jetspeed.production.jdbc.drivers.path=D:\Tomcat 4.1\shared\lib\classes12.jar; # - # configure Oracle Test DB # - org.apache.jetspeed.test.database.default.name=oracle org.apache.jetspeed.test.database.ojb.platform=oracle8i org.apache.jetspeed.test.database.url=jdbc:oracle:thin:@db2:1521:info org.apache.jetspeed.test.database.driver=oracle.jdbc.driver.OracleDriver org.apache.jetspeed.test.database.user=portaltest_owner org.apache.jetspeed.test.database.password=navug # - # configure Oracle Production DB # - org.apache.jetspeed.production.database.default.name=oracle org.apache.jetspeed.production.database.ojb.platform=oracle8i org.apache.jetspeed.production.database.url=jdbc:oracle:thin:@db2:1521:info org.apache.jetspeed.production.database.driver=oracle.jdbc.driver.OracleDriv er org.apache.jetspeed.production.database.user=portal_owner org.apache.jetspeed.production.database.password=navug # - Any help on how to get maven to find the oracle driver classes is much welcomed. thanks /Martin
AW: use servlet as portlet or call from JSP
You could simply add the parameters to the URL given to the IFrame like that: myURL?userid= > -Ursprüngliche Nachricht- > Von: Bryan K. Cantwell [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 8. Juni 2004 06:15 > An: 'Jetspeed Users List' > Betreff: use servlet as portlet or call from JSP > > > I have successfully installed WBCalendar (a servlet) in my > system and I can > make an Iframe portlet that displays the calendar in my jetspeed 1.5 > I have made modifications, however, that require me to pass > the userid from > the current user to the servlet in order to display that user's unique > calendar. > > Since I am a total newbie at this, I have no Idea how to > either register > this a a portlet and make it aware of the userid, or make an > IFrame portlet > that passes the userid, or even create a JSP that will > display the calendare > created by the servlet after being passed the UI... > > What to do? > > > - > 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]
AW: AnonUser Page differs on browser
Hmm, I installed the LiveHTTPHeaders Plugin - a nice tool but I had no luck. The displayed page in Firefox is the one you get after installing jetspeed out-of-the-box. (With the Home Page, RSS and Dynamic pane) Clicking on one of the panes the following URL is displayed in the addressbar http://localhost:8080/jetspeed/portal/media-type/html/language/en/user/anon/page/default.psml/js_pane/101 Any suggestions? -Ursprüngliche Nachricht- Von: Raphael Luta [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 3. Juni 2004 23:09 An: Jetspeed Users List Betreff: Re: AnonUser Page differs on browser Floßmann Christoph wrote: > Hi, > > I don't know whether I configured sth. wrong or if it is an known issue. With the IE > everything works fine when I'm addressing localhost:8080/jetspeed the defined page > from default.psml in the anon directory is opened. Trying this in Friefox fails. > Some other page is shown and I didn't figure aut yet why this happens. > Any suggestions? > > Chris If you are redirected to a site named "www.localhost.xx", it's simply that FireFox could not contact your site and redirected you to an "related" Internet site through its keywords feature. If you're sure your server is up & running and accessible from your client, then this is probably caused by an incorrectly configured jetspeed that send a 302 redirect to a mistyped URL. If you need to validate this, download and activate the LiveHTTPHeaders plugins of firefox. It will let you easily see the different requests/repsonses issued and recieved by the browser. -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: "Importer Class cannot equal Exporter Class" exception
I think you should use the script src/sq/external/populate-oracle.sql to populate the oracle database with th default jetspeed users. The PSML importer is only used if you choose to store the PSML in the database. The PSML (Portal Structure Markup Language) files contain the structure of your portal. The Hypersonic database contains users and rights and so on. They are not the same thing. I would advise against storing the PSML in the database, mostly because it makes reading and editing the PSML code so much more difficult. Read more about it here: http://portals.apache.org/jetspeed-1/psml_db.html Hope it helps, -Stijn - Original Message - From: "Mallhar Kadam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 08, 2004 3:27 AM Subject: "Importer Class cannot equal Exporter Class" exception > Hi All, > > Trying to run the jetspeed using Oracle instead of > hypersonic database. Hence ran the script "ant import" > on the jetspeed source from build directory. [ Already > turbine_* and jetspeed_* tables are created into > oracle database. ] > > But "Ant import" gives following exception : > [java] * PSML Importer * > [java] log4j:WARN No appenders could be found for > logger (org.apache.stratu > .component.ComponentLoader). > [java] PSML Importer Error: Importer Class cannot > equal Exporter Class. > > Am I missing somethin ? > > thank you, > ~M > > > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.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]