Re: mysql conn with jetspeed

2003-12-18 Thread Stefan Kuhn
According to my experience you can also get this error if Jetspeed/Torque is not able 
to access the database because the user used does not have the right proviliges. This 
is very common problem and, unfortunately, it gives rather opaque error messages.
Stefan

Am Thursday 18 December 2003 11:25 schrieb adarsh:
 Hi,

 I am working on release build of jetspeed.i have changed the
 jetspeedresource.properties file.do we need the jetspeed source for
 importing the blob or is there any way by which we can do import with
 release build of jetspeed?

 Thanks In Advance
 Adarsh

 - Original Message -
 From: Pernoud Aurelien [EMAIL PROTECTED]
 To: Jetspeed Users List [EMAIL PROTECTED]
 Sent: Thursday, December 18, 2003 3:19 PM
 Subject: RE: mysql conn with jetspeed


 Your database isn't populated with profiles. See the doc / archives, this
 has been answered quite a lot of time.

 adarsh a écrit :
   Hi,
 
   i have a problem with database connection using mySQL, with
  HyperSonic works fine, see my turbine resource properties:
   iam getting this exception when loading the jportal sample tutorial.
 
  org.apache.jetspeed.om.profile.ProfileException:
  java.lang.NullPointerException
  at
  org.apache.jetspeed.services.profiler.JetspeedProfilerService.
  fallbackProfile(JetspeedProfilerService.java:544)
  at
  org.apache.jetspeed.services.profiler.JetspeedProfilerService.
  getProfile(JetspeedProfilerService.java:292)
  at
  org.apache.jetspeed.services.profiler.JetspeedProfilerService.
  getProfile(JetspeedProfilerService.java:570)
  at
  org.apache.jetspeed.services.Profiler.getProfile(Profiler.java:125)
  at org.apache.jetspeed.modules.actions.JetspeedAccessController.d
  oPerform(JetspeedAccessController.java:112)
  at org.apache.turbine.modules.Action.perform(Action.java:87)
 
  Thanks In Advance,
  Adarsh

 -
 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]

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu


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



Re: jetspeed - Oracle problems

2003-12-02 Thread Stefan Kuhn
Hi Joachim,
I had the same problem with MySql. Although it won't help you a lot, I can 
tell you I did the following:
1. set database.connectionWaitTimeout to 20
2. use jdbc:mysql://127.0.0.1:3306/nmrshiftdb?autoReconnect=true as database 
URL. The autoReconnect was not used before. I don't know what it does exactly 
and also don't know if it exists in Oracle.
These together helped. The application has now been running for weeks.
Stefan

Am Tuesday 02 December 2003 10:43 schrieb Joachim Müller:
 Hi all.

 we experience problems with the following setup:

 Jetspeed1.4b4 on Win2K
 Java 1.4.1
 Oracle 9.2

 Two Application Servers with Jetspeed are
 load balanced by apache mod_jk and are
 connected to the same Oracle database.

 After a certain uptime (2-3 days) the applications
 cannot make connections to the database
 anymore.
 (Propabely a side effect is that the controls.xreg
 file on the application servers is overwritten and
 set to zero size!)

 It seems to be that the connection pool
 does not free unused connections. We startet
 with the torque connection pool and switched
 then to the JDBC2 Connection Pool with no luck
 regarding this problem.

 Did anybody have the same problem? Does anybody
 connect jetspeed though an Tomcat JNDI Datasource
 successfully? (I did try but had no luck. Can
 someone supply an description for both Tomcat
 AND Jetspeed Config files?)

 Would it make sense to upgrade to Torque 3.1 in
 this regard?

 Would it make sense to upgrade to Jetspeed1.4
 final in this regard?

 Any help is much appreciated.


 Best Regards,

 Joachim

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu


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



HTML standard in Jetspeed ?

2003-11-19 Thread Stefan Kuhn
Hi everybody,
do the HTML bits in Jetspeed (templates, existing portlets) adhere to any 
specification (HTML 4 ...) ? Or is it just hack-as-it-works html ? (I do 
believe in this, but wanted to ask)
I ask because I would be interested in making our portal standard-compliant.
Thanks
Stefan
-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zlpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu


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



Re: One Panel with 3 JSP Portlets

2003-10-31 Thread Stefan Kuhn
Hi,
sorry for the misunderstanding. I didn't get the point. So basically 
everything works  exept that if a portlet is submittet, the other portlets 
get reset in case they have already been submitted ? As I said you cannot 
refresh just one portlet. What you need to do is to keep track of each 
portlet's state in the session. So once a portlet is submitted, you set a 
parameter in the session and if you want to display a portlet, you need to 
look if the parameter is set and to display a(b/c).jsp or contact.jsp 
respectivly.
HTH
Stefan

Am Friday 31 October 2003 09:31 schrieb [EMAIL PROTECTED]:
 Thanks for your reply stefan but I use
 different action parameters in every portlet
 Portlet A use eventSubmit_doDetailsa
 Portlet B use eventSubmit_doDetailsb
 Portlet C use eventSubmit_doDetailsc

 I have 3 portlet jsp in a panel
 portlet A uses as template a.jsp
 portlet B uses as template b.jsp
 portlet C uses as template c.jsp
 eventSubmit_doDetailsx (where x, is a b c) changes the template of the
 portlet (load another jsp, contact.jsp)
 when i do a submit in portlet A all the page of the portal is refreshed,
 in portlet A i see the result of the submit.
 Then the situation is:
 In portlet A there is contact.jsp
 In portlet B there is b.jsp
 In portlet C there is c.jsp
 Now if i do a submit in portlet B i have this
 In portlet A there is a.jsp
 In portlet B there is contact.jsp
 In portlet C there is c.jsp
 what i want is
 In portlet A -- contact.jsp
 In portlet B -- contact.jsp
 In portlet C -- c.jsp
 There is no relationship between the 3 portlets...
 It is a very strange effect.There is a solution?
 I hope I am expressed in more comprehensible way.Thanks from Italy.

 Hi,
 you actually encountered a common problem which is due to a
 misunderstanding:
 Portlets only exist on the server side, for the browser it's just one

 html page and therefore

 you can't refresh a single portlet. Always the whole page is sent to the

 server and all portlet

 classes are executed. If you want only one portlet to react, you need

 to have different action

 parameters in them (you always have eventSubmit_doDetailsb, right?). You

 need to understand

 that portlet is not a frame, which is a client-side concept.
 HTH
 Stefan

 __
 Accesso Internet Gratis per utenti Excite! Attivalo subito!
 http://www.excite.it/hitech/accesso

 Il Mio Excite. Personalizza la tua Home page Excite come vuoi tu!
 http://www.excite.it

 AAA/Relazioni. Sfoglia gli annunci e trova la tua anima gemella
 http://www.excite.it/relazioni




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

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu


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



Re: One Panel with 3 JSP Portlets

2003-10-30 Thread Stefan Kuhn
Hi,
you actually encountered a common problem which is due to a misunderstanding: 
Portlets only exist on the server side, for the browser it's just one html 
page and therefore you can't refresh a single portlet. Always the whole page 
is sent to the server and all portlet classes are executed. If you want only 
one portlet to react, you need to have different action parameters in them 
(you always have eventSubmit_doDetailsb, right?). You need to understand that 
a portlet is not a frame, which is a client-side concept.
HTH
Stefan

Am Thursday 30 October 2003 11:34 schrieb [EMAIL PROTECTED]:
 I have a panel with 3 portlet (a,b,c), every portlet is a very simple jsp
 portlet which use org.apache.jetspeed.portal.portlets.JspPortlet
 and its action class
 (JspPortletActionA,JspPortletActionB,JspPortletActionC)

 Example of portletb.xreg

 ?xml version=1.0 encoding=UTF-8?
 registry
 portlet-entry name=portletb hidden=false type=ref
 parent=JSP application=false
 meta-info
 titleProva JSP B/title
 descriptionesempio di applicazione jsp B/description
 /meta-info

 classnameorg.apache.jetspeed.portal.portlets.JspPortlet/classname
 parameter name=template value=portletb/b.jsp
 hidden=false cachedOnName=true cachedOnValue=true/
 parameter name=action
 value=portlets.JspPortletActionB hidden=true
 cachedOnName=true cachedOnValue=true/
 media-type ref=html/
 url cachedOnURL=true/
 /portlet-entry
 /registry

 a,b,c jsp contain a form like this

 Example b.jsp

 form method=post action=jetspeed:dynamicUri/
 input type=hidden name=js_peid value=%=jspeid%
 Insert your name: INPUT TYPE=TEXT NAME=username SIZE=20
 P
 input type=submit name=eventSubmit_doDetailsb value=Save/
 /form


 Example JspPortletActionB

 public class JspPortletActionB extends JspPortletAction  {

 public void buildNormalContext(Portlet portlet, RunData rundata)
 {
 }
 public void doDetailsb(RunData data, Portlet portlet) throws Exception
 {
 setTemplate(data, ContactB.jsp);
 }

 }

 When I click the submit in one of the 3 portlet there is a refresh of the
 page of the portal and all portlets in a page (panel) are going to
 actionClass all the time! Is possible to refresh only the portlet where I
 click the submit without influence
 other jsp portlet in the same panel? Can you post some code to adjust this
 problem?
 [What I want to do is :
 a form in a portletA where user insert some data and he submit ,
 then a new jsp page is load with data inserted in portletA. After when user
 insert data in portletB and there is a submit i dont want to loose the jsp
 page loaded in portletA]

 I hope that what I have written is clear, excused for my bad English :-)
 thanks in advance to anyone answers to me.






 __
 Accesso Internet Gratis per utenti Excite! Attivalo subito!
 http://www.excite.it/hitech/accesso

 Il Mio Excite. Personalizza la tua Home page Excite come vuoi tu!
 http://www.excite.it

 AAA/Relazioni. Sfoglia gli annunci e trova la tua anima gemella
 http://www.excite.it/relazioni




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

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu


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



Re: Looking for certain portlets

2003-10-20 Thread Stefan Kuhn
Am Monday 20 October 2003 17:27 schrieb Ilja:
 Hm,

 That's a major disappointment. I hoped Jetspeed would have these
 functionality, ie: a totally customizable website-out-of-the-box type of
 thing. Unfortunately not.

Hi Ilja,
I would argue that Jetspeed is a totally customizable website-out-of-the-box 
type of thing. It just does not have your applications. But I would think 
quite a few elements are there. For example there's an RSS portlet, which can 
be used for news.
I think it's not Jetspeed's purpose to give applications, but to integrate 
them. So take any content managment system and you can easily integrate it. 
Take any newsletter management software (I'm sure there are quite a few) and 
integrate it. And so on. It's not Jetspeed's purpose to deliver applications.
HTH
Stefan


 Thanks for you quick and informative reply though,

 Regards,

 Ilja

 On 20 Oct 2003 10:52:31 -0400, John Wubbel [EMAIL PROTECTED] said:
  Ilja,
 
  You have to think about Jetspeed in terms of it being a framework to
  integrate your requirements into it by learning about the capability of
  the default portlets. The problem of content management always comes
  upon us quickly. For example, we needed a portlet that would announce
  company news. We solved it by installing Zope, we then added a Zope
  Product called Squishddot, a Slashdot look alike and that gave us the
  ability to author the announcement and publish it quickly. We used an
  IFrame portlet to host the content and it really did not take that much
  time to install, configure and test. We had only minor server side
  development to support it.
 
  Thus, you will sometimes find it quicker to go outside of the Jetspeed
  community to find a plug and play solution that can work in a portlet. I
  doubt that you are going to find a ready made portlet that will give you
  instant news publishing. But, if you spend a little time researching,
  you might come up with a combination that will work such as Zope, Silva
  Product and the Silva News Extension that might work nicely. I know for
  myself I had to learn about the different portlet frameworks available
  first.
 
  Good Luck.
 
  John
 
  On Mon, 2003-10-20 at 10:01, Ilja wrote:
   I tried to search the mailinglist, but with no avail. Couldn't find
   them on the jetspeed website either.
  
   I'm looking for portlets that can do the following:
  
   - manage and subscribe to newsletters
   - manage downloads
   - publish news
   - manage a FAQ
   - manage links
   - a searchengine that can search all these
  
   Is this downloadable somewhere or do I have to develop them myself?
  
   Regards,
  
   Ilja
  
   -
   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]

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

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu


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



Re: MySQL DB looses permanently connection....

2003-07-10 Thread Stefan Kuhn
Also, if you open connections explicitly, make sure you release them all. 
(Sorry if the tip is too simple for you, but stupid people like me tend to 
forget things like this :-)
Stefan


Am Thursday 10 July 2003 13:04 schrieb Anandkumar Ayyachamy:
 If you are using connection pooling DBCP from jakarta then there are
 settings
 such as maxIdle=20 maxWait=20 make sure to set it high as per
 requirement.
 You can also check your Mysql variables to see the connection timeout
 value and
 set it as your requirement.
 Hope this helps
 -AK

 Raffaele Ragni wrote:
 Il gio, 2003-07-10 alle 12:44, Danny ha scritto:
 We have jetspeed (1.4 build 4) configured with MySQL DB (I must admit,
  that the Sever is quite a poor machine) and some portlets, that generate
  charts from DB. Everything works fine, but after a while Jetspeed looses
  the connection to the DB. And when the connection is lost, Jetspeed has
  to be restarted.
 
 My question now is:
 
 Is this a know thing?
 Is this related to Jetspeed? (We have another Jetspeed based application
 working with Oracle, where everything is OK)
 Is this related to the server? (pentium 1, 128 MB RAM, OS Windows NT)
 
 Anny hint is appreciated.
 
 Danny
 
 ==
 T-Systems Multimedia Solutions GmbH
 Danny Gehl
 Authorized Java Center (AJC)
 Hausanschrift: Riesaer Strae 5, 01029 Dresden
 Tel.: (0351) 8505 845
 Fax.: (in Arbeit)
 E-Mail: mailto:[EMAIL PROTECTED]
 http://www.T-Systems-MMS.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 I'm not sure, something about the pool connection timeout? I had a
 similar thing before and that was the problem.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zlpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu


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



Re: communication between portlets

2003-06-04 Thread Stefan Kuhn
Am Wednesday 04 June 2003 10:22 schrieb Tobias Hummrich:
 Hi,

 I'm trying to create a web application using Jetspeed, but I'm not sure
 if it (or any portal framework, for that matter) offers the
 functionality that I need. More specifically, I'd like to know these two
 things:

 1. How can the result of a request sent to one portlet be displayed in a
 different portlet?

This is no problem. All portlets share the same request/response object, so 
you can have a form in one portlet and read the values in another portlet via 
request.getParameter() or runData.getParameters() and then display the result 
in this portlet.


 2. How can a portlet access the state of another portlet?


Do you mean closed/minimized etc. ? I'm afraid I don't know this.
Stefan

 Basically, what I'm trying to do is implement a portal that behaves like
 an MDI application. Is that possible, or do I have the wrong idea about
 portals?

 Thanks in advance.

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-5092
My public PGP key is available at http://pgp.mit.edu


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



Re: Using Frame in JetSpeed with a jsp

2003-02-24 Thread Stefan Kuhn
Am Monday 24 February 2003 12:43 schrieb Th?o:
 But if i put the jsp out off the web-inf
 , i could not access to  Application
 Session into my jsp.
 I got a nullPointEexception when try to
 access !

That's because the jsp you display in the iframe portlet is not part of your 
Jetspeed app. There is no rundata or other jetspeed/turbine stuff in it. 
There is a session object, which is available like in any other jsp. This 
should be the same session as for jetspeed, if the request goes to the same 
app server, but I'm not sure about this. If you want to have something as 
part of your application, you should never use the iframe portlet, but an 
ordinary jsps portlet. The iframe portlet really makes a separate 
application. Better use the jsp portlet and the turbine action model for 
handling events like submit etc.
Stefan




 RunData data=
 (RunData)request.getAttribute(rundata)
 ;
 String
 fileId=(String)data.getSession().getAttr
 ibute(FileId);
 String
 fileSze=(String)data.getSession().getAtt
 ribute(FileSze);

 have anybody a idea !

 Thanks by advance.

 Thierry Unimon
 Groupe Cgbi
 69 Bvd gallii
 poste :0155955422
 [EMAIL PROTECTED]




 - Original Message -
 From: Aurelien Pernoud
 [EMAIL PROTECTED]
 To: 'Jetspeed Users List'
 [EMAIL PROTECTED]
 Sent: Monday, February 24, 2003 11:55 AM
 Subject: RE: Using Frame in JetSpeed
 with a jsp

 | It's not Jetspeed. When using a

 IFramePortlet, it's your browser that
 makes

 | the request.
 | And you can't request a resource that

 is in WEB-INF directory directly.

 | Tho a rit :
 |  In fact Jetspeed don't look at the

 rigth

 |  place.
 |  I want hilm to found it in the Jsp
 |  directory:
 |  web-inf/templates/jsp/portlets/html
 | 
 |  but even when i put the the right

 Url i

 |  got a HTTP 404 not found,
 |  If the jsp is in the jestspeedhome/

 it

 |  look working !
 | 
 | 
 |  Thierry Unimon
 |  Groupe Cgbi
 |  69 Bvd gallii
 |  poste :0155955422
 |  [EMAIL PROTECTED]
 |
 | --

 ---

 | To unsubscribe, e-mail:

 [EMAIL PROTECTED]
 .org

 | For additional commands, e-mail:

 [EMAIL PROTECTED]




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

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zlpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-5092


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



Re: xreg and portlets

2003-02-23 Thread Stefan Kuhn
Am Sunday 23 February 2003 16:09 schrieb Don Hill:
 I have several registry entries in a xreg file, lets say I have 20, it

I've got an .xreg with 21 entries and it works fine. If you post your xreg, we 
could have a look.

 If I create 1 file for each entry it works fine, Is there a limitation
 for this ? Is there a need for spacing in this file ? shouldn't be its
 just a xml file.

Obviously the file doesn't need the registry-tags around every entry, just 
once ;-)


 Any thoughts ?

 Don

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

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-5092


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



Re: [mail] Re: User editable content

2003-02-03 Thread Stefan Kuhn
It sounds as if you look for a content-managment stylish system. There used to 
be the JetspeedContent portlet, which allowed users (admins) to enter sort of 
headlines and could be viewed by anybody. Recently there was an email on this 
list that this portlet is defunct now, but I tried it and oddly enough in my 
1.4b3 download it worked. I would try it.
Stefan
P. S.: Log in as admin, go to the Admin pane, there's Jetspeed Content. What 
you enter is displayed on the front page.

