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. i Want the Flow Chart for the Calendar Demo Progra
View Tutorial          By: Narayanan V at 2010-01-06 18:57:25

2. actually very good site. I learned more & more
View Tutorial          By: shiranthi at 2012-07-12 12:18:38

3. I got intersting idea about gauge,thanks...
View Tutorial          By: Marimuthu at 2009-07-20 00:56:27

4. samples
View Tutorial          By: kamlesh at 2010-11-18 03:33:09

5. hi friends,
can i write the same jdbc code

View Tutorial          By: mahesh at 2012-01-05 05:09:38

6. Norman, it would be good to credit where your writ
View Tutorial          By: K&R at 2014-03-20 11:41:56

7. There is another similar discussion on use of tern
View Tutorial          By: Syed Mamun Raihan at 2008-09-10 11:29:42

8. Great example - easy to understand!
View Tutorial          By: George at 2009-12-30 03:48:37

9. nice one
View Tutorial          By: sarvesh at 2015-03-12 05:16:10

10. This is helpful for newbies like me :P
View Tutorial          By: Mustafa at 2011-06-18 23:40:27