Skip to content

Commit 4da5aa5

Browse files
author
jossonsmith
committed
Remove codes of setting output encoding to UTF-8 so
org.eclipse.tomcat's servlets.jar can be used for JAVAX_SERVLET
1 parent e5af34d commit 4da5aa5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

sources/net.sf.j2s.ajax/ajaxrpc/net/sf/j2s/ajax/SimpleRPCHttpServlet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws S
5959
}
6060
PrintWriter writer = resp.getWriter();
6161
resp.setContentType("text/plain");
62-
resp.setCharacterEncoding("utf-8");
62+
//resp.setCharacterEncoding("utf-8");
6363
String request = readAll(req.getInputStream());
6464
runnable.deserialize(request);
6565
runnable.ajaxRun();
@@ -72,7 +72,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
7272
}
7373
PrintWriter writer = resp.getWriter();
7474
resp.setContentType("text/plain");
75-
resp.setCharacterEncoding("utf-8");
75+
//resp.setCharacterEncoding("utf-8");
7676
runnable.deserialize(req.getQueryString());
7777
runnable.ajaxRun();
7878
writer.write(runnable.serialize());

sources/net.sf.j2s.ajax/readme.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ individual Jar archives" UNCHECKED!
55
Aug 20, 2006
66

77
This project requires JAVAX_SERVLET classpath variables for
8-
building. But it does not require JAVAX_SERVLET for running
9-
AJAX client.
8+
building. You can use the plugin org.eclipse.tomcat's servlets.jar
9+
for JAVAX_SERVLET variables.
10+
11+
But JAVAX_SERVLET are not required for running AJAX client.
1012

1113
Trying to export this plugin will fail because there are no
1214
dependency for JAVAX_SERVLET in the plugin dependencies. In

0 commit comments

Comments
 (0)