Questions tagged as 'controller'

2
answers

How to do single registration query

I have a JSP that on the same screen I make a query record. When I open the screen I basically have the fields for the registration to below a grid with the listing of the bank, so far so good, working. As soon as I open the screen, the bank dat...
asked by 18.08.2017 / 14:45
3
answers

Angularjs Format date

How to format the date in the controller of input type="DATE"? I have this return in the controller ... Sat Aug 06 2016 00:00:00 GMT-0300 (Hora oficial do Brasil) Mon Aug 01 2016 00:00:00 GMT-0300 (Hora oficial do Brasil) You can format...
asked by 16.08.2016 / 00:54
1
answer

Can I call a class that does only one controller record?

I have a class from an android application that does only the user registry and called it the UserController. In my view controller makes the communication between view and model, but as the class only makes a registration, I believe that it cou...
asked by 19.07.2018 / 01:29
1
answer

I can not do include

I try to include, but the message appears: InsomeofthesearchesI'vedonesaytoincludeusingSystem.Linq;usingSystem.Data.Entity;butminealreadycontainsthese.Myclassesare:PhotoPartner:usingSystem;usingSystem.Collections.Generic;usingSystem.Componen...
asked by 28.01.2017 / 14:59
1
answer

PHP MVC - How to execute Model methods?

Good afternoon! How do I execute a method of the Model class, in specific a method of insertion to the DB, in case I need to send the data of the Form. This is the form in View (sector.php): <form method="POST" enctype="multipart/form...
asked by 27.07.2018 / 21:01
1
answer

Laravel 5.6 recover data from a form?

Error   Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException       No message No Controller Method class GuzzleController extends Controller { public function post(Request $request){ $email = $reques...
asked by 12.03.2018 / 23:44
2
answers

How to reference the variable within HTML through AngularJS?

Within an ng-controller, I want a variable to appear, and it is not appearing. HTML code: <div class="body" ng-controller="mercadoriaCarrinho as merc"> <span>Total dos produtos: {{merc.listaDoCarrinho.mercadoria.total}}</sp...
asked by 26.09.2017 / 02:27
1
answer

How do I know where the route came from and redirect back?

I have 3 tables in BD : Emitentes, Pessoas e Cidades . Being that in the Issuers table and in the People table I have FK id_cidade . When I am registering one, both Emitente and Pessoa have in the views a li...
asked by 03.04.2017 / 15:05
1
answer

How to execute a method at the initialization of ALL Controllers?

I have a static class that loads the language against the cookie stored or the URL. In every controller I have to insert the following method once: protected override void Initialize(System.Web.Routing.RequestContext requestContext) {...
asked by 28.11.2018 / 13:07
1
answer

HTTP Status 400 - Bad Request - Spring MVC

When trying to call a Controller method it is returning the following error:    HTTP Status 400 - Bad Request Type Status Report       Description The server can not process the request due   something that is perceived to be a client error...
asked by 30.10.2018 / 20:43