Creating a web site with the use of JAVA SERVER PAGES will i need a controller

Posted on 2003-11-14
Last Modified: 2013-11-24
I am to create a web site with using either JSP or ASP.

What I would like to know is if I am using an (MVC)Model View Controller architecture how would the site be constructed in terms of a controller.

By this I mean I know the :
       Model will be a database e.g mysql, MS access etc..
       View will be either a combination of HTML, JSP, ASP PHP etc..
Am I correct so far

But I struggle to understand what will act as a controller in either case of JSP and ASP

Would i be right in saying
to use JAVA objects will be the controller
and VB SCRIPT be the controller in ASP

If am wrong with what I've said then am confussed so could you elaborate the MVC for ASP/JSP

AND could you provide simeple examples of MVC using the hello world as an example for both ASP and JSP.

Thanks ICE

Question by:Ice_1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
LVL 86

Accepted Solution

CEHJ earned 25 total points
ID: 9750228
MVC can mean different things in different circumstances. What you're referring to is more concerned with web application *tiers* or layers.

The main location of the MVC pattern with web applications nowadays is Struts. This is the way to go in designing web apps probably. Pleanty of documentation and examples available.

Expert Comment

ID: 9750232
If you want to use MVC in your JSP enabled web site. You can either implement your own MVC architecture or use an application framework like Struts.
You can read the explanation for MVC using struts here.
LVL 86

Expert Comment

ID: 9750428
Please don't duplicate information already posted
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Expert Comment

ID: 9750444
The comment was not there when I posted it . Maybe I didnt reload it.
LVL 86

Expert Comment

ID: 9750464
OK ;-)

Author Comment

ID: 9751216
I am referring to MVC as the web application tiers, What am interested is in what software can be used to create the controller.

Would it be if am using JSP, java or can I use a different language like Visual Basic.

Also if I use JSP how secure would that be in terms of getting users to login through user name password and personal details etc..

LVL 35

Assisted Solution

girionis earned 25 total points
ID: 9751644
>  What am interested is in what software can be used to create the controller.

  Typically you would use Servlets for the controller.

> Would it be if am using JSP, java or can I use a different language like Visual Basic.

  Java Servlets.

> Also if I use JSP how secure would that be in terms of getting users to login through
>user name password and personal details etc..

  Typically you will get the same amount of security as you get with any other language but it depends on the encryption algorithm. If you are talking with regards to login authentication and authorization then the security is implemented as part fo the Servlet enginee and you do not have to worry about that.

LVL 15

Expert Comment

ID: 9751671
If you decide to use JSP to generate your HTML pages (which is effectively Java inside HTML), then the servlet container (eg. Tomcat, Resin, etc.) will be able to provide the login security that you are looking for.

Struts is Java based and acts as a framework (hence the name ;-)) for your code within the servlet container.

I don't know very much about ASP, other than it seems to be moving to ASP.NET.  In this case, you'll probably be looking at a Microsoft server.  And you're asking in the wrong TA ;-)

Since you're only spending 50 points, it might be worth repeating this question in the Web Languages TA.

LVL 15

Expert Comment

ID: 9751676
Sorry girionis.  I seem to have overlapped with you ;-)  Your post wasn't present when I started typing ;-)
LVL 35

Expert Comment

ID: 9751823
 Np, it happens all the time :)

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question