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
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. can this code communicate with other pc that using
View Tutorial By: lolo at 2011-10-28 09:14:30
2. Great!
View Tutorial By: justauser at 2012-08-31 13:57:58
3. Hi ,
Since both the methods in the
View Tutorial By: Chintan at 2013-11-21 03:42:32
4. What if I wanted POST instead of GET?
View Tutorial By: Otto at 2011-06-12 15:38:50
5. Hi,
Are you getting any specific er
View Tutorial By: Norman Chap at 2008-12-04 02:42:47
6. HI . i got the following exception while start up
View Tutorial By: Ramesh at 2011-02-01 00:14:14
7. Hi ,learn a new thing about These Transient and Vo
View Tutorial By: LakshmiNarayana Golla at 2010-07-28 02:49:48
8. Simple and to the point. Thanks for this tutorial.
View Tutorial By: Balvinder at 2008-08-03 04:40:05
9. Very nice
View Tutorial By: sharath at 2012-07-17 11:31:20
10. Thanks Steven, That is an exhaustive list of diffe
View Tutorial By: Robert at 2008-12-08 22:17:47