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



Ask a Question

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 there, thanks for taking time to write this dow
View Tutorial          By: nick at 2012-07-31 10:41:47

2. Hi, I second that Raghav, kindly can u email me a
View Tutorial          By: SAM at 2011-03-06 05:03:09

3. THIS IS VERY SIMPLE AND EXCELENT PROGRAM.THIS PROG
View Tutorial          By: CHIRANJEET at 2011-02-05 12:13:54

4. Excellent site.
View Tutorial          By: anonymous at 2011-11-06 12:07:14

5. Please provide me a particular flow of validations
View Tutorial          By: Deepali at 2013-05-10 10:38:18

6. I have got "time out at step 6". How can
View Tutorial          By: MCHON at 2008-10-05 12:36:42

7. very good cod
View Tutorial          By: moly at 2007-03-13 08:17:40

8. Hi Shreya, in Linux, the COM ports are identified
View Tutorial          By: Ramlak at 2008-06-23 03:34:11

9. Sir. Please give an example which is small and und
View Tutorial          By: mogesie gedamu at 2011-12-19 12:55:33

10. i am newly in java, i want to learn about this and
View Tutorial          By: gelen at 2010-11-23 02:57:15