Solved

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

Posted on 2003-11-14
13
266 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
[X]
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
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
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example issues from command prompt 10 85
Setup GlassFish 4 55
restrict decimal places for double datatype 10 49
Java import explained 4 48
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

734 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