NewbeeQ: Getting User name from Jetspeed with JSP

2001-10-11 Thread Sigurður Reynisson

Hi all!

I've been playing around with the hello.jsp portlet in ver 1.3a2-dev
and added a database access to it, work's fine with calls to postgreSQL.

Now I'm trying to access the user name from Jetspeed. I want to use the
user name to access the postgreSQL database.

I've tryed using java.util.Hashtable and get a
java.lang.NullPointerException
and also org.apache.turbine.om.security.User and Jetspeed does not load
that 
portlet, in both cases I'm using org.apache.turbine.util.RunData.

The code for the Hashtable access (in hello.jsp):

%@ page import = org.apache.turbine.util.RunData %
%@ page import = java.util.Hashtable %
%
String username  = ;
try
{
Hashtable screenData = (Hashtable)request.getAttribute(
ScreenDataEditAccount );
username  = (String)screenData.get( username );
}
catch (Exception e)
{
out.print(e.toString());
}



%



Anyone with pointer's or url's for me?
TIA!
--
sr

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




Re: AW: Bug Reports 1.3a2

2001-10-11 Thread Raphaël Luta

Riedl Juergen wrote:

 First of all, WML awareness of 1.3a2:
 o yes, you can configure the anon/wml/default.psml as such, 
   also wml/top.vm and wml/bottom.vm
 
 What does it lack:
 o no login
 o even when registering as a new user there is no default 
   wml/default.psml attached to the user
 o the customiser does not regard wml
 
 What we did:
 o port of the html login to wml login
 o with each new login user a wml/default.psml is written
 
 Next steps:
 1)make the customiser wml aware as it shall be possible 
   from the webpage to select your desired wml portles
   (it seems to be foreseen with the HompageCustomizer.vm
   whis is not used to our investigations)


The Customizer has no real reason to be WML aware because what the
customizer manipulates is the PSML resource which is content-type
agnostic (ie a PSML page can used to produce any kind of content is the
controllers/controls/portlets defined inside are correct for the expected
media-type).
However, it does need some additionnal work to be fully WML compatible:
- provide a UI to allow the user to select the PSML resource he wants to edit.
   This resource may either be an existing resource got through Profiler.list()
   or a new resource for a Registry-known media-type.

[
  As an aside, I don't think the current process of creating PSML resources
  on user creation is a good idea. The architecture of the Profiler and Customizer
  is such that when a newly created user connects he would get the default
  anonymous home page (because of the Profiler fall-back mechanism) and he can try
  to customize it, but when saving the customized page, the Customizer does
  (or should) automatically set the User object in the ProfileLocator used for
  saving thus writing the customized resource in the user specific storage.

  The main benefit of this is that all your users get your current default page
  (even if you modified it after they were created) unless they specifically did
  customizations to the page.
]

- implement some customizable controls/controllers that correctly operate
   in WML mode


 2)having a wml customiser thus one can select from wml 
   his wml portlets as well
 


To implement this, you need at least to write WML templates for the Customizer
portlets and the controllers customization templates.
I'm not sure this would give you a very user friendly WML customizer though...


 As the documentation in detail is poor unfortunately (so we document what we did), 
this took us much time of debugging to get knowledge, how the things work.
 
 However, I'm optimistic, that we can implement at least  1)



Sorry about the state of documentation, I'm very bad at documenting things ; I
tend to think sometimes that reading the code is enough :(

 
 Juergen
 
 
-Urspr üngliche Nachricht-
Von:  David Sean Taylor [SMTP:[EMAIL PROTECTED]]
Gesendet am:  Mittwoch, 10. Oktober 2001 21:17
An:   [EMAIL PROTECTED]
Betreff:  RE: Bug Reports 1.3a2

1.3a2 is WML aware, however the customizer is not. When you say that you are
'extending 1.3a2 to make it WML aware', are you extending the customizer?




-Original Message-
From: Riedl Juergen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 10, 2001 1:40 AM
To: '[EMAIL PROTECTED]'
Subject: AW: Bug Reports 1.3a2


Does this mean, that WML as of 1.3a1 is excluded? We are
curently extending the 1.3a2 to make it WML aware.

Thanks

Juergen


-Urspr üngliche Nachricht-
Von:David Sean Taylor [SMTP:[EMAIL PROTECTED]]
Gesendet am:Dienstag, 9. Oktober 2001 19:43
An: [EMAIL PROTECTED]
Betreff:Bug Reports 1.3a2

We are closing in on releasing Jetspeed 1.3a2.
If you know of any bugs in 1.3a2, could you please send a

short description

of the bug(s) to this mailing list so we can get them fixed

before the

release.

Thanks

David






-

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]

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



