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. In listing 6.2 I don't see the variable name itsAg
View Tutorial          By: JC at 2013-04-16 01:49:52

2. Hi
after i dl the javacomm20-win32.zip and

View Tutorial          By: jm at 2010-05-31 01:42:28

3. (i'm a senior PHP programmer, but a newbie in JSP,
View Tutorial          By: LOL at 2013-03-22 08:57:21

4. i hav d same error as sudhir has "INVALID PO
View Tutorial          By: JAY SHAH at 2011-02-14 09:33:12

5. No it won't work...
View Tutorial          By: Arin at 2012-08-17 09:59:40

6. The logo is a cup of coffee. Java is an island in
View Tutorial          By: kamal goduguluri at 2012-05-30 15:34:21

7. where i can find Messageressourse.properties......
View Tutorial          By: sanjiv at 2013-09-07 06:59:19

8. it is very easy to understand to the learners.
View Tutorial          By: venkat at 2010-06-19 02:37:36

9. if done all the steps but i have found out this er
View Tutorial          By: hisham at 2010-11-24 11:01:54

10. I used the script above, and it seems to work exce
View Tutorial          By: Michael at 2012-05-15 20:50:49