Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

mvc2 tier Arch.

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In MVC2

Can i use like this?

[ Added code to retain formattng - Dave ]
[ January 10, 2008: Message edited by: David O'Meara ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you explain it in a a little more detail?
 
rex tony
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1.For View, we can use JSP,HTML so forth.
2.For Controller, we should use Serlvet class
3.For Model, we can use DB,EJB
My Questions are
Can we use Java Bean
Between 1,2
Between 2,3
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Typically JavaBeans are your model and they will be used by some DAO/Service layer to transport data back to your controller and again on through to your view. They are also used similarly in reverse although the transport from view to controller is typically done via HTTP rather than a JavaBean itself. Once the controller has the request you'd wrap up POST/GET data into a JavaBean. Hope that makes sense.
 
Marshal
Posts: 67522
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
P.S. It's MVC, not MVC2.
 
rex tony
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Bear Bibeault
So which one is come under MVC1 ,MVC2,From you a little bit of disorientation
 
Bear Bibeault
Marshal
Posts: 67522
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no MVC1 or MVC2. There is just MVC. You may be thinking of Model 1 vs. Model 2 (Model 2 being the MVC approximation on the web), or perhaps Struts 1 vs. Struts 2.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by rex tony:
Hello Bear Bibeault
So which one is come under MVC1 ,MVC2,From you a little bit of disorientation



See:
http://faq.javaranch.com/java/Model1Model2MVC
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic