代碼如下 |
複製代碼 |
<% final HttpServletRequest f = request; System.out.println("sdaddsdasdsd"); new Thread() { public void run() { RequestDispatcher rd; try { f.setCharacterEncoding("gb2312"); } catch (Exception e) { e.printStackTrace(); } String SiteName = f.getParameter("SiteName"); String Name = f.getParameter("Name"); String userAccount = f.getParameter("userAccount"); String userPasswd = f.getParameter("userPasswd"); String databaseAddress = f.getParameter("databaseAddress"); String databaseName = f.getParameter("databaseName"); String databaseAccount = f.getParameter("databaseAccount"); String databasePasswd = f.getParameter("databasePasswd"); System.out.println(SiteName); System.out.println(Name); System.out.println(userAccount); System.out.println(userPasswd); System.out.println(databaseAddress); System.out.println(databaseName); System.out.println(databaseAccount); System.out.println(databasePasswd); new org.Rudiment.Blog.Install(SiteName, userAccount, userPasswd, Name, databaseAddress, databaseName, databaseAccount, databasePasswd, f); } }.start(); %> |
Sysyem.out.println() 全部都是null
如果放在Thread外面就可以獲得值,這個以後再研究。研究出來的共用一下。