Am Sunday 02 February 2003 18:41 schrieb Al Sutton:
 I've seen that message saying that it's not possible with the RSS portlet,
 but it doesn't answer my question of whether or not there exists any
 portlet that offers this user-edit, anyone view functionality.  I only
 mentioned the RSS/RDF portlet because the output resemled what I'd like to
 achieve.

 It seems crazy that a piece of software calling itself an interprise
 information portal does not have the functionality to allow helpdesk people
 to produce/edit news items for viewing by the enitre user base.

 Al.

 - Original Message -
 From: Werner Ramaekers [EMAIL PROTECTED]
 To: Jetspeed Users List [EMAIL PROTECTED]
 Sent: Sunday, February 02, 2003 1:24 PM
 Subject: [mail] Re: User editable content

  Al,
 
  please check the mail-archives first too :
  the following message is just 2 days old :-)
 
  http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg07786.htm
 l
 
  Werner
 
  Al Sutton wrote:
  I'm being driven crazy by what seems to be a lack of documentation on a

 very

  simple thing.
  
  All I'm looking to do is have the front page (i.e. the anon users home

 page)

  containing the text of a a news feed that is editable by a specific user

 or

  set of users, but not editable by the anon user. The ideal output would

 look

  like the RSS/RDF portlets.
  
  Any pointers?
  
  Al.
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  --
  --
  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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-5092


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




Re: Structuring a portal with two seperate panes

2003-01-23 Thread Stefan Kuhn
Hi Kim,
I would think that most of the layout is already there. The only thing missing 
is the right navigation area. For this, I would think you should edit 
jetspeed/WEB-INF/templates/vm/layouts/html/default.vm and add a right bar the 
same way it's done with left/top/bottom. That's it. You then obviously need 
to edit top.vm, left.vm... and e.g. put the login into the left bar instead 
of the top one. Things like the editaccount screen are only shown in the 
main area anyway, so you would not need to worry about how to put two panes 
on a page.
HTH
Stefan

Am Thursday 23 January 2003 18:20 schrieb Kim Thrysøe:
 First let me thank you all for an awesome piece of work. I hope to
 contribute myself as I get on my way in my own project, which is to
 develop a portal for a University Library Portal. I have a fairly good
 understanding of the turbine/jetspeed architecture and its use.
 Nonetheless am I in trouble when it comes to my portals overall
 structuring, because it differ from the standard setup. I hope that my
 question makes sense and sounds familiar to others new to Jetspeed.

 Let me briefly sketch the required portal layout:

 ---

 | A   |

 ---

 |   B|C   |   D   |

 ---

 | E   |

 ---

 A = Top navigation with a few fixed links to articles to be shown in C
 / external sites
 B, D = Portlet pane to be shown on most pages (ex. Home, Login, Error...)
 C = Area where either article/text content is shown or special pages
 such as Login
 E = Fixed bottom navigation

 As B and D (almost) always must be shown (Few exceptions such as
 customizing is to be done in the full screen). I have to find a way to
 include two areas with portlets on templates such as Login.jsp.
 I still wish to use the jetspeed customization feature to customize the
 two areas.

 I have been thinking about a this paths to take:

 *Option 1* - Screen contains two Jetspeed panes (B/D) and handles
 article content/form displaying (C)

 I let the screens contain two panes plus have the responsibility of
 showing article content in area C based on some included JSP:

 table
   tr
 tdjetspeed:pane name=left //td
 tdjsp:include ... /td
 tdjetspeed:pane name=right //td
   /tr
 /table

 - Is it possible to have two panes on a screen as done in this example?
 - If so, is it necessary to manually add a left and right portlet
 set to the user PSML files.

 Perhaps I could even use a third pane to hold article-showing portlets.

 - Does anyone have experience with portlets to show organized and
 hierarchically organized content as opposed to lists of news items.
 Perhaps based on cocoon requests or a CMS ?


 Any bits of advice and pointers are more than welcome.

 thanks

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-5092


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




Re: How to display images

2003-01-20 Thread Stefan Kuhn
 I am a new user to JetSpeed and am having difficulties in displaying images
 in my jsp
 My web structure is
 WEB-INF
 FrontOffice
 Images
 Jsp
 Portlets
 html
If your structure is really like this, the images folder can't be used. The 
whole WEB-INF folder is invisible for the web server (test it: call 
localhost:8080/jetspeed/WEB-INF or so, it won't be found, althought it's 
there). You need to have images outside of WEB-INF. There is actually an 
images folder in jetspeed - best use this.
If you want to use a path relative to your JSP, then remember that the path of 
the JSP for the web server is not something like WEB-INF/templates/jsp... but 
the URL you actually call, e. g. localhost:8080/jetspeed/portal. The relative 
URL for the images folder (the jetspeed one, outside WEB-INF) would then be 
images/myimage.jpg, which translates to 
localhost:8080/jetspeed/images/myimage.jpg.
HTH
Stefan


 I have correctly configure the TurbineResources.properties and
 JetspeedResources.properties as my jsp is being displayed.



 However, my image is not being displayed



 I have tried the following html



 img src=../../../images/NGLogo.gif width=204 height=77



 and



 img src=/images/NGLogo.gif width=204 height=77



 and



 img src=/FrontOffice/images/NGLogo.gif width=204 height=77



 but with no success.



 Could someone please advise me on how to display images within my own
 images folder.







 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.

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-5092


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




Re: On logs: exceptions and source

2003-01-08 Thread Stefan Kuhn
What exactly do you mean with it works not ? If there is unknown instead of 
the line number in the log, it probably is due to compiling with the wrong 
option. Have a look at man javac, especially the -g option (if using ant, 
there are some options like optimization to the javac target).
HTH
Stefan

Am Mittwoch, 8. Januar 2003 16:06 schrieben Sie:
 I noticed that in the logs, when exceptions are cast, there is the line
 number where it happened. Once it worked on my sources too but now isn't
 working anymore, i'm wondering if anyone knows why.


  -- Raffaele Ragni
  -- Cone, sistemi informativi
  -- http://www.cone.it

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Monitoring number of sessions/logged in users

2003-01-08 Thread Stefan Kuhn
Hi everybody,
I thought it could be usefull to have the possibility for the admin to 
monitor the number of open sessions/currently logged in users, but I didn't 
find it. Is it somewhere in the admin portlets ? If not, I suppose it 
wouldn't be too difficult to implement. Or does sombody know problems I don't 
expect myself ? (If not, I would implement it for myself and contribute the 
code, if considered to be usefull).
Happy new year to all jetspeed people
Stefan

Am Mittwoch, 8. Januar 2003 16:06 schrieben Sie:
 I noticed that in the logs, when exceptions are cast, there is the line
 number where it happened. Once it worked on my sources too but now isn't
 working anymore, i'm wondering if anyone knows why.


  -- Raffaele Ragni
  -- Cone, sistemi informativi
  -- http://www.cone.it

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Jetspeed development?

2002-12-14 Thread Stefan Kuhn
Am Samstag, 14. Dezember 2002 17:30 schrieben Sie:
  I still think it is disputable however, the
  effectiveness and value of portal technology. The
  companies that are large enough to get any value out
  of a portal are large enough to pay for Oracle,
  Plumtree, Weblogic etc etc. I personally see no
  benefit for smaller organisations. Can you counter
  this argument?

I suppose it depends a bit on the definition of a portal. We developed a 
chemoinformatics webapp based on jetspeed and it was very usefull for that. 
You might argue that we misused jetspeed as a webapp framework, but that's 
life.
I can use this oppurtunity to anounce our site to the jetspeed community. 
Mostly interesting for poeple working in the life sciences, I'm afraid, but 
the URL is www.nmrshiftdb.org. We do not yet have impressive statistics, but 
hopefully this will come soon.
I just checked out 1.4b2 for the first time and I'm especially impressed by 
the documentation, which was not exactly the best in the past. Great work!
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Getting crazy with MySQL!!!

2002-11-27 Thread Stefan Kuhn
Hi Cedric,
I would expect it be a problem with access rights, i. e. the user you define 
in TR.properties has not the appropriate access rights on the database. This 
is according to my experience a very common problem which shows up various 
error messages not really giving hints to the problem. For example, it could 
be that you can access the database vi mysql and not via torque, because your 
machine is called localhost and in TR.properties you define the connection 
with 127.0.0.1. It the user has only the right to access the database from 
localhost, but not from 127.0.01, Turbine/Jetspeed will not work
HTH 
Stefan

Am Mittwoch, 27. November 2002 14:14 schrieben Sie:
 Hi all,

 I still cannot make Jetspeed work properly with MySQL... I am using MySQL
 3.23.51 for Windows, the mm.mysql-2.0.4 driver and Jetspeed 1.4b1.
 My database is populated (I have used the scripts given with Jetspeed
 sources) and I have modified TurbineResources.props...

 First, I run MySQL Server, then Tomcat and finally, I try to hit
 http://localhost:8080/jetspeed. But I get this error :

 Horrible Exception: org.apache.jetspeed.services.security.LoginException:
 Failed to get anonymous user:
 org.apache.jetspeed.services.security.UserException: Failed to retrieve
 user 'anon': Connection object is null! at
 org.apache.jetspeed.services.security.turbine.TurbineAuthentication.getAnon
