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

javaÖд«Öµ - Java / Web ¿ª·¢

¾ÍÊǼòµ¥µÄ´«ÖµºÍȡֵ
ÇëÎÊÂ¥Ö÷ÏëÎÊʲô£¿

jspÒ³Ãæ²ÉÓÃ±íµ¥»òÕßjavabean´«Öµ¶¼¿ÉÒÔ£¬Ê¹ÓÃrequest.getParameter()»ñµÃʹÓÃ±íµ¥´«¹ýÀ´µÄÖµ¡£

ÎÊÎÊÌ⣬ÏȰÑÎÊÌâ˵Çå³þµã£¡£¡ ÎÊÌâ̫ģºý£¡£¡

ÎÊÎÊÌ⣬ÏȰÑÎÊÌâ˵Çå³þµã£¡£¡ ÎÊÌâ̫ģºý£¡£¡

Èç¹ûÊÇjsp¼ä´«Öµ£¬¿ÉÒÔͨ¹ýformºÍ³¬Á´½ÓµÄ·½Ê½
a.jspHTML code:

<a href="b.jsp?userid=zs">jump</a>


HTML code:

<form action="b.jsp" method="get>
<input type="text" name="userid" value="zs" />
<input type="submit" value="Ìá½»">
</form>


b.jspȡֵ£¬ÔÚÒ³ÃæÍ·²¿ÒýÈëjavaµÄ°ü
HTML code:

<% String str=request.getParamerer("userid");%>


Èç¹û´«µÝÖÐÎÄÖ¸¶¨methodΪpost

Â¥ÉϹ»Ïêϸ

ȡֵ£¿ ·½·¨¾ÍÌ«¶àÁË¡£
  Â¥ÉÏÒѾ­ËµÁ˺ܶ෽·¨ÁË¡£
  Ä㻹¿ÉÓÃstruts¿ò¼ÜÖеıêǩ֮ÀàµÄ¡££¡

Ò²¿ÉÒÔͨ¹ýÉèÖÃRequest¼üÖµ¶ÔÀ´´«Öµ£¬ÉèÖãºrequest.setAttribute£¨name£¬value£©
Ìø×ªºóµÄȡֵ£ºrequest.getAttribute£¨name£©¼´¿É»ñµÃ Äã´æµ½requestµÄÖµ


JavaBean£º¿ÉÒÔͨ¹ýgetterºÍSetter»¹¿ÉÒÔͨ¹ý¹¹Ôì·½·¨´


Ïà¹ØÎÊ´ð£º

JSP ½ÓÊÕ FORM Ìá½» - Java / Web ¿ª·¢

Ò»¸öJSPÒ³Ãæ½ÓÊÕÆäËûÒ³ÃæÌá½»¹ýÀ´µÄFORM±íµ¥£¬µ«ÊÇÒªÇóÖ»½ÓÊÕµ±Ç°Õ¾µã¼°Æä×ÓÕ¾µãÌá½»¹ýÀ´µÄFORM±íµ¥£¬ÆäËûÕ¾µãÌá½»¹ýÀ´µÄ±íµ¥²»½ÓÊÕ£¬Õâ¸öÔõôÉèÖã¿
ÓùýÂËÆ÷
filter
½«µ±Ç°Õ¾µã¼°Æä×ÓÕ¾µã·ÅÒ»¸öĿ¼ 
È» ......

java´òÓ¡ - Java / Java EE

ÓÐË­ÓÃjava×ö¹ý´òÓ¡·¢Æ±µÄ³ÌÐò£¬¸Ð¾õÕâ·½Ãæ²»ÊǺܺÿØÖÆ£¬Ï£Íû¸øµã½¨Ò飬×îºÃÄܸø³ö´úÂë
¼òµ¥µã¾Íµ÷ÓÃwindow.print()
ÄãÒ²¿ÉÒÔ°ÑÏÂÃæ´úÂë·Åµ½ÄãJSPÖÐ:
<html>
 <head>
  <title> ......

java ÇóÖú - Java / Java EE

insert into [ScholarshipManagement].[dbo].[department] ([department],[specialization] ,[grade]) output inserted.departmentID values(? ,? ,? )
ÇëÎÊ´ó¸çÃÇÕâ¸ösql Óï¾äÓ¦¸ÃÓÃJavaÀïµÄÄǸöÊý¾Ý¿â²Ù×÷·½·¨£¿ ......

jspÐÂÊÖ,Çë½Ì¸÷λ? - Java / Web ¿ª·¢

³ÌÐòÈçÏÂ:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" %>
<%@ page import="com.mysql.jdbc.Driver" %>
<%@ page import ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