Most voted "jsp" questions
Javaserver Pages (JSP) is a technology that helps software developers create dynamically generated web pages based on HTML, XML, or other types of documents. Launched in 1999 by Sun Microsystems, JSP is similar to PHP, but uses the Java programming language.
Learn more…390 questions
Sort by count of
-
2
votes2
answers465
viewsJSP Dynamic Change in Jboss AS 7.1
Hello. When working with JSP I find it very bad to have to pause and start the application every time I need to see a change. Have any way to update page changes without doing all this?…
-
2
votes1
answer1055
viewsPass parameter between two Jsps
I have the.jsp end page and output.jsp. On the.jsp end page I send the parameter like this: <form action="saida.jsp"> <input type="hidden" name="informal"…
-
2
votes2
answers3719
viewsCalculate Distances Api Google Maps v3 Automatically in a Loop
I would like to calculate the distance between two points using the Google Maps V3 api automatically without using an interface, and send them to java for further processing. The coordinates are in…
-
2
votes2
answers588
views -
2
votes2
answers1318
viewsProblem when passing polluted bean to controller and insert in BD using Java with Spring mvc
I wish you could help me with this problem that is occurring in my application. Below is the code: package br.com.estoque.Controller; import java.util.Map; import…
-
2
votes1
answer104
viewsClient side deleted object instance and sends to the server
I wonder if anyone has ever been through this problem and how did you solve it. I am using JSP and Spring Data JPA. I delete records from the middle of a form that’s a detail using Javascript,…
-
2
votes1
answer124
views -
2
votes1
answer369
viewsHow to transform a Java String into a Java Array Object?
On a . jsp page, I have the following code: String[] arrayRegioes = request.getParameterValues("numRegiaoUsuario");//objeto When I print the arrayRegioes, the value shown is:…
-
2
votes1
answer652
viewsHow 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 of the page index.jsp: <%@page contentType="text/html" pageEncoding="UTF-8" %>…
-
2
votes0
answers60
viewsThe method exceeded the limit of 65,535 bytes
I have a JSP file and any line of code I insert, it displays the following error: The code of method .. is exceeding the 65535 bytes limit. The problem is that I am using Opencms, which is based on…
-
2
votes1
answer292
viewsAngular.js $setValidity onload Page
Setting: I have a form with 3 steps, a jsp for each step. In a given jsp there is a input text with the directive ng-minlength and a onChange calling a function that validates with the $setValidity…
-
2
votes1
answer713
viewsHow to pass information from a JSP page to a Servlet
I need to pass information from a String variable that is on a JSP page to a Servlet. For example: String path = "C: test.jpg"; How do I get this information from Servlet?
-
2
votes1
answer623
views -
2
votes1
answer1646
viewsShows image in JSP
I’m having trouble showing an image on my JSP page. I’m trying to use several different ways to get the file and I can’t show it on the page. Folders are arranged as follows WebContent |_1.jpg…
-
2
votes1
answer267
viewsJSP page being displayed as Java Spring text
My JSP page is being displayed as text. I’m using Spring and Spring Security. When I open the link for my browser page it opens as text (All HTML appears written on the screen as if I had opened the…
-
2
votes3
answers950
viewsHow to limit the characters of a label?
I’m in an e-commerce project, and I need to display a product name. I’m thinking of using a label for this. The idea is to leave x characters visible, if the title exceeds this number x of…
-
2
votes2
answers810
viewsHow to display attributes of an object passed in a list in a JSP page
I am working on a Java Web project, using the Spring MVC framework. I’m having difficulty displaying information that comes from a list where analysts are registered. The name of the analyst is…
-
2
votes1
answer957
viewsHow to use variables declared on other JSP pages after include?
I have a jsp page with only two includes in the whole code: <%@ include file = "../_global/prefixos.jsp" %> <%@ include file = "../_global/testaProfessor.jsp" %> In prefixos.jsp I have…
-
2
votes1
answer217
viewsClient sending String[] instead of Bigdecimal to server when changing
When it’s a re-registration works peacefully, the problem is in the alteration. I own an object To who is the master, another object B which is a ArrayList and detail of the master To and finally,…
-
2
votes1
answer2069
views -
2
votes1
answer210
viewsCustomize 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 have is j_spring_security_check. I tried to map the exception in web.xml, but I was…
-
2
votes1
answer173
viewsArraylist Comparator JSP Object
I’m having trouble implementing the Comparator method, to sort the Object Arraylist. I have an Enterprise class. Where I then create an Arraylist, which is filled from a content manager system. I…
-
2
votes0
answers449
viewsCAPTCHA Google in Java
I’m having trouble deploying Google’s CAPTCHA. On the form page I added the script and the div of captcha: <head> <script src='https://www.google.com/recaptcha/api.js'></script>…
-
2
votes1
answer95
viewsEL JSP does not work
Servlet code: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { token = "teste"; request.setAttribute("token", token);…
-
2
votes2
answers428
viewsMultiple sorts with Arraylist
I have a question. I want to order the Arraylist person in different ways. <%@ page import= "java.util.*"%> <%! public class Pessoa implements Comparable<Pessoa> { String Nome;…
-
2
votes0
answers41
viewsExtract content from a JSP page to a String in a Java class or Servlet
Good afternoon, I would like to check if anyone knows how to extract content from 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…
-
2
votes3
answers1999
viewsHow to work with Table of Contents on Hymeleaf?
Through a tutorial you can create an inclusion of products using the following html code <c:forEach items="${tipos}" var="tipoPreco" varStatus="status"> <div>…
-
2
votes1
answer50
viewsWhat is the problem with this query of my JSP?
This is an excerpt from a JSP page that lists the log-in user’s commitments.I don’t use JSP nor do I usually select this type but I need to use it this way. <% try {…
-
2
votes1
answer38
viewshttp get method called automatically
Good morning guys, I’m implementing the get a Servlet method here with a very simple logic. If the user passes a url in the default: ".../entities/id", the editing form should be opened with the…
-
2
votes1
answer163
viewsJSP for developers . NET
I’m a developer . NET who needs to understand a bug that occurs in a JSP application. (I don’t need to compile or fix, just understand how it is using the database and etc.) I already have Eclipse,…
-
2
votes0
answers901
viewsIs it interesting to learn JSP in 2017?
This semester in college I will attend the course of Software Development for Web and while studying the menu I saw that we will use JSP. What struck me is the fact that the discipline comes…
-
2
votes1
answer84
viewsOpening a full size Table
Well I have the following doubt. I have this table in my project. The user complains about the size because the scrollbars appear, as the page already has a lot of information can not increase it…
-
2
votes2
answers115
viewsWhen adding system function does not compile
I have the following class: package br.com.xti.ouvidoria.helper; import java.util.Collection; /** * @author Samuel Correia Guimarães */ public class ValidacaoHelper { /** * @param obj * objeto a ser…
-
2
votes0
answers128
viewsHow to differentiate sessions in browser guides?
In a web application implemented in Java using JSP and Servlets, if I store information in the user’s session, this information is shared from all tabs in the same browser. How to differentiate…
-
1
votes1
answer352
viewsHow to associate a Checkbox to a List of Objects in Spring MVC
Next up, folks, I’m having a little bit of a doubt about the manipulation of a checkbox list. I have a list of objects that are the Courses, and I would like that list to be linked to a 'List' of…
-
1
votes2
answers1332
viewsTransfer files. class to the /web-inf folder in Eclipse
I’m developing a web project for a final college job. When creating . jsp files for the application, it gives error because it does not find the class of Servlet. The classes and the files . class…
-
1
votes1
answer412
viewsHow to use SQL min() with float?
I have the following database table: *Table structure for table `resultados` */ DROP TABLE IF EXISTS `resultados`; CREATE TABLE `resultados` ( `cpf` varchar(14) NOT NULL, `nome` varchar(255) DEFAULT…
-
1
votes2
answers545
viewsRight structure to work with java (JSP)
I’m starting to develop with java (Jsp). And I would like to know the correct structure of working (only with java "pure"). Would that be: model (Classes with get and set) dao (classes that extend…
-
1
votes1
answer262
viewsUnable to locate current JTA Transaction
The project is divided into the following modules: test-persistence; test-services; web test; I use Glassfish 4 as an application server and it has a connection pool configured for connections to…
-
1
votes1
answer605
viewsValue sent to JSP via Spring Model does not appear
I’m developing a project using Maven, Spring framework(mvc module), and database searches through JDBC. I have the following code in my controller: @RequestMapping("/authors/edit") public String…
-
1
votes1
answer2722
viewsClick line from a jQuery Datatable and load a page with id information
I am listing information from my database in a datatable with jQuery and so far everything is ok. What I want to do is by clicking on the 'Row' from Datatable click on that div all the information…
-
1
votes1
answer107
viewsHostings that use JSP
I have a linux web hosting I put all my systems in PHP, and now I need to work with the extension (*.JSP) and I have some doubts What type of host I use to run JSP? Cpanel runs JSP automatically?…
-
1
votes1
answer584
viewsHow to treat error 404 and 500 in vRaptor?
I have seen tutorial of vraptor4 teaching to put this error in web.xml, to redirect, the following xml code: <error-page> <error-code>404</error-code>…
-
1
votes0
answers18
viewsDoubts on how to develop a Skill bar
Good afternoon, I’m having difficulty finding anything about Skill bar, usually just find Skill bar percentage,e as the example image below, I wanted to develop a field where the user can add their…
-
1
votes1
answer122
viewsUse of val() in script makes me miss line breaks
I have a problem. I am implementing a chat page using the following script: <script> $(document).ready(function(){ $("#enviar").click(function(){ var mensagem = $("#campodetexto").val(); var…
-
1
votes1
answer137
viewsOne controller method works correctly and another similar returns error
I have two Controller files and two JSP files with the same structure. In JSP I have the following structure for AJAX: $.ajax({ method: "POST", url: '/modulo1/funcao1', data: { 'atributo1':…
-
1
votes2
answers336
viewsInstantiate an external Java directory class in JSP
I created my app Java with Eclipse in the directory Meus Documentos/workspace/TesteJAVA/ Now I want to call a class with JSP, want to know how to configure to grab the application from this…
-
1
votes1
answer88
viewsEvents and changes in a JSP?
Hello. I have a jsp being a chat (due to a restriction, I am using Struts 1). In this JSP, I have the following div: <div class="conteudo" id="conteudo" name="conteudo">. I need to, return an…
-
1
votes1
answer106
viewsProblems in JSP implementation using Struts2
After executing the following jsp: <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ page language="java"…
-
1
votes1
answer551
viewsHow to know which version of JSP is in a project
I have a project Java and would like to know what version of JSP that is being used in this project. Example, I have an old project, how can I get this information?