Difference between revisions of "Java-Business-Application/C2/Java-servlets-and-JSPs/Khasi"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with "{|border =1 | ''' Time ''' | '''Narration''' |- | 00:01 | Pdiang sngewbha sha '''spoken-tutorial''' Halor ''' Java Servlets and JSPs.''' |- | 00:06 | Ha kane ka tutorial, ng...")
 
 
Line 13: Line 13:
 
|-
 
|-
 
|00:09
 
|00:09
|Ka '''Web server''' ''' Web container'''.
+
| Ka '''Web server''' ''' Web container'''.
  
 
|-
 
|-
Line 155: Line 155:
 
|-
 
|-
 
| 02:53
 
| 02:53
| U  '''source code''' bala shna da u IDE na bynta ka '''MyServlet.java''' lah ban ioh haka '''Source Editor window.'''
+
| U  '''source code''' bala shna da u IDE naka bynta ka '''MyServlet.java''' lah ban iohi haka '''Source Editor window.'''
  
 
|-
 
|-
Line 234: Line 234:
 
|-
 
|-
 
| 04:45
 
| 04:45
| Ngi lahdep deleted lypa ïa ka '''processRequest method.'''
+
| Ngi lahdep delete lypa ïa ka '''processRequest method.'''
  
 
|-
 
|-
Line 242: Line 242:
 
|-
 
|-
 
| 04:54
 
| 04:54
|Bad ruh weng ïaka naka '''doPost method.'''
+
| Bad ruh weng ïaka naka '''doPost method.'''
  
 
|-
 
|-
Line 250: Line 250:
 
|-
 
|-
 
| 05:01
 
| 05:01
|Ngi lah ban iohi ba don ar tylli ki '''parameters''' kiba ïaid lyngba sha ka '''doGet method.'''
+
| Ngi lah ban iohi ba don ar tylli ki '''parameters''' kiba ïaid lyngba sha ka '''doGet method.'''
  
 
|-
 
|-
 
| 05:07
 
| 05:07
| Ka wei ka dei ka '''request ''' bad kawei pat kadei ka '''response object.'''
+
| Kawei ka dei ka '''request ''' bad kawei pat kadei ka '''response object.'''
  
 
|-
 
|-
Line 262: Line 262:
 
|-
 
|-
 
| 05:18
 
| 05:18
| bad '''response object '''ka de jong ka rukom '''HttpServletResponse.'''
+
| bad '''response object '''ka dei jong ka rukom '''HttpServletResponse.'''
  
 
|-
 
|-
Line 361: Line 361:
 
|-
 
|-
 
| 07:27
 
| 07:27
| Refresh. Ngi iohi ïaka jingthoh '''Welcome''' ha ka rukom kaba pher.
+
| Refresh. Ngi iohi ïaka jingthoh '''Welcome''' ha ka rukom ba pher.
  
 
|-
 
|-
Line 460: Line 460:
 
|-
 
|-
 
| 09:19
 
| 09:19
|Peit thuh ba ka '''Welcome ''' kalong hapoh ki ''' "h1" tags.'''
+
|Peit thuh ba ka '''Welcome ''' ka long hapoh ki ''' "h1" tags.'''
 
|-
 
|-
 
| 09:23
 
| 09:23

Latest revision as of 22:12, 29 May 2017

Time Narration
00:01 Pdiang sngewbha sha spoken-tutorial Halor Java Servlets and JSPs.
00:06 Ha kane ka tutorial, ngin pule shaphang :
00:09 Ka Web server Web container.
00:12 Ngin pule ruh kumno ban shna ka Java Servlet basuk bad JSP.
00:18 Hangne ngi pyndonkam ka:
00:20 Ubuntu Version 12.04
00:23 Netbeans IDE 7.3
00:27 JDK 1.7
00:29 Firefox web-browser 21.0.
00:33 Phi lah ban pyndonkam uno uno u web-browser uba phi kwah.
00:37 Ban bud ïakane ka tutorial, phi dei ban don ka jingtip ïaka:
00:41 Core Java pyndonkam ka Netbeans IDE bad
00:45 HTML.
00:47 Lada em, na bynta ki tutorial ba kum kane leit shaka website jong ngi.
00:52 Shwa ban leit sha ka Servlets bad JSP, to nyngkong ngin sngewthuh shwa ïaka web server.
00:58 KA web server kadei ka system kaba ai ïaki content sha ki nongpyndonkam baka thmu lyngba ka Internet.
01:05 La tip ruh iaka kum ka Internet server.
01:10 KA web container kadei ka bynta jong ka web server kaba pynlong ban ïatreilang bad ka Java servlets.
01:18 la tip ruh iaka kum ka servlet container.
01:22 Ka servlet container ka pynlah ïaka servlets ban pyntreikam hapoh jong ka.
01:28 Mynta, to ngin pule kumno ban thoh ïaka servlet basuk.
01:32 Phai sha ka Netbeans IDE.
01:35 Click ha u Project tab haka liang ka diang jong u IDE.
01:40 Mynne, ngi lahdep shna ïaka Project basuk kaba kyrteng ka MyFirstProject.
01:46 Phi lah ban iohi ïaka hangne, haka liang kadiang jong ka IDE.
01:50 To ngin shna ïaka servlet basuk hapoh jong kane ka Project.
01:55 Te, right-click ha MyFirstProject.
01:59 Leit sha New bad click ha Servlet.
02:03 KA New Servlet window ka plie.
02:05 Type ïaka Class Name kum MyServlet.
02:09 Type ïaka kyrteng Package kum org.spokentutorial.
02:16 Nangta click ha Next.
02:18 Click ha Add information to deployment descriptor (web.xml).
02:23 Ngi lah ban iohi ba ka Class Name ka dei org.spokentutorial.MyServlet.
02:30 Ngi lah ban iohi ba ka Servlet Name kadei ka juh kum jong ka Class Name kaba long MyServlet.
02:37 Peit thuh ba u URL pattern u dei u juh kum ka kyrteng jong ka Class Name. kata, MyServlet.
02:45 Ngi lah ban pynkylla ïaka sha MyServletPath.
02:50 Nangta click ha Finish.
02:53 U source code bala shna da u IDE naka bynta ka MyServlet.java lah ban iohi haka Source Editor window.
03:01 Ngi iohi ïaka MyServlet.java la shna haka package org.spokentutorial.
03:09 peit thuh ba ka servlet ka long kum kiwei pat ki Java class
03:14 lait noh tang ba ka servlet kam don ïa ka main method.
03:19 Mynta, to ngin pule khyndiat shaphang ka Glassfish Server.
03:24 ïaka servlet la wanrah ban pyntreikam haka servlet container.
03:28 Ngi pyndonkam ïaka Glassfish kum ka server jong ngi.
03:32 Servlet container kadei ka bynta jong ka Glassfish kaba ïatreilang bad ki servlet.
03:39 Mynta, to ngin phai biang sha ka Netbeans IDE.
03:42 phin iohi ba ka MyServlet ka pynjrong ïaka HttpServlet.
03:48 Ha trai jong u code, ngi lah ban iohi ïaki HttpServlet methods.
03:54 Click ha u plus sign uba ha kadiang ban peit ïa kine ki methods.
03:59 ngi iohi ïa ki method - doGet, doPost bad getServletInfo method.
04:09 Ngi lah ban override ïakine ki method.
04:12 Ngi lah ban iohi ba ka don sa kawei ka method ba kyrteng processRequest ha khlieh.
04:18 Ngin delete ïa u processRequest bad ïa u getServletInfo method ban pynlait naka jingkulmar.
04:25 Te, la ieh ïa ngi tang bad ar tylli ki method ka doGet bad doPost.
04:31 ïa mynta, ngin ïa peit ïaka doGet method.
04:35 doGet kadei ka method ba la long hi na bynta kano kano ka simple URLrequest.
04:41 Te, ngin type katto katne ki code hapoh ka doGet method.
04:45 Ngi lahdep delete lypa ïa ka processRequest method.
04:49 Te, weng noh ï ka method call na bynta ka processRequest method.
04:54 Bad ruh weng ïaka naka doPost method.
04:58 Mynta, to ngin wan phai sha ka doGet method
05:01 Ngi lah ban iohi ba don ar tylli ki parameters kiba ïaid lyngba sha ka doGet method.
05:07 Kawei ka dei ka request bad kawei pat kadei ka response object.
05:12 Peit thuh ruh ba ka request kadei ka rukom HttpServletRequest.
05:18 bad response object ka dei jong ka rukom HttpServletResponse.
05:22 Ngin pyndonkam ïa ka response object ban phah biang ïaka HTML response sha ka liang ki client.
05:30 Na bynta kata, ngi donkam ban shna ïaka PrintWriter object.
05:35 Peit thuh ba la import lypa ïa ka PrintWriter class.
05:40 Te, hapoh jong ka doGet method type: PrintWriter space writer equal to response dot getWriter open bad close brackets semicolon.
05:57 ñion Enter.
05:59 Ha u laiñ ba bud, type:
06:02 writer dot println hapoh jong ki brackets bad double quotes Welcome.
06:09 Nangta, ñion Ctrl S ban save ïaka file.
06:14 Mynta, to ngin run ïaka servlet.
06:17 Te, haka liang ka diang, ha u Projects tab right click ha u ' dot java'.
06:24 Nangta , click ha Run File.
06:27 Ngi ioh ïaka Set Servlet Execution URI dialog box.
06:32 Click ha OK.
06:35 Haba la plie ïaka browser window, peit ha u URL.
06:39 Kadei localhost colon 8080 slash MyFirstProject slash MyServletPath.
06:47 Hangne, MyFirstProject kadei ka context name bad MyServletPath kadei ka URL pattern kaba ngi lah buh.
06:55 Ngi lah ban iohi ïaka text Welcome bala print ha u browser.
07:00 Mynta phai biang sha Netbeans IDE.
07:03 Ha ka println method, ngi lah ban iaid lait ïa u html code.
07:07 Kum ka nuksa, buh ïa u Welcome ha u h3 tag.
07:12 Mynta, save ïaka file.
07:14 Namar ba ngi lah pyntreikam ïakane ka servlet mynne, ngim donkam shuh ban run biang ïaka.
07:20 Ka The web container ka la ïthuh hi dalade.
07:23 Te, ngi lah ba leit biang sha u browser.
07:27 Refresh. Ngi iohi ïaka jingthoh Welcome ha ka rukom ba pher.
07:32 Mynta, phai biang sha ka IDE.
07:35 Kumta, ngi lahdep shna ïaka servlet kaba jop.
07:39 Ngi lah ban shna kano kano ka web application pyndonkam ki servlet.
07:45 Ngi pyndonkam ïaki servlet ban pyni ïa u HTML code.
07:49 Peit thuh ba ngi don u HTML code hapoh u Java code.
07:54 Wat la kane ka long kaba lah ban leh, kalong kaba eh ban leh na bynta ki web application ki ba heh.
08:00 Te na kata ka daw kam long kaba la pynshlur ban leh.
08:03 Kan kham bha ba haka jaka jong kane pyndonkam daka JSP lane Java Server Pages.
08:10 Ngin sa peit ïaka jingpyndonkam jong ki servlets bad JSPs.
08:13 Servlets bad JSPs la pyndonkam lang ban pynïakhlad ïa ki presentation naki content.
08:20 KI Servlets ki trei kum ki controller bad JSPs ki trei kum ka view .
08:25 Ki Servlets ki kynthup ïa u HTML code hapoh u Java code.
08:30 Ki JSPs ki kynthup ïa u Java code i hapoh u HTML code.
08:35 Ngin sa pule shuh shuh shaphang jong kine ha ki tutorial ban wan.
08:39 Mynta, leit biang sha Netbeans IDE.
08:42 Mynta Ngin shna ïaka JSP page basuk.
08:47 Te, right click ha MyFirstProject.
08:50 Leit sha New bad click Ha JSP.
08:54 KA New JSP window ka plie.
08:57 Type ïaka Filename kum welcome.
09:01 Bad nangta click ha Finish.
09:04 Click ha u Projects tab uba haka liang ka diang.
09:07 Ngi lah ban iohi ba ka Welcome.jsp ka don hapoh jong ka Web Pages folder.
09:13 Mynta, ha u editor, pynkylla ïa ka Hello World sha Welcome.
09:19 Peit thuh ba ka Welcome ka long hapoh ki "h1" tags.
09:23 Mynta, save ïaka file.
09:25 Wan biang sha u browser.
09:27 Ha u url, hadien ka MyFirstProject slash, type: welcome.jsp.
09:35 Ngi iohi ïaka output Welcome.
09:38 Namar kata, naka bynta ka presentation JSP ka kham lah.
09:42 To ngin batai lyngkot.
09:44 Ha kane ka tutorial, ngi la pule:
09:47 Shaphang ka web server bad web container.
09:49 Ban shna ka simple servlet.
09:52 Ban shna ka simple JSP.
09:55 Sngewbha pynthikna ba phi la pyndep ïakane ka tutorial shwa ban ïaid shuh shuh sha khmat.
10:01 Peit ïaka video kaba don haka link harum.
10:04 Ka batai lyngkot ïaka Spoken Tutorial project.
10:08 Lada phim don ka bandwidth ba biang, phi lah ban download bad peit ïaka.
10:13 Ka Spoken Tutorial Project team:
10:15 Ka pynlong workshop dakaba pyndonkam ki spoken tutorials.
10:19 Ka ai certificates sha kito kiba pass ïaka on-line test.
10:22 Ban tip kham bniah, sngewbha thoh sha: contact at spoken hyphen tutorial dot org.
10:28 Spoken Tutorial Project kadei shi bynta jong ka "Talk to a Teacher" project.
10:32 La kyrshan ïaka daka National Mission on Education Lyngba ka ICT, MHRD, Sorkar India.
10:40 Khambun ka jingtip halor kane ka mission kadon ha: http://spoken-tutorial.org/NMEICT- Intro .
10:50 ïaka Library Management System la noh synniang da ka software MNC ba pawkhmat lyngba ka programme "Corporate Social Responsibility" jong ki.


11:00 Ki la pynkhamti ruh ïaka content naka bynta kane ka spoken tutorial.
11:04 ïa kane ka script la pynkylla sha ka ktien Khasi da I Hezekiah Lyngdoh na Shillong. Khublei ba phi la ïasnohlang.

Contributors and Content Editors

Hezekiah2016