小技巧+apache的下载地址

1:在jsp中获取服务器的版本信息
<%= application.getServerInfo() %>  
2:javascript在jap中提交待中文的参数,在后台取得为乱码,解决方法
jsp代码
document.forms[0].action = "updateUsers.do?editUTxt=" + encodeURI(editUTxt) ;//post提交  

java代码
String tempEditUTxt = request.getParameter("editUTxt");                
System.out.println(tempEditUTxt );  
try {           System.out.println(java.net.URLDecoder.decode(tempEditUTxt ,"UTF-8"));  
} catch (UnsupportedEncodingException e) {  
    e.printStackTrace();  
}
3.tomcat增加用户tomcat-users.xml文件增加
<role rolename="manager"/>
<user username="tomcat" password="" roles="manager"/>
4.apache的下载地址
http://www.apache.org/dist

你可能感兴趣的:(JavaScript,java,apache,tomcat,jsp)