y mousUser(TurbineAuthentication.java:194) at
 org.apache.jetspeed.services.JetspeedAuthentication.getAnonymousUser(Jetspe
e dAuthentication.java:107) at
 org.apache.jetspeed.services.JetspeedSecurity.getAnonymousUser(JetspeedSecu
r ity.java:157) at
 org.apache.jetspeed.modules.actions.TemplateSessionValidator.doPerform(Temp
l ateSessionValidator.java:97) at
 org.apache.jetspeed.modules.actions.JetspeedSessionValidator.doPerform(Jets
p eedSessionValidator.java:103) at
 org.apache.turbine.modules.Action.perform(Action.java:87) at
 org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122) at
 org.apache.turbine.Turbine.doGet(Turbine.java:468) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java) at
 org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
 at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at
 org.apache.tomcat.core.Handler.service(Handler.java:235) at
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at
 org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherI
m pl.java:272) at
 org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImp
l .java:174) at
 org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:423)
 at index_1._jspService(index_1.java:51) at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java) at
 org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
 at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at
 org.apache.tomcat.core.Handler.service(Handler.java:235) at
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:9
1 7) at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at
 org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10
I nterceptor.java:176) at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
v a:516) at java.lang.Thread.run(Thread.java:479)

 I cannot figure out what I am doing wrong.
 If anyone could point me to the right direction, I would appreciate it a
 lot!

 Thanx in advance.
 Ced

 __
 Cédric BARDE
 Disneyland Resort Paris - Information Services
 Bâtiment Robin Hood - BP 100
 7 Marne-La-Vallée
 Tél : 01 64 74 65 49
 Fax : 01 64 74 65 65
 Email : [EMAIL PROTECTED]

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[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:   mailto:jetspeed-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:jetspeed-user-help;jakarta.apache.org




Re: portlet refresh,why refresh all?

2002-10-25 Thread Stefan Kuhn
Hi zy,
the answer is: not at all. Due to the nature of the web server / browser 
communication, you always need to request a new page from the server and the 
server needs to send the whole page. You can obviously achieve the effect by 
leaving all the other portlets anchanged. But, to say this again, there is no 
way to request only part of a web page from the server (except frames, which 
you can't really use in jetspeed).
Stefan

Am Freitag, 25. Oktober 2002 04:35 schrieben Sie:
 I use a button in my VM page in one portlet:
 input type=submit name=eventSubmit_doUpdate value=Confirm 
/input
 but when I push the button ,all the portlets are refreshed.
 How can I only refresh the very portlet just as I want to ?
  
 
 
 
 

-- 
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:   mailto:jetspeed-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:jetspeed-user-help;jakarta.apache.org




Are OCS registered as RSS portlets automatically ?

2002-09-27 Thread Stefan Kuhn

Hi everybody,
I did some tests with syndication. For that purpose I registered an OCS file 
as a feed in JR.properties and one of the RSS files of this OCS as an RSS 
portlet. Everything worked fine, but i discovered that I can add all RSS from 
the OCS as a portlet without making them a portlet explicitly. Somehow they 
all get registered as portlets. (In a file called feed_name.xreg)
I always thought I need to do that manyually via an RSS portlet. If all RSS 
in an OCS are registered automtically, what for is the RSS portlet then ?
The RSS items from the two standard OCS feeds are also registered as portlets 
(like mozilla news). I found that they also get registered automatically and 
I can remove the portlets in demo_portlets.xreg and the feeds are still 
available.
Any comments on this behaviour ?
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Psml management

2002-08-29 Thread Stefan Kuhn

Hi Metthew,
I was thinking about giving psml to users depending on the role as well, but 
I came to the conclusion that this doesn't make sense because: When people 
subscribe (i. e. create a new account) they get one specified role anyway. Or 
do you leave to visitors to choose which role they want to have ? But then, 
when roles mean security restrictions, your securtiy is gone, because people 
can choose their role freely. So I thought it would be better to have the 
assignment of psmls if the administrator gives roles to users.
One more problem: What to do if the user has got multiple roles - which psml 
take then ? Do you know what the built-in role-based psml does in such a case 
?
Thanks for your answers and sorry for asking questions instead of helping you.
Stefan

Am Mittwoch, 28. August 2002 23:55 schrieben Sie:
 Here are my experiences with the jetspeed psml
 management system.  I've had to change a couple things
 in ways which somebody else might find useful (please
 let me know if so!)  Also, I am discovering that I may
 have a (hopefully reconcilable) philosophical problem
 with PSML.

 Before I begin, our portal (still in development
 stage) can be seen at

 http://nurse.ri.seawave.com:8180/portal/portal

 You can log in using testcrew/password.


 We don't plan on letting our users customize their
 portal pages at all in terms of the layout, presence
 or absence of certain portlets.  However, we need to
 give them ways to customize attributes of their
 existing portlets.

 We also need to service more than one TYPE of user,
 each with a different pre-defined set of panes and
 portlets.

 Correct me if I'm wrong, but we can't use role-based
 PSML because that would prevent the use of individual
 settings  any change to a portlet attribute would
 then be seen by ALL other users in the same role.

 Also, there is no single user from whom psml files for
 new users could be copied, because that wouldn't allow
 for different layouts for different types of users.

 So I changed JetspeedSecurity to point to my own
 UserManagement class, and overrode the
 addDefaultPSML() method to make a copy of the psml
 associated with the user's role rather than the psml
 of another user (like turbine).

 Not a huge deal, but now I am arriving at what seems
 to be a bigger problem:
 Although the psml file of a user will differ from
 those of his/her peers only in very narrowly defined
 ways (only in the manipulation of attributes for
 portlets), each user still has a separate copy of the
 file.

 This means that as we add new functionality to our
 portal, adding new portlets and presumably moving the
 existing ones around somewhat, ONLY new users will
 benefit from these changes.

 Everytime we want to add a new portlet, we'll have to
 write a script that will iterate through everyone's
 psml and manipulate the xml in a certain way, adding
 entries for the new portlet  the exact type of
 thing that was supposed to be short-circuited by the
 Customizer.   Presumably this will have to be done
 when the server is shut down, because otherwise the
 psml files of any currently-logged-in users will be
 overwritten back to their old state when a they log
 out.

 Aren't the notions of CONTENT and SETTINGS separable?
  Shouldn't this information be stored in 2 separate
 files?  Did I miss some way that the current psml
 system can allow for this?  If not, how much work
 would have to be done to allow for this?   I would
 certainly be willing to adopt such a project rather
 than resorting to the mass update script strategy
 mentioned above...

 -
 Matthew Forsyth
 Seawave.com

 __
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.yahoo.com

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

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




Re: Jetspeed and Firewall

2002-08-25 Thread Stefan Kuhn

Am Freitag, 23. August 2002 21:43 schrieben Sie:
 Werner Ramaekers says:
  have you cleaned the jetspeed/WEB-INF/cache directory before starting
  tomcat ?
  That should do it.

 This worked!  Thank you very much for the tip!  I was missing that all
 along!

I also had the experience that cleaning the directory makes the feed daemon 
work. What I'm wondering is if the daemon than in regular intervalls fetches 
new content ( as it is supposed to do) or if it only does once and you need 
to clean the directory again to trigger a new download. Do you have any 
experiences about this?
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Template Question

2002-08-20 Thread Stefan Kuhn

Hi Joe,
what you want to do is not a job for JavaScript, but for Velocity (it's a 
server side question, JS is for client side). Have a look in top.vm - it 
shows the login form or not depending on if a user is logged in. For getting 
user name, have a look how the edit account (username) message is made in 
top.vm
Stefan

Am Dienstag, 20. August 2002 15:26 schrieben Sie:
 Hello,

 I wish to put a link in the left.vm template file. However, I only want
 the link to show up after a user logs in and I need to know the users
 login name. I assume that this can be done with some simple javascript
 as the pseudo code below shows:

 script language=javascript
 if (username.equals()==false){
 document.writeln(a
 href=http://mysite.com/jetspeed/mypage?+username+;Click me/a);
 }

 But I'm not sure how to obtain the current user's login name and what
 would be the value before someone logs in?

 Thanks for you help,
 Joe

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Referencing FORM ELEMENT in a Portlet

2002-07-30 Thread Stefan Kuhn

Hi,
I don't know what's the problem in your case, but I'm using forms and 
javascript in jetspeed extensivly and in my case it always worked the normal 
way. The generated HTML-document is considered to be an ordinary document by 
the browser, so document.formname should work and in my case it did. I 
suppose it's really a javascript problem.
I know this isn't really helpfull, but a can assure you that there is nothing 
special about portlets and javascript (javascript is totally client-side and 
the concept of portlets is server-side stuff).
Stefan

Am Dienstag, 30. Juli 2002 08:25 schrieben Sie:
  Hi,

 I have a html form with checkboxes and a togglecheck box that checks or
 uncheck all the checkboxes in my portlet.

 my form is created like this :

 form NAME=selectedForm  ACTION=
table border=0 cellpadding=0 cellspacing=0 width=100%
tr
 td colspan=3 align=right
  INPUT TYPE=CHECKBOX NAME=toggleCheckAll onclick=checkAll()/
 /td
/tr
tr
 td colspan=3 align=right
  INPUT TYPE=CHECKBOX NAME=cbx1/
 /td
 .
/tr
 /form

 when I use the following javascript syntax :
 if(document.selectedForm.toggleCheckAll.checked)

 I got an error saying that document.selectedForm.toggleCheckAll is null
 ! On the other hand if I run the same JSP outside the portlet it works
 fine !

 Does anyone know how to reference a form in a portlet ?

 Thanks !,

 Christophe

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Security model

2002-07-24 Thread Stefan Kuhn

Hi everybody,
I have got two questions related to the security model.
First: In the new securtiy modell, it's possible to give the right to do 
certain actions with access action=something  to users. Which are the 
possible actions and what do they do ? I was looking for something about that 
but couldn't find anything. Does somebody know where to look ?
I didn't find the names self-explaining. For example there's the action view 
which I expected to be the right to view the portlet. So I expected that the 
Portlet SecurityExample which is registered as security-ref 
parent=user-view_admin-all/ can be seen by a user, but when I tried it the 
portlet was not even in the list of available portlets.
Second: (not exactly about the security model, but related) In 
config_guide.html it is said that services.Profiler.newuser.template= enables 
role-based psml. What does this mean ? Does it mean that the psml is not 
taken from a user, but from the WEB-INF/psml/roles directory ? If this is the 
case, I do not understand what's the purpose of this. A new user has got one 
specified role anyway and therefore all new users would get the same PSML. So 
I can't see the advantage over taking the PSML from a user, where all new 
users get the same PSML as well.
(I well remember that I once said something in this list about assigning 
PSMLs to new users according to role. But in the meantime I got convinced 
that this is nonsense because all new user can only get the same role.)

Thanks for any comments!
Stefan

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




Re: how do i get my current user id?

2002-07-22 Thread Stefan Kuhn

Hi James,
User is not a class, it's an interface. The implementation actually used is 
TurbineUser. This has got a getPrimarykey method inherited from BaseObject. 
So you can do ((TurbineUser)rundata.getUser()).getPrimaryKey(). Notice the 
cast.
Stefan

Am Montag, 22. Juli 2002 13:04 schrieben Sie:
 after i login into Jetspeed,how do i get my current user id in my porlet?
 __

 import org.apache.turbine.om.security.User;
 ...
 User user = rundata.getUser();
 String username = user.getUserName();
 ...


 but the class
  org.apache.turbine.om.security.User
 doesnt supply  any method like getUserName(), to get USER_ID field in the
 table TURBINE_USER.

 any answer will be appreciated!

 James

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Configuration Questions

2002-07-17 Thread Stefan Kuhn

 If I wanted to add a background image, what file should I modify to do
 that? I wanted the title in my portlets to be hyper linked to a website. So
 I overrirode the getTitle() method. Is this the proper way to do that? I
 tried putting an anchor for the title in the .xreg file and it didn't seem
 to work.

For some reasons I do not know the jetspeed doc suggests not to override the 
getTitle() method but to use setTitle() in init(). As I said I do not know 
the reason but perhaps it's better to follow that advice - you may avoid 
problems later.
Stefan


 Joe

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Jetspeed 1.4b1 release candidate

2002-07-17 Thread Stefan Kuhn

 There is a Jetspeed 1.4b1 release candidate found at:

Hi David,
sounds great. I just wonder what happened to Version 1.3a3 which should come 
before a beta release, if I remember it correctly.
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Link not possible

2002-07-01 Thread Stefan Kuhn

Hi gus,
I think if you have a link from an email people always get to the anonymous 
page. The link opens a new browser window and nobody is logged in there. You 
need to do something more sophisticated if you want a link to a personal page 
of a user. For the users, the pane id's may be useless, perhaps some user 
threw away all the panes or even something more weired.
Stefan


Am Samstag, 29. Juni 2002 00:13 schrieben Sie:
 Stefan Kuhn schrieb:
  it should be possible to have a link to a certain pane. Just look what's
  the href-atributte of the a-tags used for navigating the panes in
  jetspeed (best would be to view source in the browser for that).

 Are the pane id's _always_ the same for every user?

gus

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How uses Jetspeed OCS

2002-07-01 Thread Stefan Kuhn

Hi everybody,
I tried to find out something about OCS. The result of all my webbrowsing was 
as follows:
An OCS-file is an xml file somewhere on a server describing content of that 
server.
In Jetspeed there's the feed daemon who feeds certain ocs files described in 
JR.properties.
So my questions are:
How can I use these fetched OCSs ? Is there an OCS portlet for displaying OCS 
(like the RSS portlet) ? In JR.properties one can give an xsl stylesheet for 
rendering OCS. Where is this used ?
I also understood that ocs/local.ocs is intended for jetspeed to publish it's 
content. Why then is this file registered as a content feed in JR.properties?
Thanks a lot for comments
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Link not possible

2002-06-28 Thread Stefan Kuhn

Hi,
it should be possible to have a link to a certain pane. Just look what's the 
href-atributte of the a-tags used for navigating the panes in jetspeed (best 
would be to view source in the browser for that).
HTH
Stefan

Am Freitag, 28. Juni 2002 08:45 schrieben Sie:
 Hi!

 Is it really not possible to create a mail with a href-link, that
 leads to the jetspeed portal opening a specified pane/portlet?

 A while ago it was possible to open a special portlet maximized by a
 link like that
 a href=portal?action=controls.Maximizeportlet=myPortlet...
 but it won't work anymore.

 Regards
 gus

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Calling method with parameter in Velocity

2002-06-27 Thread Stefan Kuhn

Hi everybody,
I've got a velocity portlet. This portlet should contain RunData as $data. I 
want to use this to give a session attribute to a text field:

value=$!data.getRequest().getSession().getAttribute(formula)

This seems not to work, so I dropped the ! to see the variable itself. The 
textt field gives

$!data.getRequest().getSession().getAttribute(

I assume velocity has problems with the , because it seems to stop reading 
there. Is there any way to escape the  ? According to velocity doc, this 
should not be necessary, but ... it's not working
Thanks for answers
Stefan

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




Re: Beispielsapp

2002-06-27 Thread Stefan Kuhn

Hallo alle,
das Bauen von Portlets mit Velocity geht grundsätlich auf zwei Wegen:
1. Man kann einen Velocity-File direkt als Portlet registrieren, außerdem  
dazu auch eine Action-Klasse angeben. Ich weiß nur in der Theorie, wie das 
geht, vielleicht können die Velocity-Experten das besser beurteilen. So ein 
Portlet zu bauen erfordert lediglich einen Eintrag in einem 
Konfigurationsfile, wo vor allem das template und die klasse angegeben werden.
Hat man alle Templates und Action-Klassen, sollte man relativ leicht in 
Jetspeed eine Applikation daraus herstellen können.
2. Die Möglichkeit, die ich verwendet habe: Man schreibe eine Klasse nach 
folgendem Muster:

package com.bluesunrise.portal.portlets;

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

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

Die Rückgabe der getConent-Methode wird im Portlet angezeigt. Hier kann man 
ein Velocity-Template rendern und vorher die benötigten Daten in den Context 
schieben. In diesem Java-Code kann man alles machen, was man will. Die Klasse 
muß auch in einem Konfigurationsfile registriert werden.

Die erste Methode ist wahrscheinlich die elegantere und entspricht mehr dem 
turbine-mäßigen vorgehen, das zweite ist mehr die quick-and-dirty Variante.

Ob man Flux in Jetspeed verwenden kann, weiß ich nicht. Wir haben per Torque 
direkt auf die Turbine-Datenbank zugegriffen. Jetspeed enthält Seiten für 
Dinge wie Benutzerregistrierung, die einem das meiste abnehmen.

Hoffe, das hilft weiter
Stefan



Am Donnerstag, 27. Juni 2002 14:21 schrieben Sie:
 Hallo alle miteinander,

 Herr Kuhn ist ja schon sehr weit; ich noch nicht so sehr :), deshalbt
 müssen wir jetzt mal mit der Beispielapplikation beginnen. Ich denke,
 ein guter Konsens wäre es, das Auktionshaus zu machen. Hierbei können
 wir uns ja auf den javashop, wie von Herrn Kuhn vorgeschlagen, stützen -
 eine Bestellung ist jetzt eben eine Auktion, Produkt und User bleiben.

 Hier die Einzelanforderungen (bitte bei weiteren Ideen ergänzen):

 - Portlet mit Kategorienübersicht, Unterkategorien, und Produkt mit
 Ablaufdatum usw.
 - Entweder in diesem Portlet, oder als Extraportlet die
 Ersteigerungsmaske
 - Ein Portlet mit eigenen bereits ersteigerten Produkten
 - Ein Bewertungsportlet
 - Ein Cron, der alle paar Minuten nach beendeten Auktionen sucht, und
 eine Email an Bieter und Verkäufer sendet (einfach mit Turbine zu
 machen).

 Die Funktionen können ruhig rudimentär sein (ist dann denke ich auch
 nicht zu viel Arbeit).
 Zur Aufteilung, mein Vorschlag:
 Dapeng und ich könnten die Geschäftslogik machen, Jürgen macht die
 Velocity Templates für die Einzelportlets, und Herr Kuhn setzt das alles
 mit Jetspeed zusammen (müsste dann auch Actions und Screens machen;
 können wir uns auch aufteilen).

 Ein paar Detailfragen noch:
 Ich würde sagen, dass wir zur Userverwaltung das Turbine-eigene Flux
 benutzen - geht das unter Jetspeed ohne Probleme? Beim User speichern
 wir ja noch mehr, in einer Extratabelle, oder? Wollen wir Permissions
 und Groups einbinden und benutzen, oder uns einfach auf Roles (Käufer,
 Verkäufer, Admin) beschränken?

 Zum weiteren Vorgehen:
 Soll ich bei Sourceforge ein Projekt für uns anlegen, oder übermitteln
 wir Änderungen ganz rudimentär per Email an diese Adresse? Und können
 Sie, Herr Kuhn, uns ein Rohgerüst/-portlet geben, das wir mit den
 unterschiedlichen Features füllen können?

 Vielleicht kann jeder heute noch was dazu sagen (v.a. zu Aufteilung und
 Features), dann kann ich bis morgen/Wochenende mal ein rudimentäres
 Datenbankschema abgeben.

 Bis dann, Fabian T.

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Beispielsapp

2002-06-27 Thread Stefan Kuhn

Sorry!
The mail before should go to another list (to many lists!). If you want to 
delete that from the archive-feel free
Stefan

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




Re: Configuration: TurbineResources.?

2002-06-24 Thread Stefan Kuhn
According to the comment when the turbineresources.veloctiy was added, this 
is used when veloctity is used and the tr.properties then is used when jsp is 
used.
At least that's what I understood it like. See 
http://archive.covalent.net/jakarta/jetspeed-dev/2001/04/0082.xml
Stefan


Am Montag, 24. Juni 2002 06:09 schrieben Sie:
 Hi,

 I am using Jetspeed 1.3a2 with Tomcat 4.0.4 with Velocity as the template
 manager. I was wondering, what is the difference between
 TurbineResources.properties and TurbineResources.velocity? They appear to
 be very similar in nature, but there are a few differences. When I want to
 change the default behavior of Jetspeed, do I have to apply the same
 modification to both files, or does Jetspeed use only one of them?

 I tried looking through the FAQs and user guides, but not much mention is
 made of this configuration file.

 Thanks,
 Biren Roy

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: jdbc access via custom portlet

2002-06-21 Thread Stefan Kuhn

  AFAIK Jetspeed does not deal with JDBC access

 Actually, Jetspeed does provide you with jdbc access through Turbine's
 Torque api.

 in 1.3a2
 DBConnection con = TurbineDB.getConnection();
 //... do some stuff
 TurbineDB.releaseConnection(con);

 in 1.3a3
 java.sql.Connection con = Torque.getConnection();
 //... do some stuff

You can access in that way only the Turbine DB, i. e. the Databse where your 
jetspeed user information etc. is saved. This database is defined in 
turbineproperties.resources.
If you want to access a third database, you need to do it manually.
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Parameters between vm and portlets

2002-06-18 Thread Stefan Kuhn

Hi Raffael,
I don't understand exactly what's the problem, but I can assure you that it 
works. I'm using similar things (classes with quite a few attributes myself 
in Vectors, given to velocity) myself frequently.
I sometimes had problems with accessing (public!) attributes, although 
according to velocity doc this should work as well. When I accessed the 
attribute via a get-method, it worked fine.
Stefan

Am Dienstag, 18. Juni 2002 09:48 schrieben Sie:
 i've tried with a class with two string, but doesnt work, it returns the
 address of the class, and cant go through the strings inside.

 - Original Message -
 From: Stefan Kuhn [EMAIL PROTECTED]
 To: Jetspeed Users List [EMAIL PROTECTED]
 Sent: Monday, June 17, 2002 6:11 PM
 Subject: Re: Parameters between vm and portlets

  Hi Raffael,
  you can't iterate over arrays in velocity, is has to be a vector or

 something

  similar (something similar means a class implementing some interface,
  collection or so, have a look in velocity doc for that). In your case it
  should be possible simply to build a vector of java.io.File objects, the
  class File has got method for getting the name and the path. You can call
  these methods from your vm files.
  The other possibility would be to write your own class containing two

 strings

  and to put that into the vector  your choice.
  Stefan
 
  Am Montag, 17. Juni 2002 17:15 schrieben Sie:
   I've posted another one fo this, but seems no one read itor mayby i've
   wrote it bad, i'll post for the last time.
  
   I've seen in the sources that you can pass users from a portlet to a vm
   file, like that: Criteria criteria = new Criteria();
   User [] users   = JetspeedSecurity.getUsers (criteria);
   context.put(users, users);
  
   and in the vm i can do like this: $!user.Name etc, accessing records of

 the

   user 'array'.
  
   now i want to to a similar thing, but with my types, or at least i can
   build two arrays, but i dont know how to go through them simultaneously

 in

   vm.
  
   so, its impossible to build 'records arrays' and i have to use multiple
   arrays (and if so how i can use them simultaneously? i know only the
   foreach thingy in vm, how works a normal for?) or there is a way? (in
   theory should be, if turbine uses this way).
  
   i'm doing a file listing on multiple dirs, and for each file i want to
   separate the path from the filename, doing it in vm file..and from that

 the

   link goes to another portlet that shows the file.
 
  --
  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:

 mailto:[EMAIL PROTECTED]

  For additional commands, e-mail:

 mailto:[EMAIL PROTECTED]

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Parameters between vm and portlets

2002-06-18 Thread Stefan Kuhn

The error sounds as if your two-string-class is either not public or not 
available. Are you sure your class is public and the .class file is in the 
classpath, i. e. in $TOMCAT_HOME/webapps/jetspeed/WEB-INF ?
Stefan


Am Dienstag, 18. Juni 2002 11:12 schrieben Sie:
 oh sorry i didnt understood..
 tried with get-methods too:
 (exception invoking method 'getPath' in class
 org.apache.jetspeed.modules.actions.portlets.filebrowser$link :
 java.lang.IllegalAccessException)
 - Original Message -
 From: Stefan Kuhn [EMAIL PROTECTED]
 To: Jetspeed Users List [EMAIL PROTECTED]
 Sent: Tuesday, June 18, 2002 10:48 AM
 Subject: Re: Parameters between vm and portlets

  Hi Raffael,
  I don't understand exactly what's the problem, but I can assure you that

 it

  works. I'm using similar things (classes with quite a few attributes

 myself

  in Vectors, given to velocity) myself frequently.
  I sometimes had problems with accessing (public!) attributes, although
  according to velocity doc this should work as well. When I accessed the
  attribute via a get-method, it worked fine.
  Stefan
 
  Am Dienstag, 18. Juni 2002 09:48 schrieben Sie:
   i've tried with a class with two string, but doesnt work, it returns
   the address of the class, and cant go through the strings inside.
  
   - Original Message -
   From: Stefan Kuhn [EMAIL PROTECTED]
   To: Jetspeed Users List [EMAIL PROTECTED]
   Sent: Monday, June 17, 2002 6:11 PM
   Subject: Re: Parameters between vm and portlets
  
Hi Raffael,
you can't iterate over arrays in velocity, is has to be a vector or
  
   something
  
similar (something similar means a class implementing some

 interface,

collection or so, have a look in velocity doc for that). In your case

 it

should be possible simply to build a vector of java.io.File objects,

 the

class File has got method for getting the name and the path. You can

 call

these methods from your vm files.
The other possibility would be to write your own class containing two
  
   strings
  
and to put that into the vector  your choice.
Stefan
   
Am Montag, 17. Juni 2002 17:15 schrieben Sie:
 I've posted another one fo this, but seems no one read itor mayby

 i've

 wrote it bad, i'll post for the last time.

 I've seen in the sources that you can pass users from a portlet to
 a

 vm

 file, like that: Criteria criteria = new Criteria();
 User [] users   = JetspeedSecurity.getUsers (criteria);
 context.put(users, users);

 and in the vm i can do like this: $!user.Name etc, accessing
 records

 of

   the
  
 user 'array'.

 now i want to to a similar thing, but with my types, or at least i

 can

 build two arrays, but i dont know how to go through them

 simultaneously

   in
  
 vm.

 so, its impossible to build 'records arrays' and i have to use

 multiple

 arrays (and if so how i can use them simultaneously? i know only
 the foreach thingy in vm, how works a normal for?) or there is a
 way?

 (in

 theory should be, if turbine uses this way).

 i'm doing a file listing on multiple dirs, and for each file i want

 to

 separate the path from the filename, doing it in vm file..and from

 that

   the
  
 link goes to another portlet that shows the file.
   
--
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:
  
   mailto:[EMAIL PROTECTED]
  
For additional commands, e-mail:
  
   mailto:[EMAIL PROTECTED]
 
  --
  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:

 mailto:[EMAIL PROTECTED]

  For additional commands, e-mail:

 mailto:[EMAIL PROTECTED]

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: URL link

2002-06-14 Thread Stefan Kuhn

Hi,
it seems that not yet anybody answered, so I will do it:
Use /forumdemo/... instead of forumdemo/...
Stefan


Am Donnerstag, 13. Juni 2002 21:23 schrieben Sie:
 Hi
 I am trying to view from a page which is inside a jetspeed
 (/webapps/jetspeed) to another page which is outside jetspeed folder
 (/webapps/forumdemo).
 Can I view it?
 What happens if I try to give at following attribute at the left.vm file:

 tr
 td
   a href=$clink.setURI(forumdemo/servlet/forum?action=list/)
 smallForum/small
   /a
 /td
   /tr

 the URL comes to be
 http://localhost:8080/jetspeed/forumdemo/servlet/forum?action=list

 where as I want a URL to shown as:

 http://localhost:8080/forumdemo/servlet/forum?action=list


 Can one please help me how should I do?
 I shall be highly obliged for your kind response.
 Regards
 Deep

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Réf. : Default user PSML ?

2002-06-10 Thread Stefan Kuhn

Hi Pierre,
I knew that a new user gets the PSML of turbine, but I was wondering what the 
group and role directories in the WEB-INF/psml directory are for. Who gets 
these PSMLs ?
I also thought that in some cases it would be usefull to give a user another 
psml depending on role or group. For example the admin screen is totally 
different. If I want to have multiple admins, is there a way to give them the 
admin screen automatically (obviously it can be done by changing psml files 
manually)?
Thanks for any light on that topic
Stefan



Am Montag, 10. Juni 2002 10:23 schrieben Sie:
 The default.vm for new user is copied from turbine user's default.vm




 Hi..
 I want to change the default screen (portlets to be shown) for the first
 time when new user login...
 Each time I create a new user, it also create the same values of
 /psml/user/default.psml How can I change this values ?
 Can we make user has different default.psml when we create the user depends
 on his/her role ?

 Thanx,

 Ikki


 ___
 WIN a first class trip to Hawaii.  Live like the King of Rock and Roll
 on the big Island. Enter Now!
 http://r.lycos.com/r/sagel_mail/http://www.elvis.lycos.com/sweepstakes

-- 
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Problem with Role checking

2002-05-17 Thread Stefan Kuhn

Hi Josselin,
I had the same problem and I found out that it's possible to check 
permissions like that:
new JetspeedDBSecurityService().checkPermission(runData,yourpermission)
So if you give the role and only that role a certain permission you can check 
that instead... I know that this is more a workaround but better than nothing.
Stefan

Am Freitag, 17. Mai 2002 11:23 schrieben Sie:
 I'm using Jetspeed 1.3a2 on Tomcat 3.3.1 and It seems the rundata.getACL()
 does not work (return null). How can i check roles ? at runtime ?

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




Re: interportlet communication

2002-05-10 Thread Stefan Kuhn

Hi bharani,
I hope I can shed some light on the first topic, interportlet communication. 
If the portlet is a java portlet, i. e. a class implementing 
org.apache.jetspeed.portal.portlet, then you have in the getContent(RunData 
rd) method the runData object. This contains everything you need, e. g. 
session, servletRequest (and therefore the parameters from forms submitted by 
the user) and servletResponse. So you can for example have a form in one 
portlet and displaying the result of some action like a database query in the 
other.
I don't know what it is like with other portlets (don't use them), but it 
should be similar in a JSP-Portlet. HTML portlets should be static anyway.
HTH
Stefan

