1.JSP ä¸ä¼ ä¸è½½ä»£ç
2.谁有做好的框框架大漠喊话源码jsp页面 只有板式框架的就行 要源代码 谢谢各位
JSP ä¸ä¼ ä¸è½½ä»£ç
æç»ä½ æï¼
1.é¦å ä¸è¿ä¸¤ä¸ªå commons-fileupload-1.2.1.jarï¼commons-io-1.3.2.jar
2.ç¼ååå°é¡µé¢
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<body>
<form action="<%=request.getContextPath()%>/UploadServlet" method="post" enctype="multipart/form-data">
username:<input type="text" name="username"><br>
password:<input type="password" name="password"><br>
file:<input type="file" name="file"><br>
<input type="submit" value="submit"><br>
</form>
</body>
</html>
3.ç¼åservlet
package cn.jci.upload.servlet;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet..jci.upload.servlet.UploadServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UploadServlet</servlet-name>
<url-pattern>/UploadServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
5.åå¸
okäº
è¿æ¯æåå§çä¸ä¼ æ件çåæ³ï¼ç°å¨struts2ä¸ä¼ çè¯ï¼å°±è¦è½»æ¾å¥½å¤
谁有做好的jsp页面 只有板式框架的就行 要源代码 谢谢各位
用frameset把~他可以指定左边菜单的连接跳到中间去! 比include要好! 你把代码复制过去把里面的jsp路径改成你自己的!试试! <html> <head> </head> <!-- 框架集包含一个小框架集和一个头部jsp --> <frameset rows=",*" cols="*" frameborder="NO" border="0" framespacing="0"> <frame src="<%=request.getContextPath()%>/form/index/top.jsp" name="top" scrolling="NO" noresize> <!-- 小框架集包含三个jsp,第一个:菜单,第二个:缩进条,第三个:主页面 --> <frameset name="mainframe" id="mainframe" rows="*" cols=",9,*" framespacing="0" frameborder="NO" border="0" bordercolor="#"> <frame src="<%=request.getContextPath()%>/form/index/tree.jsp" name="left" scrolling="Yes" noresize> <frame scrolling=No noresize="true" name=toogle marginwidth=0 marginheight=0 src="<%=request.getContextPath()%>/form/index/toogle.jsp"> <frame src="<%=request.getContextPath()%>/form/index/main.jsp" name="center" scrolling="Yes" noresize> </frameset> </frameset> <body> </body> </html>
2024-11-30 11:19
2024-11-30 10:42
2024-11-30 10:25
2024-11-30 10:23
2024-11-30 10:04
2024-11-30 09:20