Solved

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

Posted on 2003-11-14
13
264 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ArrayIndexOutOfBoundException 9 80
split string containing \r\n in Java 46 43
HashTable highest marks enumeration alternative 9 37
CSV file parsing thru Java 13 26
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

786 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