´«ÖDz¥¿Í——JSP£¨ËÄ£©¹¤³§Ä£Ê½
Ò»£º¹¤³§Ä£Ê½³öÏÖµÄÔÒò
Ò»°ãÉè¼ÆÄ£Ê½£º
view plaincopy to clipboardprint?
interface Fruit{
public void eat();
}
class Apple implements Fruit{
public void eat(){
System.out.println("**³ÔÆ»¹û**") ;
}
}
class Orange implements Fruit{
public void eat(){
System.out.println("**³ÔéÙ×Ó**") ;
}
}
public class FactoryDemo01{
public static void main(String args[]){
Fruit f = new Apple();
f.eat();
}
}
interface Fruit{
public void eat();
}
class Apple implements Fruit{
public void eat(){
System.out.println("**³ÔÆ»¹û**") ;
}
}
class Orange implements Fruit{
public void eat(){
System.out.println("**³ÔéÙ×Ó**") ;
}
}
public class FactoryDemo01{
public static void main(String args[]){
Fruit f = new Apple();
f.eat();
}
}
ÔÚÕâÖÖÆÕͨµÄ±àÂ뷽ʽÖУ¬ºóÐøµÄÀ©Õ¹¹¦Äܽ«ÊÇÔÖÄÑ£¬µ±ÓÐеÄË®¹ûÀàÔö¼Óʱ£¬±ØÐë·³öÔ´Âë½øÐÐÐ޸ģ¬Õâ¶ÔÓÚÒ»¸öÅ
Ïà¹ØÎĵµ£º
JavaScript´úÂ룺
//°ìÊ´¦³éÈ¡±ÈÀý¸Ä±ä£¬¸üÐÂÆäËûÊý¾Ý
....function changeOfficeSampleScale(obj,flushOfficeRow){
var row=obj.parentNode.parentNode; //È¡µÃËùÔÚÐÐ
var officeCode=row.id; //È¡µÃÐеÄId
if(i ......
Ò»¡¢
ÔÚÒ»¸öÉè¼ÆÁ¼ºÃµÄWebÓ¦ÓÃÖУ¬¶¼»á×ÛºÏʹÓÃServletºÍJSP¼¼Êõ¡£Servlet¿ØÖÆÒµÎñÁ÷ת£¬JSPÔò¸ºÔðÒµÎñ´¦Àí½á¹ûµÄÏÔʾ¡£´Ëʱ£¬½«´óÁ¿Óõ½Öض¨Ïò¼¼Êõ¡£
¡¡¡¡Öض¨Ïò¼¼Êõ¿ÉÒÔ·ÖΪÁ½À࣬һÀàÊǿͻ§¶ËÖØ¶¨Ïò£¬Ò ......
²»Ëµ·Ï»°ÁË£¬¿´ÏÂÃæµÄÀý×Ó°É(ÀûÓÃstructsʵÏÖ£©£º
ÔÚWEB£INFÏÂÓÐÁ½¸öÒ³Ãæ£º a.jsp ºÍ b.jsp £¬ ÏÖÔÚҪʵÏÖ´Óa.jspÁ¬½Óµ½b.jsp
ÔÚa.jspÖУº
<html:link action= ......
servlet APIµÄ2.3°æ±¾ÖÐ×îÖØÒªµÄÒ»¸öй¦ÄܾÍÊÇÄܹ»ÎªservletºÍJSPÒ³Ãæ¶¨Òå¹ýÂËÆ÷¡£¹ýÂËÆ÷ÌṩÁËijЩÔçÆÚ·þÎñÆ÷ËùÖ§³ÖµÄ·Ç±ê×¼
“servletÁ´½Ó”µÄÒ»ÖÖ¹¦ÄÜÇ¿´óÇÒ±ê×¼µÄÌæ´úÆ·¡£
¹ýÂËÆ÷ÊÇÒ»¸ö³ÌÐò£¬ËüÏÈÓÚÓëÖ®Ïà¹ØµÄservlet»òJSPÒ³ÃæÔËÐÐÔÚ·þÎñÆ÷ÉÏ¡£¹ýÂËÆ÷¿É
¸½¼Óµ½Ò»¸ö»ò¶à¸öservlet»òJSPÒ³ÃæÉÏ£¬²¢ÇÒ¿É ......
Ê×ÏÈ£¬±ØÐë˵Ã÷ÕâЩ²»ÊÇÎÒ×Ô¼ºÐ´µÄ£¬µ«ÊǸøÁËÎҺܴó°ïÖú£¬Ï£Íû¶ÔÄãÒ²ÄÜÓÐËù°ïÖú£¡
×£Äã³É¹¦£¡
Ò»¡¢¿ª·¢»·¾³ÅäÖÃ
µÚÒ»²½£ºÏÂÔØj2sdkºÍtomcat£ºµ½sun¹Ù·½Õ¾£¨http://java.sun.com/j2se/1.5.0/download.jsp£©ÏÂÔØj2sdk£¬×¢ÒâÏÂÔØ°æ±¾ÎªWindows Offline InstallationµÄSDK£¬Í¬Ê±×îºÃÏÂÔØJ2SE 1.5.0 Documentation£¬È»ºóµ½ ......