-- 
--
Raphael Luta - [EMAIL PROTECTED]
Vivendi Universal Networks - Paris


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




AW: AW: Bug Reports 1.3a2

2001-10-11 Thread Riedl Juergen

Yes, as soon as we have a package ready (SW + docu)

What is the preferred document format? I tend to have it in XML using the toot-o-matic 
from Doug Tidwell, IBM (http://www6.software.ibm.com/dl/devworks/dw-tootomatic-p)
Currently it is in Winword. But for the future I will move on this using XML and 
cocoon's capabilities

Juergen




 -Urspr üngliche Nachricht-
 Von:  Paul Spencer [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Donnerstag, 11. Oktober 2001 13:38
 An:   [EMAIL PROTECTED]
 Betreff:  Re: AW: Bug Reports 1.3a2
 
 Riedl,
 Would you contribute your documentation so it can incorporated into
 Jetspeed?
 
 
 Riedl Juergen wrote:
 :
 :
  
  As the documentation in detail is poor unfortunately (so we document what we did), 
this took us much time of debugging to get knowledge, how the things work.
  
  However, I'm optimistic, that we can implement at least  1)
  
  Juergen
  
 
 
 Paul Spencer
 
 -
 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: AW: AW: Bug Reports 1.3a2

2001-10-11 Thread Paul Spencer

Riedl,
Winword is ok.  We use a XML base document format that is common to all
Jakarta projects, so I will have to do some editing.

You may email the document to me directly (paulsp at apache.org).  If
the document is large, i.e.  3MB, then compress it with Zip or tar.

Thank you,
Paul Spencer

Riedl Juergen wrote:
 
 Yes, as soon as we have a package ready (SW + docu)
 
 What is the preferred document format? I tend to have it in XML using the 
toot-o-matic from Doug Tidwell, IBM 
(http://www6.software.ibm.com/dl/devworks/dw-tootomatic-p)
 Currently it is in Winword. But for the future I will move on this using XML and 
cocoon's capabilities
 
 Juergen
 
  -Urspr üngliche Nachricht-
  Von:  Paul Spencer [SMTP:[EMAIL PROTECTED]]
  Gesendet am:  Donnerstag, 11. Oktober 2001 13:38
  An:   [EMAIL PROTECTED]
  Betreff:  Re: AW: Bug Reports 1.3a2
 
  Riedl,
  Would you contribute your documentation so it can incorporated into
  Jetspeed?
 
 
  Riedl Juergen wrote:
  :
  :
  
   As the documentation in detail is poor unfortunately (so we document what we 
did), this took us much time of debugging to get knowledge, how the things work.
  
   However, I'm optimistic, that we can implement at least  1)
  
   Juergen
  
 
 
  Paul Spencer
 
  -
  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]




Re: AW: Bug Reports 1.3a2

2001-10-11 Thread Akihiko

Another way to reproduce this bug follows below:

Starting with the default Jetspeed setup (just for reference)
Log in as Turbine
Customize the Home tab
Remove all of the portlets
Go to add portlets and add several
Click the Save button
Go back to the customizer for the Home tab
Switch the layout to Single Column
Try to remove a portlet

Horrible Exception: java.lang.reflect.InvocationTargetException:
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:373)
at java.lang.Integer.parseInt(Integer.java:454)
at
org.apache.jetspeed.modules.actions.controllers.RowColumnControllerAction.doDelete(RowColumnControllerAction.java:337)


--- Bernhard J. Hirschmann [EMAIL PROTECTED] wrote:
 
 Concerning my report below, I figured out something...
 
  If I choose i.e. Two Columns as the layout, it seems to be not
  possible to rearrange the portlets - a click on move right has
  no effect.
 
 This happens if you first have added a pane in the Menu pane layout mode
 (as it is the default when creating a new user) and then adding portlets
 into this pane.
 After switching then into a different layout mode like Three columns, no
 portlet rearrangement is possible anymore.
 
 But it comes worse... here are the steps to check this:
 
 - switch to Menu pane layout mode
 - remove the default 'home' pane
 - add a 'home2' pane
 - switch to MyColumns layout mode
 - add some portlets
 - switch to Three Columns layout mode
 - click 'save  apply'
 - switch to Menu pane layout mode
 - try to remove the 'home2' pane
 
 this encounters in the following exception:
 
 Horrible Exception: java.lang.reflect.InvocationTargetException:
 java.lang.NumberFormatException: null
   at java.lang.Integer.parseInt(Integer.java:373)
   at java.lang.Integer.parseInt(Integer.java:454)
   at
 org.apache.jetspeed.modules.actions.controllers.RowColumnControllerAction.do
 Delete(RowColumnControllerAction.java:337)
   at java.lang.reflect.Method.invoke(Native Method)
   .
   .
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




Re: AW: Bug Reports 1.3a2

2001-10-11 Thread Jacky ESAYAG


Hello,

 i'm not sure if these issues came out already:

 1) If i REFRESH the screen After saving  a pane in the customizer i
get an error.  This happens for several (not all) controls.
 2) When i add a new Portlet, the name of the portlet doesn't come out
ok!.  the name of the Last portlet added to the pane appears!.
 3) The Velocity Portlets don't show in the list of Portlets in the
Customizer Screen.   A user is not able to add the Portlet to his/her
pane!.

 please reply if i've not been clear enough
 thanks

 jacky


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




problems with jetspeed

2001-10-11 Thread Charlie Wu



 Hi all:
 
 I am having problems with the jetspeed sample implementation - I've read
 the FAQ about the need to have an smtp server locally and all that.. and I
 do have an SMTP server already running on the standard port 25.. yet I'm
 not getting any of the confirmation emails when I tried to create a new
 account. My mail server log doesn't show any activity from tomcat either..
 any ideas what could be wrong? The Turbine property file just says
 mailserver = localhost which is correct for me.. i verified this by telnet
 localhost 25 and sent an email from the command line, which worked w/o any
 problems
 
 Any ideas?
 
 Thanks
 
 Charlie
 
 
  Charlie Wu.vcf 

begin 600 Charlie Wu.vcf
M0D5'24XZ5D-!4D0-E9%4E-)3TXZ,BXQ#0I..E=U.T-H87)L:64-D9..D-H
M87)L:64@5W4-D]21SIF]C861E.U=E8B!496-H;F]L;V=I97,-E1)5$Q%
M.E-E;FEOB!!'!L:6-A=EO;B!$979E;]P97(-E1%3#M73U)+.U9/24-%
M.C0P.TS.3(M-3(X,PT*0412.U=/4DLZ.U-*-2TU0S(Y#0I,04)%3#M73U)+
M.E-*-2TU0S(Y#0I%34%)3#M04D5.TE.5$523D54.F-W=4!F]C861E+D-/
D30T*4D56.C(P,#$P-3`S5#(Q-38R,5H-D5.1#I60T%21`T*
`
end

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




RE: problems with jetspeed

2001-10-11 Thread Ignacio J. Ortega

Which version of jetspeed?

In any version you need to modify JetSpeed.properties file.. and
coostumize it to suit your need just at the end of the file..

This worked for me without problems..

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Charlie Wu [mailto:[EMAIL PROTECTED]]
 Enviado el: viernes 12 de octubre de 2001 1:37
 Para: '[EMAIL PROTECTED]'
 Asunto: problems with jetspeed
 
 
 
 
  Hi all:
  
  I am having problems with the jetspeed sample 
 implementation - I've read
  the FAQ about the need to have an smtp server locally and 
 all that.. and I
  do have an SMTP server already running on the standard port 
 25.. yet I'm
  not getting any of the confirmation emails when I tried to 
 create a new
  account. My mail server log doesn't show any activity from 
 tomcat either..
  any ideas what could be wrong? The Turbine property file just says
  mailserver = localhost which is correct for me.. i verified 
 this by telnet
  localhost 25 and sent an email from the command line, which 
 worked w/o any
  problems
  
  Any ideas?
  
  Thanks
  
  Charlie
  
  
   Charlie Wu.vcf 
 
 

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