jspÄ£°æ¼ò½é
JSPÄ£°åÓ¦ÓÃÖ¸ÄÏ
Window
¹¤¾ß°üÌṩÁËÒ»ÖÖµäÐ͵IJ¼¾Ö»úÖÆ£¬±ÈÈç˵ÔÚÒ»¸öÈÝÆ÷ÖÐÈ·¶¨²¿¼þÔªËصÄλÖá£ÔÚAWT ºÍ Swing¶¼Óв¼¾Ö¹ÜÀíÆ÷£¬¶øÔÚVisualWorks
SmalltalkÖÐÓÐwrapper¡£±¾ÎĽ«½éÉÜÒ»ÖÖJSPÄ£°å»úÖÆ£¬ËüÔÊÐí²¼¾Ö±»·â×°ºÍÖØÐÂÀûÓá£JSPÄ£°å×îС»¯Á˲¼¾Ö¸Ä±äËùÔì³ÉµÄÓ°Ï죬ÕâÀïÎÒÃÇ
½«¹ÄÀø´ó¼Ò²ÉÓ÷â×°Ä£¿é»¯Éè¼Æ¡£
¾¡¹Ü Web¿ª·¢¹¤¾ßµÄ¸Ä½ø·Ç³£Ñ¸ËÙ£¬µ«ÊÇËüÃÇÈÔÈ»ÂäºóÓÚͼÐÎÓû§½çÃæ(GUI)¹¤¾ß°ü£¨Swing ºÍ VisualWorks
Smalltalk£©¡£ÀýÈ磬ÔÚ´«Í³µÄGUI¹¤¾ß°üÖÐÌṩÁ˲¼¾Ö¹ÜÀíÆ÷£¬ÔÚÒ»¸ö´°Ìå»òÁíÒ»¸ö´°ÌåÖУ¬ÔÊÐí²¼¾ÖÔËËã±»·â×°ºÍÖØÐÂÀûÓᣱ¾ÎĽéÉܵÄÕâÖÖJSP
Ä£°å»úÖÆ£¬¾ÍÏó²¼¾Ö¹ÜÀíÆ÷Ò»Ñù£¬¿ÉÒÔ·â×°²¼¾Ö£¬ËùÒÔËüÄܹ»±»ÖØÐÂÀûÓöø²»Ö»ÊǸ´ÖÆʹÓá£
ÓÉÓÚÔÚ²¼¾ÖµÄ·¢Õ¹¹ý³ÌÖгöÏÖÁËÐí¶àµÄ±ä»¯£¬¶ø¶Ô¹¦Äܵķâ×°ÊǷdz£ÖØÒªµÄÒ»²½£¬ËüÄܹ»±»×ÔÈçÐ޸Ķø×öµ½¶ÔÆäËûÓ¦ÓõÄÓ°Ïì×îС¡£
JSPûÓÐÌṩ¶Ô·â×°²¼¾ÖµÄÖ±½ÓÖ§³Ö£¬ËùÒÔ¾ßÓÐͳһ¸ñʽµÄÍøҳͨ³£¿ÉÒÔ¸´ÖƲ¼¾Ö´úÂ룻ÀýÈ磬ÔÚͼ1ÖУ¬ÏÔʾÁËÒ»¸öÍøÒ³£¬Ëü°üº¬Á˱êÌâ¡¢Ò³½Å¡¢¹¤¾ßÌõÒÔ¼°Ò³ÃæµÄÖ÷ÒªÄÚÈÝ¡£
ÔÚͼ1ÖÐÏÔʾµÄÍøÒ³²¼¾Ö½«ÒÔHTML±í¸ñ±êÇ©À´Ö´ÐУº
Àý1.°üº¬ÄÚÈÝ£º
xml ´úÂë
<
html
>
<
head
>
<
title
>
JSPtemplates
</
title
>
</
head
>
<
body
background
=
'graphics/background.jpg'
>
<
table
>
<
tr
valign
=
'top'
>
<
td
>
<
%@include
file
=
'sidebar.html'
%
>
</
td
>
<
td
>
<
table
>
<
tr
>
<
td
>
<
%@include
file
=
'header.html'
%
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
%@include
file
=
'introduction.html'
%
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
%@include
file
=
'footer.html'
%
>
</
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
</
table
>
</
body
>
</
html
>
Ïà¹ØÎĵµ£º
ʯ¼ÒׯÌáÉýÍøÕ¾ÐÔÄܵķ½Ê½Óкܶ࣬ÀýÈçÓÐЧµÄʹÓûº´æ£¬Éú³É¾²Ì¬Ò³ÃæµÈµÈ¡£½ñÌìҪ˵µÄ¾Í
ÊÇÉú³É¾²Ì¬Ò³ÃæµÄ·½Ê½¡£
ʲô½ÐÉú³É¾²Ì¬Ò³ÃæÄØ£¿ºÜ¼òµ¥£¬ÀýÈçÎÒÃÇÈç¹û·ÃÎÊÒ»¸öÁ´½Ó http://xyz.com/index.do£¬
ÄÇô·þÎñÆ÷¾Í»á½âÎöÕâ¸öÇëÇó£¬ÈÃÌض¨µÄAction È¥´¦Àí¡£ÕâÆäÖеÄȱµãÊÇÏÔ¶øÒ×¼ûµÄ£ºÈç¹û
·ÃÎʵÄÈË£¬ÄÇô¾Í»á¼ÓÖØÓ¦Ó÷ ......
ºÜ¶àSOHOER¶¼Ï£ÍûÓиö×Ô¼ºµÄÍøÕ¾,¶ø¶ÔÍøÕ¾½¨ÉèÒ»ÎÞËùÖª,»òÕßÒ»Öª°ë½â.½ñÌìÎÒÏȽ²³ÌÐò·½ÃæµÄÇø±ð,ÏàÐźܶàÈËÅöµ½ÁËÓÐЩ¹«Ë¾Ëµphp±ÈAsp,Asp.Net¶¼ÒªºÃ,»òÕßAsp±ÈÆäËûÓïÑÔ¶¼ÒªºÃ¡£Æäʵ,³ÌÐòµÄÓÅÂÔÓëÍøÕ¾¿ª·¢ÈËÔ±µÄ¾Ñé\¼¼ÊõˮƽÏà¹Ø£¬¶øÓïÑÔ±¾Éí²¢Ã»ÓÐʲôÓÅÂÔÖ®·Ö.¾Ñé¶àµÄ³ÌÐòÔ±,²»¹ÜʹÓõÄÄ ......
<script language="javascript">
var times=6;
clock();
function clock()
{
window.setTimeout('clock()',1000);
times=times-1;
time.innerHTML =times;
}
</script>
<head>
<meta http-equiv= "Refresh" content= "5;url=index.jsp "& ......
ÄãµÄ¿ì½Ý½¨ÉèÖÃÓÐÎÊÌ⣬ÄãÖØÐÂÉèÖÃÒ»ÏÂÔÚ window --> Perferences--> General--> keys
½«Content Assist¿ì½Ý¼üÉèÖóÉAlt + /¾Í¿ÉÒÔÁË
Èç¹ûÄã·¢ÏÖµãÁËApply¹ØÁËÖ®ºó£¬Ôٴδò¿ªContent AssistµÄ¿ì½Ý¼üûÓиıäµÄ»°£¬ÄÇÊÇÒòΪÏÂÃæÓÐÒ»¸öÑ¡ÏîÒѾÓõ½ÁËAlt + /£¬¾ßÌåÊÇÄÄÒ»¸öÎҼDz»ÇåÁË£¬Äã°ÑÄǸöcommandµÄ¿ì½Ý¼ü¸ ......
ÔÚJspºÍjspÖеÄjavabeanÀïÃ棬"/"Ö¸µÄÊÇtomcatËùÔڵĸù·¾¶£¬Èç¹ûÊÇÔÚWindowsϾÍÊÇtomcatËùÔÚÅ̵ÄÅÌ·û£»¶ø“.”Ö¸µÄÊÇtomcatµÄbinĿ¼ËùÔڵķ¾¶¡£
ÎÒ²ÂÏëÕâÊÇÒòΪjsp´úÂ붼»á±»tomcatתΪServlet£¬¶øServletÊÇÔÚtomcatÖзÃÎʵģ¬ËùÒÔjvmÔÚÔËÐÐServletʱ¾ÍÈÏΪĿ¼ÊÇtomcatËùÔÚµÄĿ¼¡£
HtmlÖеē/&r ......