You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alexa22 <al...@gmail.com> on 2007/07/25 16:48:33 UTC

j_security_check Tapestry

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, My html is this: but I don't know later of
authenticated the user to take it to the main page!!..

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>
-- 
View this message in context: http://www.nabble.com/j_security_check-Tapestry-tf4142640.html#a11784126
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org