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

ÎÒµÄjsp - Java / Web ¿ª·¢

ÎÒ¸Õ¸Õѧµ½javabean ÕâÀï ½ñÌìÕÕ×ÅÊéдÁËÒ»¸ö µ«ÊÇÔõô¶¼ÔËÐв»ÁË ÎÒ µÄ classÎļþ´æ·ÅµÄ·¾¶ÊÇÕâÑùµÄ  
F:\tomcat\Tomcat 6.0\webapps\ROOT\WEB-INF\classes\tom
¡¶ËµÃ÷Õâ¸ö¡·
Õâ¸öjavaÎļþµÄ´úÂëÊÇÕâÑùµÄ
Java code:

package tom;
import java.io.*;
public class Circle
{
int radius;
public Circle()
{
radius=1;
}
public int getRadius()
{
return radius;
}
public void setradius(int n)
{
radius=n;
}
public double circleArea()
{
return Math.PI*radius*radius;
}
public double circlelength()
{
return Math.PI*2*radius;
}

}


Õâ¸öjavaÎļþÊÇ·ÅÔÚF:\tomcat\Tomcat 6.0\webapps\ROOT\WEB-INF\classesÖÐµÄ  
   


È»ºóÎÒµÄjspÎļþÊÇ·ÅÔÚF:\tomcat\Tomcat 6.0\webapps\ROOT\MyJspÕâ¸öÖÐµÄ È»ºóµ÷ÓÃÔõô¶¼ÕÒ²»µ½Õâ¸öclassÎļþ ÊÇʲôÎÊÌâѽ ´ó¼Ò°ïÎÒ·ÖÎö·ÖÎö ÎÒ¿ì±ÀÀ£ÁË ¾´Àñ
HTML code:

<%@page contentType="text/html;charset=GBK"%>
<%@page import="tom.jiafei.Circle"%>
<html><body bgcolor=cyan><font size=3>
<jsp:useBean id="circle" class="tom.Circle" scope="page"/>
<%
circle.setradius(8


Ïà¹ØÎÊ´ð£º

JSP/Servlet½»»¥ - Java / Web ¿ª·¢

JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
  JSPÒ³Ã潫²ÎÊýPOST¸øservlet
  
  ÒªÇóÈçÏÂ;
  1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......

java ÇóÖú - Java / Java EE

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

c/sºÍb/sÖ®¼äÔõôͨѶ. - Java / Web ¿ª·¢

ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾­ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾ­Ìá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......

jspºÍtomcatÎÊÌ⣬¿ì·èÁË - Java / Java EE

ÎÒдÁ˸öjspÒ³Ã棬Ȼºó¸Ä¶¯ÁËһϣ¬¸Ä¶¯µÄÄÚÈݾÍÊÇÔÚjspÒ³ÃæµÄjsº¯ÊýÀï¼ÓÁ˸öalert()Óï¾ä£¬µ«ÊÇÎÒ·ÃÎÊÕâ¸öÒ³Ãæʱ£¬ËÀ»î¶¼ÊÇÔ­À´Ò³ÃæµÄÄÚÈÝ£¬ÎÒ¼ÓÁ˺ܶàalertº¯Êý»¹ÊÇû¸Ä¶¯Ç°µÄÒ³ÃæÄÚÈÝ£»tomcatÖØÆôÁË£¬Ò²ÖØв¿ÊðÕâ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