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
-
0
votes1
answer177
viewsWhat is the best way to hide visible JS functions when specifying HTML?
I have some Javascript functions in my pages that were previously inserted directly into jsp, within the tags <script>. I later changed them to a.js file where I just import the functions. I…
-
0
votes1
answer111
viewsDifficulty to view data in a Vraptor web project
Check my JSP page <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"…
-
0
votes2
answers223
viewsJSP information for another JSP
Example: I have a JSP A, which has some information and a button. When you press this button, JSP A sends variables to B (such as id, name...). B would use this information and update the page…
-
0
votes1
answer44
viewsWrite to a csv file with JSP without overwriting what you already have
I have this code below to record information in the csv file, but whenever I record something, what I have already written is lost. How do I get him to add a line with the new information keeping…
-
0
votes0
answers350
viewsAngularjs and JSTL Master-Detail
Good afternoon, you guys. Next, I’m using Angularjs to add the details of a sale, but on the server side I’m using Spring MVC with JSTL foreach the details to add on the server. HTML that rescues…
-
0
votes0
answers145
viewsERROR while trying to recover data on JSP
Error: org.apache.jasper.JasperException: An exception occurred processing JSP page /ViewAluno/index.jsp at line 20 17: 18: <body> 19: 20: <input type="text"…
-
0
votes1
answer150
viewsHow to send object as attribute from another JSP object to a Spring controller?
Hello, I have a class News story related to Manytoone with a class Secao. The Noticia class has an attribute of type Secao (where the @Manytoone relation occurs). I would like to know how to, in the…
-
0
votes1
answer853
views -
0
votes1
answer232
viewsReturn null JSP
Guys, I’m having a little bit of a problem, but it’s really pissing me off in a simple college exercise. The intention is only to make a program that receives a quantity x and a value y, and…
-
0
votes1
answer53
viewsHow to convert String to Double using JSP FMT EL
Hello I have a 9.9 string, I would like to convert into 9.9 and double to add Currently I use it like this: <c:set var="media" value="0" /> //onde a funcao.valor é uma string 9,9 <c:set…
-
0
votes1
answer244
viewsHow to show a confirmation message after checking in Servlet?
Good afternoon, you guys! By clicking the Change button, I perform a check to see if the data in the database remains the same. How do I return a confirmation window if the results are not the same?…
-
0
votes0
answers73
viewsSuggestions for updating JSE application to J2EE
Already for more than three years I do not work with Java for real, I have worked with PHP, learned and liked a lot. In my opinion, all two languages have many legal advantages to be incorporated…
-
0
votes1
answer208
viewsHow to print the Browser or OS name on a JSP - Java Web
would like to know how to print the browser the client is using and if OS using jsp. Some people suggested using ${header["user-agent"]} however, this command returns various information and I would…
-
0
votes1
answer249
viewsHow to set a timeout for a particular action in Java?
I would like to set a timeout for a particular action on JSP pages, which should work with the following conditions below: When I click a button for example "Travel", the page should somehow save…
-
0
votes1
answer275
viewsavoid confirmation of resubmission form
I’m developing an application and when I click save it redirects to where I want updated. Only if I refresh the page it asks if I want to take advantage of past data before, I wouldn’t want it to…
-
0
votes0
answers46
viewsJSP does not recognize Twitter Bootstrap
I’ve been trying to figure out the pq my JSP page does not recognize the CSS of Twitter Bootstrap. The ones I found on the Internet, I’ve tried and nothing. The reference went like this for CSS:…
-
0
votes1
answer317
viewsMap Home Page Springmvc
Hello! I would like to map a home page using springmvc I have this method: Man Controller public class Treinamento { @RequestMapping("/inicio") public String inicio(){ return "index"; } } in my web…
-
0
votes0
answers184
viewsINFO: Error Parsing HTTP request header
When submitting a form, I was testing how much information I can send via HTTP. I am using Mysql DBMS. I have an application that runs several textarea fields. Example: a form with 10 textarea (I…
-
0
votes0
answers20
viewsJsp instead of Servlet
I did a lot of research, but it wasn’t very clear to me. Why can’t I use JSP pages to connect to Database (Mysql for example) and return this data by an Ajax function for example, to another JSP…
-
0
votes0
answers291
viewsDoubt How to Recover Data in blob format and display in jsp
Good Staff I am with a very critical doubt I am not managing to recover the data from a field of my database that has the format blob I read some documentations but I could not understand very much…
-
0
votes1
answer643
viewsLoad Json Search in JSP
Good Morning I’m trying to make this example in my project. It’s a simple change of Select when you choose State Change Cities in another Select. https://gist.github.com/ografael/2037135 But I can’t…
-
0
votes2
answers1156
viewsSpring MVC and UTF-8
I’m making use of Spring MVC in a project, running on a Glassfish server and having trouble displaying text on JSP pages that contain special characters such as accents. I tried to put the charset…
-
0
votes1
answer136
viewsDoes an http request on a JSP page open a session?
I have a web application that contains some JSP pages that return a JSON. This application has a large access flow, and I noticed that there are many open sessions in the Glassfish server monitoring…
-
0
votes0
answers391
viewsRedirect JSP page
When registering the "object" in a JSP, it calls a command that at the end calls another that redirects to the "list". RequestDispatcher dispatcher =…
-
0
votes0
answers100
viewsHow to insert Google Analytics charts into HTML?
I need to insert the customer’s Google Analytics charts into the Dashboard of his website. How to do this? Example:…
-
0
votes1
answer38
views -
0
votes0
answers66
viewsDoubt about JSP page by calling
If I consider that an application has run a JSP page through the call http://localhost:8080/application/list.processes Which of the alternatives is correct? a - Pode existir um servlet acessando um…
-
0
votes0
answers573
views -
0
votes0
answers56
viewsButton that goes to another page and returns the value passed
Hello, I would like to know how to make a button to get data from another page...type if in page1 I inform the protocol and valid with a captcha and click on send,I would like to know how to send…
-
0
votes2
answers452
viewsComparison request.getParameter with JSP string
I’m wanting to pick up what the user will type with request.getParameter and compare with a String and if the value the user enters is equal to string, the user is redirected to the page but this is…
-
0
votes0
answers105
viewsJSF - Abort method when closing browser
I have a report that depending on the filter applied can take a long time to finish. In some occasions the user gives up waiting and close the browser, it happens that the query is still running on…
-
0
votes1
answer111
viewsJPA + JSP - Error trying to enter information into database
I have a problem that I’m not able to solve. I’m trying to enter the information in the bank and I’m not getting it. the browser is returning the following error when registering. Served at:…
-
0
votes1
answer394
viewsResultset is not positioned correctly, you may need to call next
I am developing a web application using JSP and Servlet and that registers the product data in the database and present the data in a table, but when trying to see the image registered by the…
-
0
votes0
answers318
viewsJSP instant messaging web application with Websockets
I would like to get or build an example according to what I leave in the following image: This one will need to use websockets. I tried to study the matter of websockets and run some examples only…
-
0
votes1
answer82
viewsHow do I work with object as attribute in registering another object using JSP?
I have a Schedule class. In this class I have a Task object. My question is, when creating the screen to record the scheduling, I will have a field to record the Task of this scheduling. Assuming…
-
0
votes1
answer151
viewsController error in another file - Angularjs
I have a web project that I’m trying to take the data from the database and put, through the angle, into a table. The way I found it was to use a jsp file and put the data through java. It was…
-
0
votes1
answer3142
viewsJSP - java.lang.Illegalargumentexception: Parameter value [11] Did not match expected type [java.lang.Integer (n/a)]
CAN SOMEONE TELL WHAT I AM DOING WRONG? public List<Usuario> obterusuario(String user){ Consultar consulta = new Consultar (); EntityManager obconsulta = consulta.getEntityManager();…
-
0
votes0
answers259
viewsRecovering object and setting in a modal
How do I stop when I click the trigger editar, a modal open with the data of an object I previously selected in the table? Follows my code: <div class="container"> <div class="row"…
-
0
votes1
answer1061
viewsCapture the file creation date
I am creating a control panel on jsp to show updates of Excel files of a particular folder on the network. Problem: I have several SAS programs that are scheduled to update daily, and generate the…
-
0
votes0
answers177
viewshow to pass HTML objects as parameters
wanted to know how I can pass a variable VARIAVEL of the kind "[object HTMLTableRowElement]" as a parameter to send to a JSP that will make a $(VARIAVEL).remove() using javascript. This variable has…
-
0
votes0
answers38
viewsHow to upload an image to a file using JSP
Hello how are you? I apologize for the language, because I live in Uruguay. I wanted to know how and which Java objects (specifically JSP) I can use to upload images to a file on my Windows? I have…
-
0
votes1
answer953
viewsHow to compare String to String received in a . jsp?
I have an html page and it sends a form with POST method, I take the data like this: String email = request.getParameter("user"); When I compare the email string to another string containing the…
-
0
votes0
answers20
viewsHow can I request data in the table of my html page?
I’m making a system where at some point I should display some information listed in a table on the page. How do I create this table that should receive this information from my bank?
-
0
votes2
answers634
viewsJSP how to include a select within a checkbox
I am developing a web application, with java spring mvc, and need to list items in a dynamic checkboxList and include a select option in each item. Something that in html would be similar to the…
-
0
votes1
answer288
viewsCheck user Age using Jquery(datepicker) & JSP
Needing to implement a javascript function where calculates user age, informs an alert if it is under 18.Use Jquery library along with JSP,where datepicker is automatically loaded given a framework…
-
0
votes0
answers17
viewsWhat is the best way to convert an HTML5 project to JSP?
Good afternoon programmers, I am new here in Stack and new also in this technological world and even more in the area of programming. I have a college project and as the first good project even…
-
0
votes2
answers6574
viewsTo enable and disable a text type input after a value selected in the combobox
My jQuery < script > $(document).ready(function() { var tipo = $("#idTipoParticipante option:selected").text(); if (tipo == 'Personagem') { $("#enable").click(function() { // habilitando o…
-
0
votes0
answers209
viewsJava Spring MVC error 400 - Search for 2 fields
You guys, blz?! Next, I’m finalizing a project to complete a chair in college and I’m getting a very strange mistake. I’ve already checked with another classmate, but we can’t identify. I need to…
-
0
votes0
answers179
viewsSpring Web MVC - Controller not working
I’m trying to make a basic application, with a controller that sends a message to the screen and puts CSS into the project, but either CSS works or the controller. Follow the codes: 1) Netbeans…
-
0
votes1
answer6616
viewsHow to resolve java.lang.Indexoutofboundsexception: Index: 25, Size: 25
I am developing an online questionnaire in JSP, where the user selects the radio of each question to be validated. Example: a questionnaire of 25 questions, if the user reaches 25 and clicks the…