File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

controller responsibility

 
raviteja bokkisam
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lester Burnham
Rancher
Posts: 1337
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So if a servlet is serving as a controller, how is that not a controller? Your statement makes no sense.
 
Vineet Mangal
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This kinda discussion has no value at all. We both know what we actually mean!!!
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello raviteja.

Controller is just a pattern name, I believe the controller is in charge of checking what the user is requesting.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic