Questions tagged as 'jsp'

1
answer

Differences between JSF and JSP

Web programming recently (4 months) and went straight to JSF , that is, I did not study anything about JSP . I started to take a course and my teacher kind of belittles JSF saying that he has many limitations, that JSP...
asked by 18.08.2015 / 14:00
3
answers

How to resolve the error - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

I'm using Eclipse Mars.1 for Web development, I got this error by including a file JSP , The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path . I also have Tomcat 8 running on the PC.     
asked by 27.10.2015 / 23:01
2
answers

How to avoid HTML injection and XSS in .JSP pages?

No PHP I have seen uses of htmlspecialchars and mysqli . But in Java is there any way to avoid XSS and HTML injection? I'd also like to know what would be the best (safest) way: Escaping the elements ( HTML , Java...
asked by 17.04.2015 / 18:42
2
answers

Error in JSP include

I have the following situation: Servlet instantiated at root / MinhaServlet Jsp instantiated in a folder inside the root:    /folder/file.jsp Within this file I have the following <img src="_img/editar.png"> <a href="_...
asked by 13.08.2015 / 14:22
1
answer

User without access to mapped resources in Security-role of web.xml

What is the behavior of security-role of web.xml when user is not allowed access to project resources? Is the weblogic default to return a 404? Is this status configurable? Is there a possibility that when security identif...
asked by 24.08.2017 / 16:46
2
answers

How to pass a file from the JSP to the servlet?

I have a .jsp page where I have an input file. I need to open this file to use the information in it. Suppose it's a pdf. I get this pdf, sending it to the servlet for the purpose of using it in my JAVA application. The easiest way would be to t...
asked by 08.07.2014 / 17:01
1
answer

Question about inserting a Javascript Object

Context I'm trying to persist in the database of a purchase, as well as all of its items. For this I am using a .jsp file. But I need to send the web page data. Purchasing data is easy. The problem is in the items of the same, I wanted...
asked by 05.02.2017 / 07:09
1
answer

Why put the .jsp file in the WEB-INF directory?

Taking Maven as an example, when started a new web project, the structure is the same / similar to this: Meu Projeto |- src |- main |- java |- resources |- webapp |- WEB-INF W...
asked by 02.04.2016 / 00:14
1
answer

Servlet Doubt

Hello, I have a question with Servlet's. Imagine the picture: raiz / / formulario.jsp / Servlet / retornos / retorno.jsp The form sends the data to the Servlet by post or get! After this submission, using RequestDispatc...
asked by 14.08.2015 / 13:04
0
answers

Login with Digital Certificate (E-CPF, E-CNPJ) with Servlet / JSP [closed]

Hello. I want to develop a Login system similar to what government portals use (E-CAC, NFE and similar), where the E-CNPJ is used to login. I've done the following: 1) I created and signed an RSA private key for the server: keytool...
asked by 18.03.2016 / 22:36