Top "Controller" questions

A controller is responsible for executing a sequence of instructions in response to some stimulus (maybe a command, action, or event).

How to return a html page from a restful controller in spring boot?

I want to return a simple html page from controller, but I get only the name of the file not …

java html spring spring-boot controller
Web API Routing - api/{controller}/{action}/{id} "dysfunctions" api/{controller}/{id}

I have the default Route in Global.asax: RouteTable.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = …

asp.net routing controller asp.net-web-api action
Is Spring annotation @Controller same as @Service?

Is Spring annotation @Controller same as @Service? I have idea about @Controller which can be used for URL mapping and …

spring service controller
How do I create a simple 'Hello World' module in Magento?

How can the following be accomplished in Magento? Display a "Hello World" message using a controller/view/model approach. So, …

php magento controller magento-1.9
In Spring MVC, how can I set the mime type header when using @ResponseBody

I have a Spring MVC Controller that returns a JSON String and I would like to set the mimetype to …

java json spring spring-mvc controller
asp.net mvc3 return raw html to view

Are there other ways I can return raw html from controller? As opposed to just using viewbag. like below: public …

asp.net-mvc-3 controller return
Can we pass model as a parameter in RedirectToAction?

I want to know, there is any technique so we can pass Model as a parameter in RedirectToAction For Example: …

asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 controller
MediaController with MediaPlayer

I want media controls such as play/pause for streaming audio that I am playing in my app. I am …

android controller media-player
AngularJS: How to pass arguments/functions to a directive?

Look at this Fiddle, what do I have to change, that the expressions in the template get evaluated using the …

javascript html controller scope angularjs
Generate a controller with all the RESTful functions

I am trying to generate a controller with all the RESTful actions stubbed. I had read at Wikibooks - Ruby …

ruby-on-rails controller rest rspec