Am Freitag, 10. Mai 2002 19:07 schrieben Sie:
 Hi ,
   I have two requirement. 1. I need to communication between two
 portlet. 2. When i click on a link on one portlet, it should display the
 content of the link in the same portlet(i.e. refreshing the same portlet).

 I read that you can communicate between two portlets by sharing the session
 object. But i am not sure how i should proceed.. can someone tell me how to
 interportlet communication.


 thanks
 bharani

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




Re: file path

2002-05-06 Thread Stefan Kuhn

Hi bharani,
I'm not quite sure which is the current path in a servlet, but I do't think 
that it's the place the class is. I think it's related to url-pattern in 
the web.xml. But anyway, in your case
/jetspeed/myhtml/loggedin.html
should work
Hope this helps
Srefan

Am Montag, 6. Mai 2002 17:12 schrieben Sie:
 Hi all,
I have my login servlet under
 webapp/jetspeed/web-inf/classes/myservlets/login.class. I invoke a
 loggedin.html from this servlet. loggedin.html is located under
 webapp/jetspeed/myhtml/loggedin.html. so in my servlet, i gave


   window.open(../../../myhtml/loggedin.html);.


 but apache gives error saying resource /myhtml/loggedin.html couldnt not be
 found. I tried copying this file to various directories including the
 template directories under jetspeed but no success.. can someone how the
 file path is specified in jetspeed..


 thanks
 bharani.

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




