Buenas! Tengo una página hecha con Struts2 con el típico formulario de login formador por dos texbox (usuario y contraseña) más un botón. Quiero que aparezcan todos en la misma fila ya que quiero montar una cabecera al estilo Facebook...pero no consigo hacerlo. ¿Alguna idea?
Aquí el código de la cabecera:
LOGIN.JSP
Código:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#A9A067" >
<s:actionmessage />
<s:form action="Login.action" method="post">
<div>
<s:textfield name="userLog" key="label.userLog" size="20" /><s:password name="passLog" key="label.passLog" size="20" /><s:submit method="execute" key="label.log" align="center" />
</div>
</s:form>
<p>¿Has olvidado tu contraseña? <s:a href = "RetrievePaswword.action">Click aquí</s:a></p>
</body>
</html>
Y aquí la de la página que lo contiene:
INDEX.JSP
Código:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<frameset border="0" frameborder="0" framespacing="0" rows="24%,*">
<frame style="display: inline" noresize="noresize" src="login.jsp" />
<frame noresize="noresize" src="register.jsp" />
</frameset>
</html>