Comment on Tutorial - MVC Architecture (Model 2 Architecture) By Baski
Comment Added by : Tayo
Comment Added at : 2010-01-03 12:53:46
Comment on Tutorial : MVC Architecture (Model 2 Architecture) By Baski
Thanks for the clear illustration of the MVC2 architecture. Could you please help me with this scenario:
1. I have a controller (servlet1) that passes some data(model) to the view (jsp1) for display.
2. On jsp1, i want to have a hyperlink to display some other view (jsp2), which a different set of data.
What is the proper approach?
a. Do i point the hyperlink (href) to another controller (servlet2) which gets the data(model) for display on jsp2
OR
b. Do i just point the hyperlink (href) directly to jsp2 and then use JSTL sql to access my data correctly? Is it proper to do this with MVC2 mindset?
If i take the approach in a., does it mean that i'll need a controller servlet for each view?
Please note that i'm trying to learn the MVC2 approach without using any framework yet.
Kindly help. Thanks
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. realy i enjoy it for visit your site. and i unders
View Tutorial By: vinod balot at 2015-02-09 17:43:30
2. Thanks , really appreciate
View Tutorial By: Marlen at 2010-11-23 10:50:29
3. FILE:- lpton.pl......
.....................
View Tutorial By: Prats at 2013-02-02 17:33:40
4. it is very easy to understand to the learners.
View Tutorial By: venkat at 2010-06-19 02:37:36
5. how i can used inheritence ?
View Tutorial By: samee at 2008-02-16 12:54:27
6. how can get ip url...?
View Tutorial By: arjuna at 2011-11-23 03:31:46
7. tell me the new page create in java and attach wi
View Tutorial By: muhammad nadeem at 2011-07-06 00:12:08
8. The code gives the following exception :-
<
View Tutorial By: waqar at 2012-07-26 17:02:07
9. Hi, I have mobile application developed in java w
View Tutorial By: Meenu at 2008-12-30 02:46:54
10. To "need help":
String st
View Tutorial By: alex at 2010-05-13 09:57:25