ÎÒÏëд¸öÑéÖ¤³ÌÐò(JAVA)£¬¿Í»§¶ËÊäÈëÓû§ÃûºÍÃÜÂ룬·ÃÎÊÍøÂç·þÎñÆ÷µÄJSP³ÌÐò£¬JSP½øÐÐÑéÖ¤£¬°ÑÑéÖ¤½á¹û·´À¡¸ø¿Í»§¶Ë£¬ÏÖÔÚÎÊÌâÊÇ
1£¬JSPÔõôÑùÉ趨·µ»ØÖµ£¬ÊÇÓÃresponseô£¿
2£¬¿Í»§¶ËÔõô½ÓÊÜ·´À¡»ØÀ´µÄ´¦Àí½á¹û£¿
public String Httpcertify(){
String urlStr =&n ......
<%@page language="java" contentType="text/html;charset=gb2312" import="java.sql.*"%>
<jsp:useBean id="db" class="wang.connectDB"/>
<%
String name=request.getParameter("username");
String psw=reques ......
jspѧϰǰҪÁ˽âÄÇЩ֪ʶ£¿Ñ§ÁËjavaÁË¡£²»ÖªµÀ»¹ÒªÑ§Ï°Ð©Ê²Ã´ÖªÊ¶²Å¿ÉÒԺܺõÄѧϰjsp
HTML¡¢JavaScript
Ö±½Óѧ¾Í¿ÉÒÔÁË£¬Óöµ½²»»á¾ÍÏÖѧ¾ÍÐС£
Html css servlet
È¥Á˽âä¯ÀÀÆ÷Óëweb·þÎñÆ÷µÄ¼òµ¥½»»¥¹ý³Ì£¬html,js,css,ͨ¹ýʹÓÃservletÉîÈëÁ˽⽻»¥µÄ¹ý³Ì¡£
²»ÓÃÒ»ÏÂ×ÓÏëѧµÃºÜÉºÜ¶à¶«Î÷ÓöàÁ˾ͻáÁ ......
ÓиöjavaµÄ×Ö·û´®str£¬¸ñʽ´ó¸ÅÊÇÕâÑù str="1.****** \n 2.****************\n";
ÔÚ³ÌÐòÖдòÓ¡Õâ¸ö×Ö·û´®Ã»ÓÐÎÊÌ⣬ÄÜÕýÈ·»»ÐУ¬¿ÉÊÇͨ¹ý¶ÔÏ󴫵ݵ½jspÒ³Ã棬ʹÓÃel±í´ïʽµÄ·½Ê½È´²»ÄÜ»»ÐÐÁË£¬ÇëÎÊstruts2±êÇ©ÀïÓÐʵÏÖÕâÖÖ¹¦Äܵıêǩô£¿»¹ÊÇҪͨ¹ýÆäËûµÄ·½Ê½À´×ö£¿
лл£¡
str.replace("\n&q ......
ÎÒÏë×ö¹»¹ºÎï³µÓÃsession µ«ÊDz»ÖªµÀÔõô»ñÈ¡¹ºÂòÊýÁ¿ ËÓоßÌåµÄ´úÂëÂð Ï£ÍûÄܸîÉá
ÏÂÃæÊǹºÎï³µµÄºËÐÄ´úÂë
ÓÐÁËÕâ¸ö ¾ÍÓ¦¸ÃÄܹ»×ö³öÀ´°É
Java code:
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
HttpS ......
ÔÚsolarisÉÏÔËÐÐtomcat,ÎÒÔÚjspÒ³ÃæÀïÃæµÄjava´úÂëÀïÃæдÁËSystem.out.println£¬Õâ¸ö±ê×¼Êä³ö±»¶¨Ïòµ½ÄÄÀïÈ¥ÁË£¬ÎÒÈçºÎ²é¿´ÄØ?
лл!!!!!
ºÍÔÚÖ±½ÓÔÚjavaÖÐдSystem.out.printlnµÄÊä³öÊÇͬһ¸öµØ·½.Ó¦¸ÃÔÚ±ê×¼Êä³öÉ豸ÖÐ.ÈçÆÁÄ»,¿ØÖÆ̨µÈ.¿´ÄãÔõôÆô¶¯µÄtomcatÁË.
End_rbody_60447375//-->
¸Ã»Ø¸´ÓÚ2009-1 ......