Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JSPÖеÄÖÐÎÄ×Ö·û´¦Àí

<%@ page contentType = "text/html;charset =gb2312"%>

<%!
    public String codeToString(String str)
  {
    String s =str;
    try{   
 
            byte[] tb = s.getBytes("ISO-8859-1");   
 
            s=new String(tb);   
 
            return s;   
 
        } catch(Exception e){ 
 
            return s;   
 
      }   
 
  }
%>
<html>
<body>
<form name="form1" action="chinessString.jsp" method ="post">
please input your name
<input type ="text" name = "username">
<input type ="submit" name ="submit" value="submit">
</form> <br>
<%
  if(request.getParameter("username")==null)
    out.println("you don't input name");
  else
    out.println("your name is :"+codeToString(request.getParameter("username"


Ïà¹ØÎÊ´ð£º

jspÖÐÏÔʾ²Ëµ¥£¨µÝ¹é£©

ÎÊÌâÃèÊö£º

    ÀýÈçÎÒÒªÏÔʾµÄÄÚÈÝÈçÏÂËùʾ

Ò»¼¶Ä¿Â¼1
    Ò»¼¶Ä¿Â¼1×ÓÀà1
        ×ÓÀà1
    Ò»¼¶Ä¿Â¼1×ÓÀà2
      ......

php¸újspÖ®¼äsession¹²ÏíµÄÎÊÌâ - Java / Web ¿ª·¢

×î½üÒ»¸öÏîÄ¿ÖÐÓöµ½Ò»¸öÎÊÌ⣺ÔÚÔ­ÓеÄÒ»Ì×ϵͳÖÐ(php¿ª·¢)Ìí¼ÓһЩС¹¦ÄÜ(jsp¿ª·¢)£¬Ô­À´Óû§ÏµÍ³¶¼ÊÇphp¿ª·¢µÄ£¬ÎÒÈçºÎÔÚjsp¿ª·¢µÄ¹¦ÄÜÖÐ×öµ½Óû§ÐÅÏ¢sessionͬ²½ÄØ£¿ ÓÐÈËÊÇ·ñÓÐ×ö¹ýÀàÒÔÏîÄ¿£¬ÏëÌýÌý´ó¼ÒµÄ¿´·¨
......

JSP µÄtable Ôõô°ó¶¨Êý¾Ý¿â¡£¡£ - Java / Java EE

tableÔõô°ó¶¨Êý¾Ý¿â£¬²¢ÇÒÓÃJavaScriptʵÏÖ·­Ò³¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£JavaScriptÄÜÏòJSPÒ³Ãæ´«µÝ²ÎÊýÂð
Äã˵µÄÎÊÌâÓеãÄǸö¡£¡££¬²»ºÃ»Ø´ð¡£¡£¡£¡£

jspÖÐtableÊÇÐèÒªhtml´úÂëÓëÒ³Ãæ¶Ë»ñÈ¡Êý¾Ý¿â²éѯºóµÄÐÅÏ¢½øÐÐ ......

Çó½Ìjsp useBean beanµÄÎÊÌâ - Java / Web ¿ª·¢

±ÈÈç˵DB.classÊÇÔÚ°ücom/zhl/jdbcϵÄ
ÄÇôDB.class·ÅÔÚʲôµØ·½ Èç¹ûÓÃ<jsp:useBean id="d" class=""/>À´ÒýÈëbean ÄÇôclassÊôÐÔÓ¦¸ÃÔõôд
Ðè²»ÐèÒªÏñservletÄÇÑù»¹ÒªÅäÖÃweb.xmlµÄ& ......

[¼±Óð¡] JSP+AJAX ÌøתÎÊÌâ. - Web ¿ª·¢ / Ajax

ÎÊÌâ: ÏÖÔÚÌá½»Ö®ºó¾Í²»ÄÜÌøµ½ajax.jsÖÐÖ¸¶¨µÄservlet 
  ¶øÊÇÓÖÖØнøÈëµ½ÁËpub_hotel_t.jspÒ³Ãæ. Ò²¾ÍÊÇûÓÐÖ´Ðе½ajaxÀïÃæÈ¥ ´ó¼Ò°ïæ¿´¿´ÊÇʲôԭÒò°É.
  ÊDz»ÊǺÍÌá½»µÄ°´Å¦ÓйØÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