wood burning stoves 2.0*
The moose likes Servlets and the fly likes controller responsibility Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "controller responsibility" Watch "controller responsibility" New topic
Author

controller responsibility

raviteja bokkisam
Greenhorn

Joined: Sep 20, 2010
Posts: 2
In j2ee which component handles the responsibility of the controller?

[edited subject; it was 'friends please send me the answer as soon as possible"]
Vineet Mangal
Greenhorn

Joined: Oct 28, 2007
Posts: 7
You first need to learn ethics to ask question on a forum. Never use as soon as possible phrase again.

Further, regarding your question, so there is no such thing that as Controller, however you can design a Stateless Session bean to behave like Controller.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61105
    
  66

Please be sure to take the time to compose descriptive subjects for your posts. You will attract people who will can give you better and faster answers when your posts have good, descriptive subjects. For more information, please click this link ⇒ UseAMeaningfulSubjectLine.

Using a title such as you have isn't going to attract the attention of those who can best help you.

You can change your subject line by clicking the button on your post.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Vineet Mangal wrote:there is no such thing that as Controller, however you can design a Stateless Session bean to behave like Controller.

So there actually *is* such a thing as a controller? :-)

A controller is a pattern that could occur in any one of the various architecture layers, but the most common one is probably the "C" in "MVC" than is often found in the front end of a web app. That's probably what you're asking about, since you posted in the Servlets forum. This article may bring about some clarity: http://www.javaranch.com/journal/200603/Journal200603.jsp#a5
Vineet Mangal
Greenhorn

Joined: Oct 28, 2007
Posts: 7
Yeah I do agree that there is no such thing exists as Controller, but many a times Servlet is being used as controller and hence many newbies corelate two terms.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61105
    
  66

So if a servlet is serving as a controller, how is that not a controller? Your statement makes no sense.
Vineet Mangal
Greenhorn

Joined: Oct 28, 2007
Posts: 7
This kinda discussion has no value at all. We both know what we actually mean!!!
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Hello raviteja.

Controller is just a pattern name, I believe the controller is in charge of checking what the user is requesting.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: controller responsibility