Dear Giuliano,
I have this code in my defaultLeft.jsp to allow users to login automatically
as generic visitor without specifying username and password.
Probably with some slight modifications you can put it in a jsp portlet...

<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed'
%>
<%@ page import = "org.apache.jetspeed.services.resources.JetspeedResources"
%>
<%@ page import = "org.apache.turbine.util.RunData" %>

<form method="POST" action="<jetspeed:dynamicUri/>"
enctype="application/x-www-form-urlencoded">
<input type="hidden" name="action"
value="<%=JetspeedResources.getString("action.login")%>">
<input type="hidden" name="username" value="visitor">
<input type="hidden" name="password" value="generic">
<input type="image" name="submit" value="<jetspeed:l10n
key="USERFORM_LOGIN"/>" SRC="images/enter.gif">

Good luck
Stefano

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 06, 2004 12:29 PM
Subject: login portlet


> Hi,
> I'm trying to make a Login portlet (velocity or jsp.. it's the same). If I
> choose velocity and use the same code in top.vm what action can I specify
> in the xreg file? And if I use jsp how can I replace the velocity
variables
> used in this code?
> Thanx!!!
>
> Giuliano Emma
>
>
> ---------------------------------------------------------------------
> 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