[J2ME] 服務(wù)器端servlet相關(guān)知識(shí)
服務(wù)器端servlet中 PrintWriter out=response.getWriter() 用法1. 打個(gè)通俗的比方就是通過HttpServletResponse對(duì)象得到一支筆,然后就可以用out.print()方法在網(wǎng)頁上寫任何你想顯示的內(nèi)容。
out.print("<html><body>");
out.print("任何內(nèi)容");
out.print("</body></html>");
2. 通過PrintWrite,以流方式輸出html,返回給客戶端,顯示在IE上。
posted on 2008-09-01 16:45 騎豬闖天下 閱讀(350) 評(píng)論(0) 編輯 收藏