You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Bryan K. Cantwell" <br...@comcast.net> on 2004/06/06 18:48:38 UTC
send userid automatically in iframe portlet
I have a servlet that creates a calendar of events. It does a query of my
DB
and needs to be told who the user is (userid) for the sql.
I currently use it as an IFrame portlet, however, I would love to hear how
I
can make a portlet out of a servlet, or at least how I can dynamically send
the userid of the current user in the url...
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: send userid automatically in iframe portlet
Posted by Stefano Bianchi <st...@softeco.it>.
Dear Brian,
if your calendar webapp starts with a jsp, why don't you take user id from
jetspeed rundata object and then send it to your servlet?
This code sends (on click!) to a servlet user id, first name, last name,
email:
<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed'
%>
<%@ page import = "org.apache.turbine.util.RunData" %>
<%@ page import = "org.apache.jetspeed.services.rundata.JetspeedRunData" %>
<%RunData data = (RunData)request.getAttribute("rundata");%>
<a href="#"
onClick="newWin('/MyWebapp/MyWebappservlet?uid=<%=((JetspeedRunData)
data).getUserId()%>&fname=<jetspeed:info requestedInfo="FirstName"
/>&lname=<jetspeed:info requestedInfo="LastName"/>&email=<jetspeed:info
requestedInfo="Email" />');return false;">
Hope it helps
Stefano
----- Original Message -----
From: "Bryan K. Cantwell" <br...@comcast.net>
To: "'Jetspeed Users List'" <je...@jakarta.apache.org>
Sent: Sunday, June 06, 2004 6:48 PM
Subject: send userid automatically in iframe portlet
> I have a servlet that creates a calendar of events. It does a query of my
> DB
> and needs to be told who the user is (userid) for the sql.
> I currently use it as an IFrame portlet, however, I would love to hear
how
> I
> can make a portlet out of a servlet, or at least how I can dynamically
send
> the userid of the current user in the url...
> thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
logging problems in Jetspeed
Posted by Stefan Rennick Egglestone <sr...@Cs.Nott.AC.UK>.
I'm writing a web-interface to another application using Jetspeed. I've
just updated my CVS of the other application, and I'm now getting the
following error line repeated multiple times
log4j:ERROR Attempted to append to closed appender named [jetspeed].
log4j:ERROR Attempted to append to closed appender named [jetspeed].
log4j:ERROR Attempted to append to closed appender named [jetspeed].
...
I'm guessing that the people who've written the other application have
done something to the setup of log4j which has meant that Jetspeed
logging has gone wrong. Unfortunately, I have to use the latest version
of this other application, so I was wondering if I might solve the
problem of the error messages above by turning off Jetspeed logging.
Anyone any idea how I do this?
Stef
This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org