Security in Tapestry

Component based framework for Java web applications. The template engine is also used in other projects, e.g. Cocoon

Security in Tapestry

Postby Alexa22 on Wed Jul 25, 2007 5:56 pm

Hi,
I have a problem, I'm developing a Tapestry's aplication and I need to active the security in there, but the page is autenticated by WAS (WebShere Application Server) and LDAP, When the user is already authenticate, I don't Know how to pass to the other page, My html is this:

Do you have any idea to solved it?

<body jwcid="@SimpleBorder" title="Autenticación">

<form method="post" action="j_security_check" onsubmit="return validar(this);">
<table align="center" class="marco" border="0" cellpadding="0" cellspacing="0">
<thead>
<tr>
<td>Autenticación</td>
</tr>
</thead>
<tr jwcid="@If" condition="ognl:mensajeError neq null" element="tr">
<td colspan="100"><div class="mensajeError"></div></td>
</tr>
<tr>
<td>
<table class="formulario">
<tr>
<td nowrap="true">Nombre Usuario:</td>
<td><input type="text" name="j_username"/></td>
</tr>
<tr>
<td>Contraseña:</td>
<td><input type="password" name="j_password" hidden="ognl:true"/></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Aceptar"/></td>
</tr>
</table>
<div jwcid="@Spacer" />
<tr>
<td align="center">MM</td>
</tr>
</td>
</tr>
</table>

</form>

<script type="text/javascript">

function validar(formulario){
if (formulario.j_username.value.length==0)
{
alert("Tiene que escribir su nombre de usuario");
return false;
}
if (formulario.j_password.value.length==0)
{
alert("Tiene que escribir su contraseña");
return false;
}
return true;
}

</script>

</body>
Alexa22
 
Posts: 1
Joined: Wed Jul 25, 2007 5:53 pm

Return to Tapestry

Who is online

Users browsing this forum: Alexa [Bot] and 0 guests

Powered by phpBB © 2001, 2005 phpBB Group