?? chaxiu.jsp
字號:
?<%@ page contentType="text/html; charset=utf-8" import="java.sql.*" %>
<%@ include file="Conn.jsp" %>
<%
try{
String id=(String)session.getAttribute("ID");
ResultSet rs=getRs("select * from art where author_id='"+id+"'");
StringBuffer content=new StringBuffer("");
response.setContentType("text/xml");
response.setHeader("Cache-Control","no-cache");
content.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
content.append("<contents>");
while(rs.next()){
int ii=rs.getInt(1);
String author=rs.getString(3);
String title=rs.getString(4);
String AddT=rs.getDate(6).toString();
String cla= rs.getString(7);
content.append("<content>");
content.append("<author>"+ author +"</author>");
content.append("<title>"+ title +"</title>");
content.append("<class>"+ cla +"</class>");
content.append("<date>"+AddT+"</date>");
content.append("<id>"+ ii +"</id>");
content.append("</content>");
//out.print("fgdsfgdsfok");
}
content.append("</contents>");
System.out.print(content);
out.print(content);
}
catch(Exception e){
e.printStackTrace();
}
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -