Questions tagged as 'mvc'

1
answer

HttpContext.Current.Session is null in thread

Hello, I have a problem with my code. I'm doing a function that lasts about 3/4 hours in length, and so I decided to do that function on a thread so it does not block the overall system operation. after some research I found some solutions and t...
asked by 06.10.2016 / 20:49
0
answers

HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: DataSource must not be null

When doing a query in a dao class, the following error appears: My spring-context.xml is: <mvc:interceptors> <bean class="br.com.softwarescomerciais.os.interceptor.AutorizadorInterceptor"></bean> </mvc:interceptor...
asked by 07.01.2017 / 19:03
0
answers

Sort threaded list in MVC pattern design [closed]

In my project I'm using a threaded implementation of my own list, that is, I'm not using the Java API ready list. Also, my implementation is from a generic list, which has objects of type Object on their nodes, so that it can be used for any typ...
asked by 09.12.2015 / 17:10
0
answers

GetById and GetAll causing slowness [closed]

I'm doing an application in MVC for study purposes, here the structure: Sketch of my class Model that will be extended by the child classes. <?php abstract class Model { protected $db; protected $table; function __construct(PDO $db, $...
asked by 06.10.2015 / 03:49
3
answers

Comparison between objects via loop, If and else?

I'm a beginner in java and I'm having trouble comparing objects through a loop. I'm developing software for an MVC (Model-view-controller) design video store and want to know how the person object compares through its code with zero. When I make...
asked by 20.10.2015 / 21:09
3
answers

Is it recommended to test model validations?

My experience is with Ruby on Rails, but I think my question will fit into other cases. The ORM ActiveRecord (from Rails) allows you to validate in fields such as: Presence Uniqueness Size (of a string ) etc I'm in doubt wheth...
asked by 18.07.2014 / 13:07
1
answer

Views accessing other controllers

Let's say I have class Veiculo and class Fabricante . Each vehicle has a manufacturer as an attribute, among other attributes. I have the views to keep (register, edit and delete) and fetch vehicle and also manufacturer. Eac...
asked by 13.12.2016 / 23:03
3
answers

Click on a tr to open a link

In the site I'm doing, there's a need to click on a row of the table it redirects to another page, but the row's id's are dynamic because each row should redirect to a page that shows more information. My View: @foreach (projeto1.Entidade.P...
asked by 21.03.2017 / 15:05
2
answers

Application does not save data and only saves code

I'm developing software for an MVC (model-view-controller) design video store and the problem of not saving people is occurring. It only saves the code of the people and I do not even know why it is happening not to save the clients because my s...
asked by 22.10.2015 / 19:01
2
answers

PHP does not recognize connection as parameter

I'm doing a system using MVC (the first time I use it in PHP), and when I go to login it appears:   Uncaught ArgumentCountError: Too few arguments to function Login :: login (), 2 passed in C: \ wamp64 \ www \ php_pdo \ controller \ logincont...
asked by 14.07.2018 / 05:33