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



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

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions 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

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Hi, I am getting following exception while running
View Tutorial          By: Vasundhra at 2008-06-24 07:04:42

2. Hi, You need to place a control on your form

View Tutorial          By: Ranjit at 2010-02-09 02:29:40

3. Dear sir,
Can you provide me for a simple p

View Tutorial          By: kartikeya at 2012-12-22 10:19:41

4. Thank you, that was short and enough :)
View Tutorial          By: Bilal korir at 2014-05-20 21:37:12

5. from docs api api/java/awt/Frame/setOpacity:

View Tutorial          By: robert at 2014-12-12 07:48:59

6. gud example, we welcome you
View Tutorial          By: jasim Khalid almurakh meherbani at 2010-09-20 03:14:25

7. Thnx A Lot...very healpful...........
View Tutorial          By: vinay at 2012-07-19 09:21:20

8. Those who want the details of JAVA should search f
View Tutorial          By: Amit Singh at 2011-11-13 11:42:42

9. this site is excellent & too easy to understan
View Tutorial          By: Gaurav Kushwaha at 2010-08-16 06:30:45

10. i need table example!!!...
View Tutorial          By: Sadyog at 2011-01-03 21:59:09