Questions tagged as 'jsp'

1
answer

Show image in JSP

I'm having trouble displaying an image on my JSP page. I'm trying to use several different ways to get the file and I can not show it on the page. The folders are arranged as follows WebContent |_1.jpg |_ParaEmpresas.png |_img |_1.jpg...
asked by 17.06.2015 / 22:48
1
answer

Problems with date field in spring

I'm not able to retrieve a date field from my jsp. The field looks like this: <label for="txtDataEvento">Data do Evento</label> <input type="text" name="data" class="form-control" id="txtDataEvento" value="${evento...
asked by 05.06.2015 / 15:13
1
answer

How to prevent a JSESSIONID from being created when accessing a JSP page?

I created a simple JSP page, which does nothing but call a servlet to validate a login. Here is the code for page index.jsp : <%@page contentType="text/html" pageEncoding="UTF-8" %> <!DOCTYPE html> <html> <head&g...
asked by 10.03.2015 / 05:32
2
answers

Static content of jsp does not appear

I'm using netbeans 7.3.1, apparently it's working ok. The pages are opening normally, but when I try to access the css, jpg, ... content inside the resources folder, no content appears. In the dispatcher-servlet.xml file I put the following l...
asked by 21.02.2014 / 22:30
0
answers

Extract the contents of a JSP page to a String in a servlet or Java class

Good afternoon, I would like to check if anyone knows how to extract the contents of a JSP page to a String. Example: I have a JSP page with HTML content, I want to pass this HTML content to a String in the Java language, so I can send thi...
asked by 12.03.2018 / 19:47
0
answers

How to differentiate the sessions in the browser tabs?

In a web application implemented in Java using JSP and Servlets, if I store information in the user session, this information is shared from all the tabs of the same browser. How to differentiate sessions from browser tabs? In this example:...
asked by 08.01.2018 / 18:58
0
answers

Is it interesting to learn JSP in 2017? [closed]

This semester in college I will be studying Software Development for the Web and studying the menu I will use JSP. What caught my attention is the fact that the course comes with other themes like XHTML, Tomcat 6 and the use of an older versi...
asked by 22.01.2017 / 14:26
0
answers

Google CAPTCHA in Java

I'm having trouble deploying Google's CAPTCHA. On the form page I've added the script and the div of the captcha: <head> <script src='https://www.google.com/recaptcha/api.js'></script> </head> <form...
asked by 18.02.2016 / 19:16
1
answer

Customize error page to connect timed out in Spring

I'm trying to create a friendly error page in case LDAP is off the air, but unfortunately the only answer I get is j_spring_security_check . I tried to map the exception in web.xml , but I was not successful. <error-page>...
asked by 03.11.2015 / 15:18
1
answer

Using val () in script causes me to lose line breaks

I have a problem. I'm implementing a chat page using the following script: <script> $(document).ready(function(){ $("#enviar").click(function(){ var mensagem = $("#campodetexto").val();...
asked by 17.11.2014 / 19:01