⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 file_rename.jsp

📁 一款用 java开发的文件管理软件
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>文件夹重命名</title>
     <link rel="stylesheet" href="../css/default.css"/>
     
     <script type="text/javascript">
		function closeWin(){
			window.close();
		}
		
		function getElem(name){
		
			return document.getElementsByName(name);
		}
		
		function conditionChange(){
		
			if(getElem('newFileName')== null || getElem('newFileName') == ''){
				
				alert('文件名不能为空!');
				return false;
			}
			
			document.getElementById('alertForm').style.display = "block";
			document.getElementById('inputForm').style.display = "none";
		}
     </script>
</head>
<body>    
    
    <%
    	String fileId = (String)request.getParameter("fileId");
    	String fileName = (String)request.getParameter("fileName");
    	fileName = 	new String(fileName.getBytes("ISO-8859-1"),"utf-8"); 
	%>
    <form action="fileRename.action" onsubmit="conditionChange()">
    	<input type="hidden" name="fileId" value="<%=fileId%>">
    	<div id="inputForm">
	        <table class="default">
	            <tr class="title">
	            	<td colspan="2">文件夹重命名</td>
	            </tr>
	            <tr>
	                <td>新文件名:</td>
	                <td><input name="newFileName" type="text" value="<%=fileName %>"></td>
	            </tr>
	            <tr>
	                <td colspan="2" align="center"><input class="btn" type="submit" value="重命名"></td>
	            </tr>
	        </table>
        </div>
        
    </form>    
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -