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" <[EMAIL PROTECTED]>
To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to