www.pudn.com > struts2.rar > login.jsp, change:2009-08-21,size:1448b


<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
 
<% 
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%> 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
  <head> 
    <title>tabbled panel示例:简单tabbled panel</title> 
<s:head theme="ajax" debug="true"/> 
    <link rel="stylesheet" type="text/css" href="<s:url value="/struts/tabs.css"/>">     
</head> 
 
   
  <body> 
  	<s:form action = "login" namespace="dls"> 
  		uername:<s:textfield name="username" label="username"></s:textfield> 
  		password:<s:password name="password" label="password"></s:password> 
  		 
  		<s:submit></s:submit> 
  	 
  	</s:form> 
  	 
  	<s:tabbedPanel id="tab1" theme="ajax" cssStyle="width: 400px; height: 240px;" doLayout="true"> 
   <s:div id="left" label="第一个Tab页" theme="ajax" > 
    Spring2.0<br> 
    J2EE<br> 
    Ajax<br> 
   </s:div > 
   <s:div id="middle" label="第二个Tab页" theme="ajax" > 
    <h3>简介</h3> 
   有任何问题,都可以发邮件给我。<br> 
   </s:div >  
</s:tabbedPanel> 
 
  	 
  	<!-- 
    <form action="login.action" method="POST"> 
    username:<input type="text" name="username"><br> 
    password:<input type="password" name="password"><br> 
     
    <input type="submit" name="submit"> 
     
    </form> 
  --></body> 
</html>