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
-
1
votes1
answer107
viewsHow to summarize a long text using Thymeleaf?
I have an object with two attributes, one is id and the other is strring type attribute called text type "TEXT" (postgres database) which is used to store the text of a customer post. When the app…
-
1
votes1
answer80
viewsConsume . jar in java web project
I created a file. jar (script.jar) that contains the "print()" method only returns a string and would like when I clicked a button on my Java Web application (Javaee) this "print()" method to be…
-
1
votes1
answer1834
viewshow to rescue a data list and view in jsp
Good evening, I am unable to display a list that is saved in the database on the jsp page. I would like to know how I do, have tried some ways, call for menagerBean and Servlet jsp calling on…
-
1
votes0
answers711
viewsexecute CMD command through JAVA
I am having trouble executing a command in CMD through JAVA. This command is executed by a . jar that lies inside a directory "C: Copyutility Copyutility.jar. So I need to enter this directory and…
-
1
votes0
answers60
viewsForeign Ireports Key: java.lang.Classnotfoundexception: br.com.tkcsapcd.model.bean.Projectnew
I have an error when compiling the report in Irepor, the first time I compiled it worked, however, when I closed Ireports 3.7.3, and opened again I tried to compile, the error below: Compiling to…
-
1
votes0
answers240
viewsUsing Spring MVC to upload a Google Hard Drive
I have a jsp page with the following code that uses google Charts and shows the Graphics on the jsp page. When I use a Servlet as a controller it works perfectly. <%@page contentType="text/html"…
-
1
votes1
answer720
viewsDisplay specific error! java.sql.Sqlexception'
Hello I am as following code: <c:set var="exception" value="${requestScope['java.sql.SQLException']}"/> <p class="alert alert-danger"><b>Ops!</b> Erro: <br><br>…
-
1
votes0
answers37
viewsProblems with Call Post
Following I am making the following mistake when calling a POST method 405 (Method Not Allowed) follows the method I’m trying to call @RequestMapping(value = "/upload", method = { RequestMethod.POST…
-
1
votes2
answers347
viewsError in DELETE method, to delete a data from a table
I am trying to make a method to delete an entry from a table with Java and jsp, but is giving error 405. I will attach the codes. Productodao.java.: public void remove(Produto produto) {…
-
1
votes0
answers57
viewsDoubt with JSP - Message
I am in need of help, to display a message through fmt:message. The situation is as follows. I have a form that is submitted via $.post. In the controller that receives this request, I do a…
-
1
votes1
answer494
viewsSpring error starting server
I imported a Maven project that worked perfectly before, but now I’m with it giving error. Every time I try to fix this error, I keep changing the versions of Java, deleting and importing again and…
-
1
votes1
answer284
viewsRead Javascript on all Foreach items
Guys, I have a foreach that loads several inputs, and I want my javascript code read on all inputs generated by foreach, someone can give me a tip on how to do ? Example <c:forEach…
-
1
votes0
answers94
viewsJSP Highcharts AND JAVASCRIPT
Good morning I’m making a chart using the Highcharts library, I implemented it in a static way to perform the tests, but now I need to pass the information from the database to him. I read and saw…
-
1
votes0
answers203
viewsGet JSP foreach value in Jquery to display in label
I would like help to catch a figure that is set within a forEach in my JSP, play for Jquery and it display in a label on the same page. That one forEach retrieves a direct list from the database. I…
-
1
votes0
answers43
viewsRun search update on button
My search field updates a selectManyMenu whenever something is typed in it <p:inputText id="txtFiltroOrgaoDestino" value="#{mBManifestacao.txtFiltroOrgaoDestino}" style="width: 350px">…
-
1
votes0
answers243
viewsIncorrect character display in html/jsp page
I was designing a website for academic purposes, but I came across a visualisation error. My html/jsp pages are not displaying the accented text correctly when retrieving from the database. All are…
-
1
votes1
answer134
viewsCannot cast from Object to int JSP
I am developing an application using JSP and servelt in which I want to get the total amount of records from my tb_driver table,created a servelt in which I passed the method that makes the query…
-
1
votes2
answers677
viewsjava.lang.Nullpointerexception JSP Servlet
I’m developing a web application using jsp and Servlet and I want to show all my records from my database and the amount of records in a table, I created a DAO in which I performed the queries in…
-
1
votes0
answers103
viewsUpdate data from an HTML page with JSP
I’m making a simple JSP system, where the program should simply fetch a float in a database and then add it to a variable. Everything is working, but I can’t make this information be shown by HTML,…
-
1
votes1
answer100
views -
1
votes0
answers45
views -
1
votes2
answers189
viewsI cannot connect jsp page to Oracle bank
This Web project of mine worked at school, but on my computer it won’t.. It was to return "connected in the oracle database" and returns "oracle.jdbc.driver.Oracledriver " Code class connection:…
-
1
votes1
answer289
viewsHow do I show an image that is in the database using jsp?
Well, here’s the thing. I’m using JSP, SERVLET and Mysql to insert images into my project, it turns out I just keep the image path in the database, and then call this path to show the image. Then…
-
1
votes2
answers227
viewsCapture Hidden value in lopping
I would like help on how to get a value of one hidden that is in a useful. I need that value to send to the next screen, but since it’s on a multi-line table, I’m not getting it done. I need to get…
-
1
votes1
answer35
viewsHow do I get the value that is returning from the console.log(Results[4].geocode) to use in my if comparison?
var init = [iAppLib.getPersonalBits(), iAppLib.getGeoCode() ]; var codes = false; var gcOk = new…
-
1
votes0
answers30
viewsQuestion: What is the best way to display data in a table?
I am studying JSP and Servlets and also Jquery and came across a situation. Situation: Imagine that you will display a product table where 20 items per page will be displayed for example. With that,…
-
1
votes1
answer754
viewsShow output from a JSP page Servlet list
I need to capture an input name, query the database and return the result on a jsp page. I want to show the result in a short snippet of the JSP page, in case I mix the text of the JSP page with the…
-
1
votes2
answers870
viewsHow to use a file . JSP
I am extremely new in JSP language, I wanted to know how to use a jsp file that I created and display for example in the browser, the same way I do with html files, ie how to use a jsp file…
-
1
votes1
answer64
viewsPass JSP Objects with Hibernate
Expensive, I have the classes below. I am having trouble creating a tree classification, because in JSP I am passing the parameters "Id Area" and "Tree Description", in the controller I am receiving…
-
1
votes1
answer50
viewsHow to make a for in a script tag?
Guys, I’m trying to create a page on my site that shows me title, description and the location of the record of some occurrences. When I access the page, I load through a <c:forEach> all…
-
1
votes1
answer38
viewsDifferent results with the same SQL statement
Talk programmers(as), quiet? I’ve done a lot of research not to repeat questions here, but I really don’t understand why the SQL statement works on Mysql Workbench and the Java/JDBC SQL string…
-
1
votes0
answers24
viewsError while using Servlet resources
Good evening colleagues, Please, I need your help to understand what’s going wrong, I have the following form: form action="CronogramaNegocio" method="get"> <div class="col-md-3…
-
1
votes0
answers474
viewsProblem with the encoding of accents
I am developing an application in Java Web, and I have an encoding problem. On my page already contains the following Tags: <%@ page language="java" contentType="text/html; charset=UTF-8"…
-
1
votes1
answer110
viewsFile type input with split() function returns with comma
I am recovering the returned file from a input of the kind file of a form and he returns C:\\fakepath\\nomedoarquivo.extensão so far so good, then I applied a split() and he returns the following:…
-
1
votes0
answers46
viewsHow to go through <c:foreach> and do a search bar from all the data?
I’m trying to put a search bar on the site using javascript, but it only searches the words I insert in the field in the first object added and not at all... My JSP: <ul class="list-group-item…
-
1
votes0
answers62
viewsDoubt on popular combobox giving setAttribute Java Web - Servlet, jsp
Why are not populating the two combobox? It seems that when I leave two setAttribute, it considers only one... This is the combobox of the filled groups... Java class code in the Command package:…
-
1
votes1
answer45
viewsHow to insert one div on top of the other?
I’m trying to insert a div with the name on top of the main one, I’m creating a goal monitoring panel, where the channel comes in the header and the percentage will be the center, as example of the…
-
0
votes1
answer42
viewsFind a variable in JSP
Work with several JSP pages that communicate, and currently I need to find a variable that is present in several pages, I need to find where it is being declared.
-
0
votes1
answer210
viewsExplanation about a JSP command
I have a command line in my JSP code that I can’t understand type StringUtils.isBlank I know it’s a condition, what I don’t know is what’s inside. It follows part of the code:…
-
0
votes1
answer200
viewsSwap attributes from one Object to another
In my java application I have a declosed object like Extrair extrair = new Extrair(); And I use this object and its attributes for my Serrvlet. But I need to pass this object to .jsp. In jsp I use…
-
0
votes1
answer568
viewsForm E-mail Validation in JSP
I am trying to validate a form of a JSP through Javascript but I am not able to apply the Script correctly, what I am doing wrong? <%@taglib uri="http://java.sun.com/jstl/core" prefix="c" %>…
-
0
votes1
answer68
viewsHow can I tunnel tcp with java?
The idea is this: Create a classe that keeps an eye on us eventos of socket client and when he receives data to classe redirects to the client that is connected to app. how to do this in java?…
-
0
votes1
answer520
viewsDatatable footer is not displayed
Following the datatable documentation: https://datatables.net/examples/advanced_init/footer_callback.html, Still nothing is displayed in the footer of my table, I already checked my code 20 times…
jspasked 9 years, 8 months ago JamesOrtiz 319 -
0
votes1
answer168
viewsfunction that clears the VALUE of the field in JSP
I need to insert in my JSP a function that cleans the input value when the user clicks to enter the value, but I cannot enter class in the input, nor is Placeholder and nor Onclick accepted, could…
-
0
votes0
answers32
viewsJSP problems using JSTL and JBOSS
I made a Hello World to test the application but the JSP page is not being rendered. Only the source code of the page appears. Is there any extra configuration? I even put all the dependencies in my…
-
0
votes1
answer561
viewsError in SQL Server and JSP connection
I am trying to connect to SQL Server using JSP. However the connection is not performed. Connection Class: package DAO; import java.sql.*; public class Conexao { public static Connection conectar()…
-
0
votes1
answer900
viewsHow to create administrator profile from that code?
How to create an administrator profile from that code, and when logging in a check is made whether you are an ordinary user or an administrator? Daousuario.java package br.edu.facema.model.dao;…
-
0
votes1
answer25
viewsHow to Execute a Method in Completing the Section?
I need to execute a certain method when the section is closed (when the user clicks to close the browser). I’m working with JSP and I don’t know how I can do it.
-
0
votes2
answers332
viewsJSP to import all acquisitions from a directory
It is possible import all files in a directory with only one call working with JSP ? Today I have the following: <script src="../resources/js/angular/directive/layout/mensagem.js"…
-
0
votes0
answers165
viewsEncoding problems in java
I have a classic encoding problem, I’ve done several tests, but nothing solved. The problem only occurs with data brought from the database in Sql Server, with the text fixed on the screen ta…