Questions tagged as 'jsp'

1
answer

Error with controller in another file - AngularJS

I have a web project in which I am trying to get the data from the bank and put, through the angular, into a table. The way I found it was to use a jsp file and put the data through java. It was working perfectly. But when I decided to turn the...
asked by 26.11.2017 / 15:36
1
answer

Send selected value of the option by parameter

I'm developing a Java application where I get the data from the database and present it to a <select><option> but I do not know how to get the value selected and send per parameter.    JSP <c:choose> <c:w...
asked by 24.11.2017 / 02:37
1
answer

Question about Filter - JSP

Well, I'm learning JSP and I'm trying to make a filter where the user is not logged in. It redirects to a login page, and I'm not getting it. I created a Servlet controller that does the Dispacher for a JSP, in case it would be Add Task and...
asked by 14.11.2017 / 12:26
2
answers

Accentuation problems in sql

I have problems with accentuation in the registry. If I register names with an accent, they come out confused, I do not know if it's any sql problem. I've already changed utf8 to this but the site text gets confusing. <%@ page contentType="...
asked by 08.11.2017 / 16:34
1
answer

How to get my array in the JSP page

public void Pesquisar(){ try { Class.forName("com.mysql.jdbc.Driver"); try { Connection conexao = DriverManager.getConnection("jdbc:mysql://localhost/CadastroProdutos", "root", "maquinarafa"); Statement comando = conexao.c...
asked by 10.11.2017 / 23:44
1
answer

If the user accesses the home before logging in, it should be redirected to the index using jsp

What check should I make if the user directly accesses the home.jsp page without logging in?
asked by 15.11.2017 / 04:59
0
answers

Message on the JSP Servlet page

I am developing a JSP and Servlet login in which it does the validation of the fields if they are filled and certain but when redirecting to login page it does not display the message of Please fill in the fields of login or password or Incorrec...
asked by 28.10.2017 / 22:41
1
answer

JPA + JSP - Error trying to insert information into the database

I have a problem that I can not solve. I'm trying to enter the information in the bank and I'm not getting it. the browser is returning the following error when registering. Served at: / SISTEMA_ESCOLAR Follow my code.    Class ServletCad...
asked by 29.10.2017 / 04:34
1
answer

ResultSet is not positioned correctly, you may need to call next

I am developing a web application using JSP and Servlet and that I register the data of the products in the database and present the data in a table, but when I try to see the image registered by the primary key the description http://localho...
asked by 01.11.2017 / 15:45
0
answers

JSF - Interrupt method when closing browser

I have a report that depending on the filter applied may take a long time to finish. On some occasions the user gives up waiting and closing the browser, it happens that the query is still running on tomcat. Is there a way to invalidate the sess...
asked by 26.10.2017 / 13:02