Solved

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

Posted on 2003-11-14
13
265 Views
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
       



0
Comment
Question by:Ice_1
  • 3
  • 2
  • 2
  • +2
13 Comments
 
LVL 86

Accepted Solution

by:
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.

http://j2ee.masslight.com/Chapter4.html
http://jakarta.apache.org/struts/
0
 
LVL 1

Expert Comment

by:rightho
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.

http://jakarta.apache.org/struts/userGuide/introduction.html#mvc
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9750428
Please don't duplicate information already posted
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
LVL 1

Expert Comment

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

Expert Comment

by:CEHJ
ID: 9750464
OK ;-)
0
 

Author Comment

by:Ice_1
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..

ICE
0
 
LVL 35

Assisted Solution

by:girionis
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.

 
0
 
LVL 15

Expert Comment

by:jimmack
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.

0
 
LVL 15

Expert Comment

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

Expert Comment

by:girionis
ID: 9751823
 Np, it happens all the time :)
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apache Camel - Unable to propagate JMS Header Properties between Request - Response 3 14
throw exception 21 66
wild fly 8 startup error 2 37
jmeter usage 4 31
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

679 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