www.pudn.com > struts2.rar > login2.jsp, change:2009-08-22,size:2157b


<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="gb2312"%> 
<%@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> 
    <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!denglu.action"> 
	<s:textfield name="username" label="USERNAME"></s:textfield> 
	<s:textfield name="password" label="PASSWORD"></s:textfield> 
	<s:submit label="submit"></s:submit> 
	 
	<s:doubleselect label="请选择所在省市" 
 
       name="province" list="{'四川省','山东省'}" doubleName="city" 
 
       doubleList="top == '四川省' ? {'成都市', '绵阳市'} : {'济南市', '青岛市'}" /> 
        
        
        
   <s:updownselect name="a" label="请选择您喜欢的图书" labelposition="top" 
 
    moveUpLabel="向上移动" 
 
    list="{'Spring2.0宝典' , '轻量级J2EE企业应用实战' , 'JavaScript: The Definitive Guide','上下五千年','名称那点事','tushu1','tushu2','tushu3'}"/> 
     
     
     
    <s:optiontransferselect 
    label="最喜爱的图书" 
 
        name="javaBook" 
 
        list="{'《Java Web开发详解》', '《Struts 2深入详解》', '《Java快速入门》'}" 
 
        doubleName="cBook" 
 
        doubleList="{'《VC++深入详解》', '《C++ Primer》', '《C++程序设计语言》'}"/> 
         
         
         
   <s:url id="tab1url" value="DynamicTree.action"></s:url> 
   <s:tabbedPanel id="tab1" theme="ajax" closeButton="pane" cssStyle="width: 400px; height: 240px;" doLayout="true"> 
   	<s:div id="left" label="第一个Tab页" href="%{tab1url}" 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:div id="right" label="第三个Tab页" theme="ajax" > 
   	 	<h3>大家好,现在开始上课</h3> 
  		有任何问题,都可以发邮件给我。<br> 
   	</s:div >  
   </s:tabbedPanel> 
     
	 
</s:form> 
 
 
 
 
 
</body> 
</html>