Re: WebPagePortlet

2002-04-18 Thread Stefan Kuhn

Hi Gigi,
I don't know if this helps, but we used to use jdk 1.3 and when we changed to 
1.4, we got a lot of strange errors. Back to 1.3 it was working again. I 
don't know if there's a general problem of jetspeed with 1.4 (we didn't 
really bother with understanding why it didn't work), but in our case there 
was one. Perhaps it's the same with yours.
Stefan



Am Donnerstag, 18. April 2002 13:34 schrieben Sie:
 Paul
 Now I've reinstalled JetSpeed
 My JetSpeed is jetspeed-1.3a2 fullwar
 My Tomcat is 4.0
 My Jsdk is j2sdk-1_4_0
 But when I start a new installation of jetspeed and login with turbine and
 add a portlet JavaSoft (this portlet is a default in jetspeed), in the home
 page (turbine) there is the problem:
 org.apache.turbine.util.TurbineException: Error rendering Velocity
 template: /controls/html/jetspeed.vm: Invocation of method 'getContent' in
 class org.apache.jetspeed.portal.portlets.WebPagePortlet threw exception
 class java.lang.NoClassDefFoundError Tnx for your kindly collaboration.
 Gigi
  Gigi,
 This looks like an installation problem, because of
 java.lang.NoClassDefFoundError exception from an standard class,
 WebPagePortlet.

 1) What is the version of:
 Jetspeed
 Tomcat
 Java

 2) Have you modified Jetspeed?

 3) Send the the registry entry named MyHomePage, the parent of the entry.

 4) Does the portlet JavaWeb, which displays Sun's Java site, display the
 correct content?

 Paul Spencer

 Jakarta Apache wrote:
  Paul,
  I stay back a firewall, I resolve in my browser http://www.yahoo.com, but
  in the WebPagePortlet respond widh:
 
  org.apache.turbine.util.TurbineException: Error rendering Velocity
  template: /controls/html/jetspeed.vm: Invocation of method 'getContent'
  in class org.apache.jetspeed.portal.portlets.WebPagePortlet threw
  exception class java.lang.NoClassDefFoundError
 
  This is the problem! ;)
 
  Gigi
 
 
 
  Gigi,
  Then, you may have a firewall/proxy issue. See
  http://jakarta.apache.org/jetspeed/site/faq.html
 
  Paul Spencer
 
  Jakarta Apache wrote:
 Tnx Paul,
 but www.myhomepage.com is an example.
 http://www.yahoo.com no function!!!
 GigiGigi
 
 www.myhomepage.com does not exist. Unless you have defined the server
 myhomepage.com to your DNS or hosts file, then you are using a bad
  hostname.
 
 Paul Spencer
 
 Jakarta Apache wrote:
 Hi to All,
 
 I create my portlet:
 
 
 parent=MyHomePage application=false
 
 
 This is My Home Page.
 
 http://www.myhomepage.com
 
 
 
 http://www.myhomepage.com is a generic homepage from a website.
 
 I put this code into a new file user-portlets.xreg, I create this!!!
 
 When display my page error is:
 
 org.apache.turbine.util.TurbineException: Error rendering Velocity
  template: /controls/html/jetspeed.vm: Invocation of method 'getContent'
  in class org.apache.jetspeed.portal.portlets.WebPagePortlet threw
  exception class java.lang.NoClassDefFoundError
 
 Tnx for all your suggest!!!
 
 Gigi
 
 
 
 -
 Speciale Giochi - Civilization III
 
 --
 To unsubscribe, e-mail:
 For additional commands, e-mail:
 
 
 
 -
 Speciale Giochi - Civilization III
 
  --
  To unsubscribe, e-mail:
  For additional commands, e-mail:
 
 
 
 
  -
  Speciale Giochi - Civilization III

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




