• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

controller responsibility

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"]
 
Greenhorn
Posts: 7
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This kinda discussion has no value at all. We both know what we actually mean!!!
 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic