Skip to content

Commit 8f7ad63

Browse files
committed
update post
1 parent b118ff0 commit 8f7ad63

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

jquery/.idea/workspace.xml

Lines changed: 13 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery/ch6/jsp/demo4-post/post2.jsp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2+
<%
3+
request.setCharacterEncoding("UTF-8");
4+
String username = request.getParameter("username");
5+
String content = request.getParameter("content");
6+
response.setContentType("text/xml");
7+
out.println("<?xml version='1.0' encoding='UTF-8'?>");
8+
out.println("<comments>");
9+
out.println("<comment username='"+username+"'>");
10+
out.println("<content>"+content+"</content>");
11+
out.println("</comment>");
12+
out.println("</comments>");
13+
%>

0 commit comments

Comments
 (0)