Re: JSP1_2andJetspeedTagLib doesn't work

2002-04-09 Thread Stefan Kuhn

James,
you can do that by implementing the interface 
org.apache.jetspeed.portal.Portlet and registering that class as a portlet. 
In that class you can evaluate all paramters, i. e. all fields from the form.
Look into the Portlet-Howto: 
http://www.bluesunrise.com/jetspeed-docs/PortletHowTo.htm - the doc is very 
good.
Concerning the restore-button: You can show all pages (the form as well as 
the answer) by the same Java-class. You just need some sort of 
action-paramter indicating if the user submitted the form or pressed the 
restore-button (which submits a form as well, but it has only one invisible 
field, the action field).
This solution is very similar to writing a servlet - there might be others, 
but this is simple and works - the Volkswagen-solution:-).
Hope it helps
Stefan

Am Dienstag, 9. April 2002 07:14 schrieben Sie:
 James,

 I have not written any actions in Jetspeed or Turbine.  Maybe someone
 else on the list can answer the question.  I also seem to thing their is
   documetation/how-to on the Jetspeed site.

 Paul Spencer

 WANG Zheng, James wrote:
  Dear all,
  I want to write a portal in jetspeed,input a query name,then connect
  to database and execute the simple sql statement  and output the result,
  all should be presented in portal screen,and i'd like , in the result
  page i can click the 'restore' button so i can go back the previous page.
  ,i can use ECS elements in my portlet to output query html code like
  below: .
  form action='xxx'
 input type='text' name='queryName'
 input name=action type=hidden value=QueryAction /
 input type='submit' value='query'
  /form
  ..
 
  my question is:
  1) how should i define the 'xx' in form action?
  i think it should be a template file,a jsp file or vm file,i cant define
  it with
  /template/home,but if that,the screen will be display all portlets in
  result
 
  screen,but my desired is  only this portal result with a 'restore' button
  on the
  right top of page.
 and i think there are only two steps and two pages in my portlets,
  search input  ---search result ,if i have three or more steps,such as
  search input  ---search input --- search result,inpuhow do i define
  'form action'
  in every steps?
 
  2) how do i code the QueryAction.java,how do i get database connection?
  i think i can write it manully with JDBC,but it seems that Turbine can
  implment
  this, how do i use Turbine database connection ?anyone call tell me?
 
 
  thanks!
 
  James Wang
 
 
  Best regards.
 
  James Wang
  
  gedas
  your IT partner
 
 
 
  Software Engineer
  Software Factory,Competence Center
  gedas (Shanghai) Information Technology Co.,Ltd
  38/F,Jin Mao Tower
  No.88,Century Boulevard,Pudong New Area
  Shanghai,200120,P.R.China
  Tel:+86-21-5047 0011- 403
  Fax:+86-21-5047 1801
  mailto:[EMAIL PROTECTED]
  www.gedas.com.cn http://www.gedas.com.cn
 
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: JSP1_2andJetspeedTagLib doesn't work

