Jump to content
Sign in to follow this  
sh4m

Contoh Web Based Mvc 2

Recommended Posts

macam kat topik tu... ade x example web based berlandaskan MVC 2.. client -> jsp -> servlet ->db..

aku nak tgk flow2 ni la... blush.gif

Share this post


Link to post
Share on other sites
Mula mula sekali. Apa dia konsep MVC? Framework apa yang berlandaskan MVC?

Share this post


Link to post
Share on other sites
QUOTE(SHiDi @ Dec 3 2008, 07:22 PM) <{POST_SNAPBACK}>
Mula mula sekali. Apa dia konsep MVC? Framework apa yang berlandaskan MVC?


fuyohh.. aku xigt dah.. tp gambaran tu aku igt la... jsp ni sebagai interface... n servlet ni sebagai process or connected to DB...

Share this post


Link to post
Share on other sites
QUOTE(cikdayah @ Dec 5 2008, 02:30 PM) <{POST_SNAPBACK}>
servlet connected to DB?


yup.. servlet can leh connect to DB.. cam biasa je... dalam jsp pun leh gak.. cuma peranan jsp cuma interface..

Share this post


Link to post
Share on other sites
Aku tak pandai Java. Tapi biasanya kita tak campur kan business logic dengan database connection kan? Bukan nanti nampak bersepah ke class tu? Dan tentang initialize db connection dalam JSP. Aku nasihatkan JANGAN. Tak silap aku ianya adalah tak selamat.

Dan, MVC merujuk kepada Model View Controller. Salah satu daripada 23 design patterns oleh GOF. Struts merupakan contoh terbaik MVC.

Contoh web based yang menggunakan MVC? Cuba cari mana-mana website yang gunakan Struts. Senang je, banyak website Malaysia gunakan. Ni dengan andaian kau biasa dengan Struts.

Kalau salah, tolong betulkan.

Share this post


Link to post
Share on other sites
off topic:aduh..sape la otai ni..sy budak baru blajo..ni pun blajo dr otai2 di sini..firestarter elok blajo mvc ni.ilmu berguna..smile.gif

aku try google utk sample struts.de dlm roseindia.com.agak senang nak fhm kalo sh4m faham struts.tp akan jd blur bile xpenah guna struts.xpe...try share mane coding yg xfhm..ni kalo xfhm la..insyaAllah otai2 java ramai bole membantu.

Edited by cikdayah

Share this post


Link to post
Share on other sites
User request all manage by controller

Share this post


Link to post
Share on other sites
[quote name='ron' timestamp='1228913929' post='880450']
User request all manage by controller
[/quote]
boleh tak bg sample web base yg gune MVC framework..sbb skg ni tgah study MVC utk ASPnet C#.. :3: :3:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...