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]

Reply via email to