2002-04-09 Thread Stefan Kuhn

oh, there was one more question: What about databse connections in turbine?
Look in file:/home/shk3/tdk/webapps/site/turbine-docs/apidocs/index.html
Stefan


Am Dienstag, 9. April 2002 07:14 schrieben Sie:
 James,

 I have not written any actions in Jetspeed or Turbine.  Maybe someone
 else on the list can answer the question.  I also seem to thing their is
   documetation/how-to on the Jetspeed site.

 Paul Spencer

 WANG Zheng, James wrote:
  Dear all,
  I want to write a portal in jetspeed,input a query name,then connect
  to database and execute the simple sql statement  and output the result,
  all should be presented in portal screen,and i'd like , in the result
  page i can click the 'restore' button so i can go back the previous page.
  ,i can use ECS elements in my portlet to output query html code like
  below: .
  form action='xxx'
 input type='text' name='queryName'
 input name=action type=hidden value=QueryAction /
 input type='submit' value='query'
  /form
  ..
 
  my question is:
  1) how should i define the 'xx' in form action?
  i think it should be a template file,a jsp file or vm file,i cant define
  it with
  /template/home,but if that,the screen will be display all portlets in
  result
 
  screen,but my desired is  only this portal result with a 'restore' button
  on the
  right top of page.
 and i think there are only two steps and two pages in my portlets,
  search input  ---search result ,if i have three or more steps,such as
  search input  ---search input --- search result,inpuhow do i define
  'form action'
  in every steps?
 
  2) how do i code the QueryAction.java,how do i get database connection?
  i think i can write it manully with JDBC,but it seems that Turbine can
  implment
  this, how do i use Turbine database connection ?anyone call tell me?
 
 
  thanks!
 
  James Wang
 
 
  Best regards.
 
  James Wang
  
  gedas
  your IT partner
 
 
 
  Software Engineer
  Software Factory,Competence Center
  gedas (Shanghai) Information Technology Co.,Ltd
  38/F,Jin Mao Tower
  No.88,Century Boulevard,Pudong New Area
  Shanghai,200120,P.R.China
  Tel:+86-21-5047 0011- 403
  Fax:+86-21-5047 1801
  mailto:[EMAIL PROTECTED]
  www.gedas.com.cn http://www.gedas.com.cn
 
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: JSP1_2andJetspeedTagLib doesn't work

2002-04-09 Thread Stefan Kuhn

Sorry for that! It should the turbine API doc, class TurbineDB, for the 
Turbine database connection
This shows: Better look at what you copy and paste.
Stefan

Am Dienstag, 9. April 2002 14:26 schrieben Sie:
 oh, there was one more question: What about databse connections in turbine?
 Look in file:/home/shk3/tdk/webapps/site/turbine-docs/apidocs/index.html
 Stefan

 Am Dienstag, 9. April 2002 07:14 schrieben Sie:
  James,
 
  I have not written any actions in Jetspeed or Turbine.  Maybe someone
  else on the list can answer the question.  I also seem to thing their is
documetation/how-to on the Jetspeed site.
 
  Paul Spencer
 
  WANG Zheng, James wrote:
   Dear all,
   I want to write a portal in jetspeed,input a query name,then connect
   to database and execute the simple sql statement  and output the
   result, all should be presented in portal screen,and i'd like , in the
   result page i can click the 'restore' button so i can go back the
   previous page. ,i can use ECS elements in my portlet to output query
   html code like below: .
   form action='xxx'
  input type='text' name='queryName'
  input name=action type=hidden value=QueryAction /
  input type='submit' value='query'
   /form
   ..
  
   my question is:
   1) how should i define the 'xx' in form action?
   i think it should be a template file,a jsp file or vm file,i cant
   define it with
   /template/home,but if that,the screen will be display all portlets in
   result
  
   screen,but my desired is  only this portal result with a 'restore'
   button on the
   right top of page.
  and i think there are only two steps and two pages in my portlets,
   search input  ---search result ,if i have three or more steps,such as
   search input  ---search input --- search result,inpuhow do i define
   'form action'
   in every steps?
  
   2) how do i code the QueryAction.java,how do i get database
   connection? i think i can write it manully with JDBC,but it seems that
   Turbine can implment
   this, how do i use Turbine database connection ?anyone call tell me?
  
  
   thanks!
  
   James Wang
  
  
   Best regards.
  
   James Wang
   
   gedas
   your IT partner
  
  
  
   Software Engineer
   Software Factory,Competence Center
   gedas (Shanghai) Information Technology Co.,Ltd
   38/F,Jin Mao Tower
   No.88,Century Boulevard,Pudong New Area
   Shanghai,200120,P.R.China
   Tel:+86-21-5047 0011- 403
   Fax:+86-21-5047 1801
   mailto:[EMAIL PROTECTED]
   www.gedas.com.cn http://www.gedas.com.cn
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED] For additional
   commands, e-mail: mailto:[EMAIL PROTECTED]

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




Including new velocity variables in top.vm

2002-03-22 Thread Stefan Kuhn

Hi everybody,
in our project I need to include some additional data in the header of  the 
jetspeed website. I understood that this header is controlled by top.vm, 
which is called by default.vm. Because our data is not static and comes from 
a database, I need to put them in as velocity variables (or proporties or 
methods) which are retrieved by java code from the database. I understood 
that the values need to be put in the context by the class calling the 
template. And here is my problem: Which class is that? Where best put in the 
context.put() in order to have these values in top.vm?
I tried to find out it by myself but all these jetspeed classes are a bit too 
much for me :-)
Thanks for any advice
Stefan

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




Problem with EcsServletElement

2002-02-12 Thread Stefan Kuhn

Hi everybody,
I've got a portlet which is a java class. I want that portlet to do some 
calculations and to return the result via a JSP. I understood that the 
EcsServletElement is the way to do that. So I wrote the following code:

public ConcreteElement getContent(RunData runData) {
HttpServletRequest req = runData.getRequest();
String spec = req.getParameter(spectrum);
//Here the calculations
StringElement base=new StringElement();
base.addElement(new EcsServletElement(runData,result.jsp));
return(base);
}

I did it the way it's described in the Portlet Howto. It seems jetspeed can't 
find the jsp. The log is as follows:


[Tue Feb 12 12:13:04 CET 2002] -- ERROR -- EcsServletElement: Could not 
include the following URL: result.jsp : null
Exception:  java.lang.NullPointerException
Stack Trace follows:
java.lang.NullPointerException
at 
org.apache.jetspeed.util.servlet.EcsServletElement.output(EcsServletElement.java:127)
at 
org.apache.jetspeed.util.servlet.EcsServletElement.output(EcsServletElement.java:110)
at org.apache.ecs.ConcreteElement.output(ConcreteElement.java:322)
at org.apache.ecs.GenericElement.toString(GenericElement.java:723)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java)

and so on.
I tried to give the absolute URL (I copied it from my browser where I get a 
result), but it isn't working. I understood, that if I give no path the JSP 
is looked for in the directory given in the TurbineResources.properties with

services.JspService.templates =/WEB-INF/templates/jsp

But it's working in no way.
Help would be much appreciated. Thanks a lot!

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




Problems with EcsServletElement

2002-02-12 Thread Stefan Kuhn

Hi Paul,
thanks a lot for your reply. I well see that it would be another way to use a 
JSP-Portlet and to do everything in the JSP, but I thought it would be better 
to do the calculations (they are supposed to be rather ambitious) outside the 
JSP and to leave only the formatting to the JSP.
Stefan

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