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

¹ØÓÚjspµÄһЩСÎÊÌâ - Web ¿ª·¢ / JavaScript

ÎÒÏëÓÃjavabeanʵÏÖ¼ÆÊý
´úÂëÈçÏ£º
ComputerCount.java
package tom.jiafei;
import java.io.*;
public class ComputerCount{
  int number=0;
  boolean iscome=false;
  File file=new File("Count.dat");
  private void countpeople(){
  if(!file.exists())
  {
  number++;
  try{
  file.createNewFile();
  FileOutputStream out=new FileOutputStream(file);
  DataOutputStream dataOut=new DataOutputStream(out);
  dataOut.writeInt(number);
  out.close();
  dataOut.close();
  }
  catch(IOException ee){}
  }
  else
  { try{ FileInputStream in=new FileInputStream(file);
  DataInputStream dataIn=new DataInputStream(in);
  number=dataIn.readInt();
  number++;
  in.close();
  dataIn.close();
  FileOutputStream out=new FileOutputStream(file);
  DataOutputStream dataOut=new DataOutputStream(out);
  dataOut.writeInt(number);
  out.close();
  dataOut.close();
  }
  catch(IOException ee){}
  }
  iscome=true;
  }
&nbs


Ïà¹ØÎÊ´ð£º

JSP ÍøÒ³ÖÐÈçºÎÈ¥µôradioÿ¸öÑ¡ÏîÇ°µÄÄǸöСԲȦ

ÈçÌ⣬ÎÒÊÇÓÃstruts2×öµÄÍøÒ³£¬ÓÃÁËradio±êÇ©£¬Ã¿¸öÑ¡ÏîÇ°¶¼ÓÐÒ»¸öСԲȦ£¬ÎÒÐèÒª°ÑСԲȦȥµô£¬µ¥»÷×־ͺ㬱»Ñ¡ÖеÄÑ¡Ïî±³¾°±äÉ«¡£
¾ÍÏñ´ó¶àÊýÍøÕ¾µÄ·ÖÀà¼ìË÷£¬±ÈÈçÕâ¸öÍøÕ¾µÄÄÇÑùµÄ¸ù¾Ý¸÷ÖÖÌõ¼þµÄʵʱËÑË÷£º
ht ......

jspÌøת

ÎÒµãºóÍËʱÊÇ¿Õ°×Ò³Ãæ
ÐèˢвÅÄÜÏÔʾ
Õâ¸öÔõô´¦Àí°¡
Çë´ó¼Ò°ï°ïæ
°ÑÎÊÌâ˵µÄÏêϸһЩ£¬ÕâÑùÓÐÖúÓÚÎÊÌâµÄ»Ø¸´£¬¼°´ð°¸µÄ׼ȷÐÔ£¡

ÎÒ¾õµÃÊÇÄãµÄä¯ÀÀÆ÷Æ÷µÄÎÊÌâ°É£¬ÎÒÒÔÇ°Óöµ½¹ýÕâÑùµÄÎÊÌ⣬°ÑIEµÄËùÓÐÊôÐÔÖ ......

jsp³¬Á´½ÓÎÊÌâ

ÎÒµÄÍøÒ³ÊÇÕâ¸ö http://127.0.0.1:8080/ch1/test.jsp
ÎÒÒª·ÃÎÊ www.126.com
ÏÔʾ½á¹ûΪ http://127.0.0.1:8080/ch1/www.126.com#

JSPÒ³ÃæÊÇÕâÑùдµÄ£¬ÓÃÁËstruts¿ò¼Ü
<a href=" www.126.co ......

Ë­ÄÜ°ïÎÒÏÂjspÖеķÖÒ³ÏÔʾ

ÐÂÊÖÎÊÏ£¬jspÒ³ÃæÓ¦¸ÃÔõôд£¬java´úÂë²»ÒªÔÚjspÒ³ÃæÖÐÏÔʾµÄÄÇÖÖ
Äã±ØÐëдһ¸öjavaÀ࣬ÔÚservletÀïÃæÌî³äÄãÐèÒªµÄÊý¾Ý£¬È»ºóÔÚÒ³ÃæÉÏÄãÓÃel±í´ïʽºÍÒ»¸ö <jsp:include file="a.jsp"/>

  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