Wannik

bravesnailsΛογισμικό & κατασκευή λογ/κού

7 Ιουν 2012 (πριν από 5 χρόνια και 14 μέρες)

437 εμφανίσεις

1 Hello World


 1 

1



 

  0+ *

 JDK
 NetBeans IDE
 Model-View-Controller

    , 
 =  **"
  ,  ! " # $, ,  H i-5, ) ) *"

 +!, -.*,+
" * "
/0, ,+
 *
MVC
 Model-View-Controller .<**"  +!,
*=
>
?* MVC
9






 ( ?+<> #+, J 
)  /
,?+<+,,
   $< *   
   ,  ! " # $, >0>L, 0
= -0?+ *?+<0? +<  * , ) )





+ 0 +☺ 0*> #+!
   !   , #?+< $M $ #> *  , # < *
,> * YouTube ?+<, 0+/ #R 0,> 0+>,0# 0
?!* #?$   #?$ L,?+<, R ?$,  ,
,  ,"+*
.<* , #M $ MP3 U L,,#> *, #M $"+*# ?+< < *
 *>  ,,!,,   # ?U" -,
,#  #0 
 Wikipedia  Google Docs >

*"  +!, -.*\+,+
" "/0 ?// + JSP

/
, NetBeans IDE U0*U +/
,
 " U ?+<*#
+/
,,  U
*" ^+/
, Java  ! *> ` ISBN: 974-
212-124-9 +/0U+*"   +!
10 1 Hello World


 1 

 "#$$ $%&'   $(
 )
 , +! - , 
/
, # ,> *>0>!* * < * * -  ,/
, 100
/
, ,> *" < *?!*0 hL "-   
#0 , 
0/0#> *>0>!*/
, <> # ? +<0
+   $,*
/
,#0  /
,
U?,+< L,, /
,  + ) )
 *#$ $# +(,
-
 <  ,?+< *,$  ,?+<
? , , ,  *M $,

 ,Li"*  s ( ubmit) L?**   .<*

 +<#  ,+  /0#".,> *R.,k\+,*
 +(,- ./
+ 
' ' "&'  ,,,+ 
 
,
&'   >*,/
,?<#?U +< > *0$/ 0 patch  <  0?/
, *
 (" $0 ! U Windows, Linux, Mac OS "-

#0 , /0+,U?*   $

' /
1,,"
 #
2  ,p+?+< $M $
+"?\= "*,  > $ *  +, U
 
 ) )
JSP
?// + JSP (JavaServer Pages) " ,?
?// ++!
"-"*  ?+< ! +, +<
 *#0 (dynamic content) 
"0* hL ,

"0* >
, +<*>,
"0*U , ,p$ ,R  > >*, HTML ?+<  +
 ! # +<
 *( static content)  reload , +< !* ,* 0 
JSP + 0 +☺ 0*> #+!
 +0=k Java .<*=k?+<,,
+/0,+, #0/0
#> *+ *
 M!+ #> *"+* !  M?$
$0J >!*
> s >, Linux,

$M $ T omcat,
 NetBeans
 JDK , t



 )),(6

 < * ?+< t 
0 JSP +0*+!
 JDK (Java Development Kit)  L0 t=k 0$/ 0#0?+<
http://java.sun.com
11


 NetBeans IDE (> #+, J NetBeans)  t
> *>0>!*
JDK , ?+<>0>!* NetBeans 0$/ 0 NetBeans #0?+<
http://www.netbeans.org  ,#?+<0$/ 0    $
"0*U 0* 
 ,0$/ 0 Web & Java EE  All "*,> ,0$/ 0>?+<+
Bundle Servers  > *, t/
,?+<
$M $



ดาวนโ หลดอน ั ใดอน ั หนึ่งในสองอน ั น้ี
NetBeans IDE
"-/
, Notepad  text editor > < < +>z  /
,
 $"/0 (source code) #0
>-/
, NetBeans IDE *,   NetBeans IDE
 < * " ,+/
,/0z   < * 0*, +!+, Integrated
Development Environment (IDE)
NetBeans IDE (.<*,+!#U+
 NetBeans)  t/
,#0.!
 #> *  $"<*?+< command prompt  <  # $ /
,
,0Li?+<
toolbar ,"- # $
/
,#0
12 1 Hello World


 1 

 NetBeans "- t
#0 *0  < "<*
NetBeans
>0>!* (deploy) 
*
$M $
+,    $.!
 ,,! NetBeans *
,# config file  web.xml /0 >/>
 "-   $ 
/
,  .<*>* +!" U?+<  $0+0
#  *
   $/0 *"
 NetBeans >/0?+<  (code completion) .<*
>*+!" U?+<  $0+0#  *  U?   +<  < \ 0## 0
 NetBeans "-0 + /0 +, ! *?+< + ? /
, *
.!
 ) )
 $ * NetBeans ?+<*"   6 .1 Web & Java EE
& * *)
*"  +!
* , 6 = 0*+!
1. 1   **"   +!
2. &
  (model)  >,   (data)  bean (, -.* ??+< 2)  < ,
 
  ,}  ( ??+< 3)
=+!, -.*"
L,,+! ( ??+< 12) .<*,   ">L?+<> *#
  ?, > * 0-.* < * <J,  .*"- 0-.*" 
L,,+!#0 
3.   (view)      "?+<"
"0*U ,?+<   $  "
>0> , U (user interface) "?+< view =k HTML ( ??+< 4), ?// +
JSP ( ??+< 5) .<* EL ( ??+< 8)
 JSTL ( ??+< 9) ,".<* *?// + JSP
4. &, 
 ! (controller) >"**/0 ,   >
  ,   () 
,"*/0
,0   $>+ Lp" >  *
/0
,"*>   #
"0*U "+!"  L!>  ,?* *



 model ,"+*  0-0 /0?+< *$
,
>U+ +=k#?/0
13


"*,>+
/0
*?+< , 3 " (model view
controller  MVC) ?+<?+!, <
,##0"0, > * "?+<  
  ?+< U0 " ,
+!   
 .<*R € "-
,
 "* "+!#+/0  < *,, ,
 
# #  *=k "/0
 /?  $ ?+< U0  *
&'  
 !  < 
,# +<
 *#0*  +/
,# +"

,
>/
,> *+,
,#> 0
= 4 +! 0-.* < *S ervlet ( ??+< 10)
 filter ( ??+< 11)
5. $ #  *)" ! +,  * MVC >?+<#0, -.*#

=?+< 2-4  *" # $
* ,  * ( ??+< 13),  ",
( ??+< 14),
 ( ??+< 15) =+!* 0-.*,>0>!* (deploy) 
?+<
+"
 *#?+< Tomcat ( ?? +< 16)
6. 1+ + ??+<"L

"0*> *,*>-L?+<"-+,#0  EL
(implicit objects)
<* 0= (security)


14