日期:2014-05-17 浏览次数:20670 次
<filter> <filter-name>encodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>GBK</param-value> </init-param> </filter> <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%> <form method="post" action="useraction!add"> username:<input type="text" name="user.name"><br/> password:<input type="password" name="user.password"><br/> <input type="submit" value="提交"/> </form>