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

java web±ê¼Ç¼¼Êõ

1 jsp »ù´¡¸ÅÄî
    jspÊÇÔÚ´«Í³µÄhtmlÒ³ÃæÖУ¬¼ÓÈëjavaµÄ³ÌÐòƬ¶ÎºÍjsp±ê¼Ç£¬¾Í¹¹³ÉÁËjspÒ³Ãæ¡£µ±web·þÎñÆ÷Óöµ½¶ÔjspµÄ·ÃÎÊÇëÇóʱ£¬ÏÈÖ´ÐÐ¶ÔÆäÖеÄjava³ÌÐòƬ¶Î£¬È»ºóÒÔhtmlµÄ¸ñʽ·µ»Ø¸øÓû§¡£   java³ÌÐòƬ¶Î¿ÉÒÔÓÃÀ´²Ù×÷Êý¾Ý¿â£¬Öض¨ÏòÍøÒ³£¬»òÕßÊÇ·¢ËÍE-mail ,ÑéÖ¤µÇ½ÐÅÏ¢£¬ ÕâЩ²Ù×÷¶¼ÊÇÔÚ·þÎñÆ÷¶ËÍê³É£¬Óû§½ö½öÊǵõ½ÔËÐкóµÄ½á¹û¡£
  ¿ÉÒÔÏëÏó£¬jspÆäʵ¾ÍÊÇServletµÄÁíÒ»ÖÖÐÎʽ£¬µ±jspÒýÇæ¶ÔJspÒ³Ãæ½øÐнâÎöºó»áÉú³ÉÒ»¸öÀàËÆServletµÄÎļþ£¬È»ºó½»ÓÉServletÒýÇæ±àÒëÖ´ÐС£
  Ò²¾ÍÊÇ˵ jsp ºÍServletÔÚ±àÒëºóÔÚ·þÎñÆ÷ÖеÄÐÎʽÊÇÒ»Öµġ£
2 ±ê¼Ç¿â¼¼Êõ
    ²úÉúµÄÔ­Òò£º
   £¨1£© java³ÌÐòÔ±ºÍÒ³ÃæÃÀ¹¤ÈËÔ±±ØÐëͬʱ¹¤×÷¡£ÕâÊǸöºÜ´óµÄȱµã¡£
     web³ÌÐòÔ±ÔÚºǫ́Éè¼Æ¸÷ÖÖ±ê¼Ç£¬¶øÒ³ÃæÉè¼ÆÈËÔ±ÔòÖ±½ÓʹÓóÌÐòÔ±Éè¼ÆºÃµÄ±ê¼Ç½øÐд¦ÀíÒ³Ãæ¡£
  £¨2£©Ê×Ïȱàд<hello:sayhello>µÄjavaʵÏÖ£¬ÈçÏ£º
 package servletPackage;
import java.io.IOException;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
public class HelloTag implements Tag {

//¶¨ÒåÒ³ÃæµÄÉÏÏÂÎÄ
private PageContext context = null ;

//ʵÏÖtag½Ó¿Ú

public void setPageContext(PageContext pageContext){

this.context = pageContext ;
}

//ʵÏÖTag½Ó¿Ú
public void setParent(Tag tag){
}

public Tag getParent(){

return null ;
}

//ʵÏÖTag ½Ó¿Ú£¬²¢Ö´ÐÐ±í¼¯Ìå

public int doStartTag(){

try {
context.getOut().print("Hello from Tag") ;
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

return SKIP_BODY ;



}



public HelloTag() {
super();
}
public int doEndTag() throws JspException {
// TODO Auto-generated method stub
return SKIP_PAGE;
}
public void release() {
// TODO Auto-generated method stub

}

}
£¨3£© È»ºóÔÙWEB-INFÎļþ¼Ðϱàдһ¸öºó׺Ϊ.tldµÄxmlÎļþ£¬ÓÃÒÔÉùÃû×Ô¶¨ÒåµÄ±êÇ©¡£
    <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsys


Ïà¹ØÎĵµ£º

Java¼Ü¹¹Ê¦ËùÐèÒªµÄ֪ʶ


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......

javaµ÷ÓÃnotes API ·¢ËÍÓʼþ

×î½üÐèÒªµ÷ÓÃNotes java APIÀ´·¢ËÍÓʼþ.Ö÷Òª²Î¿¼ÁËÒÔÏÂÁ½¸ö²©¿Í:
1   http://www.blogjava.net/jiangmin/articles/76137.html
Õâ¸ö²©¿ÍÍê³ÉÁË´úÂëµÄÖ÷Ìå. (°Ñ´úÂëÕ³Ìù¹ýÀ´,ÂíÉÏ¿ÉÒÔÓÃ)
ÓÐÒ»¸öµØ·½ÐèÒª¸üÕý:
   ͨ¹ý Session s = NotesFactory.createSession((String)null, (String)null, "tops3cr3 ......

JAVA¶ÔXMLµÄ¼¸ÖÖ½âÎö·½·¨½²½â£¨JDOM£©

Ϊ¼õÉÙDOM¡¢SAXµÄ±àÂëÁ¿£¬³öÏÖÁËJDOM£»
Óŵ㣺¼«´ó¼õÉÙÁË´úÂëÁ¿¡£
ʹÓó¡ºÏ£ºÒªÊµÏֵŦÄܼòµ¥£¬Èç½âÎö¡¢´´½¨µÈ£¬µ«Ôڵײ㣬JDOM»¹ÊÇʹÓÃSAX£¨×î³£Óã©¡¢DOM¡¢XananÎĵµ¡£
±ØÐëµÃÏÂÔØjdom.jarÎļþ
package xml.jdom;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOExce ......

java ÖеÄÀàÓë½Ó¿Ú¶¨ÒåʵÀý

java½Ó¿ÚʵÀý
2009-03-10 09:00:18.0      À´Ô´:ÖйúJAVA¼¼ÊõÍø   
¹Ø¼ü´Ê£º  java     ½Ó¿Ú     Âë  
½üÈÕÔÚ±à³ÌÖÐÓõ½½Ó¿Ú֪ʶ,ÓÉÓڿα¾ÖжԽӿÚÃèÊö½ÏÉÙ,ËùÒÔÏë´ÓÍøÉϲéÕÒ×ÊÁÏ,µ«ÍøÉϵÄ×ÊÁÏ´ó¶àÒ²Ö»ÊÇÈß³¤µÄÃèÊö,ËùÒÔÔ ......

java ÀàµÄÐòÁл¯ºÍ³Ö¾Ã»¯Àí½â


Ê×ÏÈҪ˵µÄÊÇ,HibernateÖÐORMÀï¶ÔÓ¦µÄÓ³ÉäÎļþBEAN,±ØÐëʵÏÖÐòÁл¯.ÒòΪBEANÀïµÄÊý¾ÝÐèÒª´æÈëÊý¾Ý¿â(Ҫת»¯Îª¶þ½øÖƱ£´æ),½øÐдæÈ¡¹¤×÷.
        JAVAÀàµÄÊý¾Ý ,Èç¹ûÒª½øÐÐÏà¹ØµÄ´æ´¢¹¤×÷(ÈçдÎļþ,ÍøÂç´«Êä,дÊý¾Ý¿âµÈ),ÄÇôÕâ¸öÊý¾ÝµÄÀà ¾Í±ØÐëʵÏÖÐòÁл¯½Ó¿Ú (java.io.Serializab ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