Questions tagged as 'servlet'

1
answer

How to open a JSP inside a JSP through a Servlet?

I'm using a Script, but I'm not using Servlet to do the desired action inside my index.jsp page, and do not use this Script below to open a JSP file inside my index.jsp home page. <script src="//ajax.googleapis.com/aj...
asked by 21.06.2015 / 16:54
1
answer

How to know which page is responding to the JSP request

I have several pages JSP , and I treat all of them in my% control%. I would like to know if you can identify the page that is being displayed so that I can do all the treatments, servlet and requests , specific to this page. C...
asked by 24.11.2014 / 00:05
1
answer

How to ensure that a Servlet is Deployed on Tomcat 7 using Servlet Container 3.0?

I'm developing an application that uses the Servlet 3.0 API via Notes and porting does not need WEB-INF / web.xml file The problem that sometimes when I do Deploy in Tomcat 7 the Servlet is not available and I get a 404 error. There is no err...
asked by 21.03.2014 / 20:26
2
answers

Servlet with JSP does not insert into the database

I'm doing my Interdisciplinary College Project and it would be an e-commerce. Well, I was following the part of inserting in the bank for a course book I made for Caelum, but I do not know if something is missing in the book, but at the time of...
asked by 08.11.2018 / 04:54
1
answer

"div loading" servlet

I have a screen that has the function of sending a file to the server via servlet but since this file can be large, I needed a panel or a div with a load gif. I'm using richfaces, already tried to use popupPanel , div and giv...
asked by 12.11.2014 / 19:17
1
answer

Jquery / Ajax Duplicating

Good afternoon, I've already researched this problem here in the forum and tried some solutions but I do not know what I'm doing wrong. I have this function that calls my Modal. function verificarSenha() { var fo...
asked by 13.01.2017 / 18:12
2
answers

Select in Hibernate does not return extended class

I have a class, Vendor, that is extended from class Pessoa . In method listarFornecedores of class FOrnecedorDao : public List<Fornecedor> listarFornecedores() { session = HibernateUtil.getSessionFactory().openS...
asked by 23.01.2017 / 13:39
1
answer

Error 404 directed to the Servlet. Problems with Dispatcher

I'm studying java for web (EE) and would like to know if you could help solve a java problem! I have in my web.xml a call to the file erro404.jsp that is in the root of the site to filter pages that do not exist! It turns out that if the n...
asked by 12.08.2015 / 21:01
1
answer

Why does my DriverManager return null pointer?

PostgreSQL 9.4 I run my class Noticias() . Within method public static void main() of class Noticias() the call is made from a getConexao() method; When I run pagecontroller?=p=noticias in the browser...
asked by 20.06.2015 / 19:44
2
answers

Can a servlet send to two different JSPs?

My page index.jsp uses the Servlet and then sends it to resposta.jsp . In resposta.jsp depending on the button, I use the Servlet to use another Java function. But I do not know how to make this use. In my servlet I use:...
asked by 14.11.2014 / 01:36