我按照osgi的实例在eclipse中创建了一个osgi简单的web应用
不过现在我遇到了一个问题,
当我在提交中文信息的时候。获取到的是一段乱码;
在服务器获取参数值:
String username = request.getParameter("username");
我使用:request.setCharacterEncoding("UTF-8");
但是不知道为什么系统提示
java.lang.UnsupportedOperationException: HttpService only supports servlet 2.1 specification.
servlet 2.1,规范不支持这个方法。大家有遇到这样类似的问题吗?