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 gi...@sorma.com on 2004/10/06 12:29:03 UTC

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: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: login portlet

Posted by Stefano Bianchi <st...@softeco.it>.
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: <gi...@sorma.com>
To: <je...@jakarta.apache.org>
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: 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