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
votes0
answers30
viewsHow to clear the attribute value = " " of html:text
Good morning guys, I’m trying to clear the attribute value="teste" of tag html:text, but I am not succeeding, the problem is qnd I submit the form with an empty field that is mandatory it makes the…
jspasked 6 years, 2 months ago Israel Andrade 11 -
0
votes1
answer529
viewsSend a Servlet object array to a jsp page
I need some help I have a Servlet that returns an array object p with a select query. I would like to know how to display this object in my jsp in HTML input fields (text box)
-
0
votes2
answers75
viewsGetting HTML table data from JSP
I search the data in the database and mount a table in my JSP. The information is from several flights of an area company. The goal is to choose an air ticket among all loaded. I intend to put a…
-
0
votes0
answers294
views -
0
votes1
answer191
viewsEnconding problem: JSTL fmt
I’m using fmt to internationalize the texts on a page. It turns out that when using accents, the text gets weird characters. I tried to change: <fmt:requestEncoding value="UTF-8" /> but there…
-
0
votes2
answers379
viewsHow to make a path of the pages accessed on a website
Hi, I’m looking, but I can’t find anything on Google. I want to put a "path" like the photo on my site, I imagine it is simple, but I do not know how to do, if someone knows or has a link, I will be…
-
0
votes0
answers45
viewsJava Web / Glassfish application stopping
I’m having a problem and unfortunately I’m not finding the cause. I have 3 Java Web applications running on a Glassfish server and what happens is that these applications suddenly stop working.…
-
0
votes1
answer49
viewsHow to hide gid line with jQuery in checkbox checked?
Look at the picture; In the image above shows that by clicking the button Show non-compliance Does not apply it hides the two checkbox on the grid. But what I need is quite different, I need that…
-
0
votes1
answer41
viewsSame pop up on multiple pages
In my project, the user can login to any page they’re on. I could build the same pop up on each of the pages, but would like to know if there is any way I can build the pop up in a separate file and…
-
0
votes0
answers32
viewsWhat is OVERLOAD for?
Guys, I’m starting to do a crud that my teacher asked for in college. He passed a pdf and good, I had absolutely never heard of this concept. I’m using java and he used Connectionfactory with…
-
0
votes0
answers6
viewsError - Exception in JSP page
I have a problem when accessing a JSP page. Note: I use Maven in the project. The following error appears: An exception occurred processing JSP page /IBWebContent/cad.jsp at line 3 1: <%@ taglib…
-
0
votes1
answer135
viewsreCaptcha - submitted form is validated?
I am implementing reCaptcha, the box with the checkbox for the user to click and confirm that it is not a robot is being presented, but I have doubts if it is really working, because I am using:…
-
0
votes1
answer28
viewsSimpledateformatt write with empty field
I’m having trouble recording an empty field as it is being formatted with Simpledateformatt.. Saving the console generates an error java.text.ParseException: Unparseable date: "" Servlet private…
-
0
votes1
answer2531
viewsHow do I get user id in a session?
I am doing a project using jsp and Servlet, I need that when a user logs in, his id is saved in the session, so that with this id, the system knows that this id user is making changes to his data…
-
0
votes1
answer818
viewsHow to take a screenshot save to the project folder and save the path to the Mysql database?
So I have a jsp with form,it converts the image to B64 and sends as string pro Servlet Servlet converts to b643 String stt = request.getParameter("base64img"); try{ String parts[] = stt.split(",");…
-
0
votes0
answers172
viewsSingle Page Filter Exception
I have a filter @Webfilter("/*") that blocks everything, however, I would like you to have some exception pages... A page (or one I chose) is not blocked Has as? @WebFilter(urlPatterns =…
-
0
votes1
answer668
viewsMaximum number of options within the JSTL <c:Choose> tag
People recently was working with JSTL and I came across the following situation, I tried to add 3 tags when within a Choose tag and the last tag just doesn’t work, the code was like this:…
-
0
votes0
answers154
viewsrequest.getRequestDispatcher is not working and shows no errors
I have a problem in request.getRequestDispatcher("Valida.jsp"). forward(request, Response); from my non-forward Folder to the Valida.js page. I need to go from an HTML to a javascript (by Ajax) that…
-
0
votes0
answers141
viewsHow to create an alarm clock with Mozilla Notifications
Hello, I am developing an agenda in JSP, the agenda is already fully ready, missing only warn an alarm clock that I am wanting to do, the same should work as follows.. From x time before the events…
-
0
votes2
answers1507
viewsJava and Hibernate date formatting
Good morning, everyone! I am trying to return a formatted date, is in the database as date, but for return could be a string msm. Some friends have indicated two modes, either creating a new method…
-
0
votes1
answer572
viewsSend information from one JSP to another via Servlet
I have a page to list all the projects. Each project will be shown the edit button. I would like to send the project information from the list page to the edit page via Servlet. When sending this…
-
0
votes1
answer430
viewsHow to pass as a parameter in an item method of a foreach, a URL variable?
I am developing a project in Java, academic work. My question is in the following. I can display items related to a logged in user, where the value(nick) is set in a session with login name. Behold:…
-
0
votes1
answer1495
viewsUpdate Table with filter using jquery
Good morning I’m looking for solutions to a demand but only found in php. I’m new in Jquery, Ajax... I want to put the filter of my table to be dynamic as the user is typing will appear the data, I…
-
0
votes1
answer270
viewsHow to put a color on the tr of a Dynamically Selected Radio
Is it possible for the line color to change after the user selects a radio from the list taking into account that I am doing the page Ubmit ? the problem is that I am not able to do because as you…
-
0
votes0
answers212
views -
0
votes1
answer667
viewsFilling and sending forms with Spring MVC and JSP
I am initiating into Java Web, developing a stock system following Caelum’s Java for Web workbook. The whole front-end and the persistence layer have already been developed leaving only the control…
-
0
votes0
answers196
viewsProblem to return to jsp by changing url using sendRedirect in Servlet
I log in to my jsp, so I have Servlet do the checks, and return to jsp, but returning the url continues with the Servlet path, and not with my index.jsp follows part of the code that returns to my…
-
0
votes3
answers1787
viewsHow to validate empty html fields
I need to validate the inputs of a form. I am working with JSP, javascript and html codes. The system is expected to work like this: The person buys and has the purchase steps. In the 1st stasis,…
-
0
votes0
answers79
viewsInvalid value: For input string:
Error while updating, the value of the field must be the FK code referring to a foreign key, in the form INPUT comes out the value br.com.tkcsapcd.model.bean.Projectionicio@7adacc20, no…
-
0
votes1
answer1509
viewsJSP Eclipse Project - Linking CSS style page
how to correctly link my style sheets in my JSP Servlet project? Below is the structure of my project. Also I do not know if the correct hierarchy. Help me. I already tried ..…
-
0
votes1
answer40
viewsWeb-service Architecture and Functionality
I have a question about Web-service. This is the following I have an application in Java EE JSP, where you should allow a conversation with another application on Android (Example: when registering…
-
0
votes1
answer38
viewsDoubts - JSP - Servlets
Good morning, you guys, I’m having difficulties to perform the CRUD in a test app.... I made it with the default (almost) MVC, the problem is that by clicking on the form of "New Product" and…
-
0
votes0
answers244
viewsTake the value of a listed <td> (JSP)
Eae guys. I’m making a system for the college, I wonder if you forum could solve a problem that I’m going through. My sell screen needs to take the unit price value that is on a chart. The user can…
-
0
votes1
answer520
viewsHow to change the image according to a variable coming from the bank?
I’m a beginner in this part of front-end and made a function that returns an entire number from my Mysql database. I created 5 images, each one corresponds to a number returned from the bank and…
-
0
votes1
answer762
viewsHow to Save the File Path to the Bank
I am having a doubt I would like to know with saving the path of images and files that I currently upload I save this files in a folder but I would also like to have the path in the database how can…
-
0
votes1
answer358
viewsHow to generate a pdf with Primefaces 5.3 using dataexport
This is my screen to generate the pdf <p:panel style="margin-left:30%" id="pnlTituloGabarito"> <p:commandButton value="Export to PDF" ajax="false"> <p:dataExporter type="pdf"…
-
0
votes2
answers90
viewsProblem Handling a list of Objects in jsp
I’m having trouble handling a list that comes from my controller in my jsp I believe I’m not using the right way to treat and go through this list follows my controller who creates the list.…
-
0
votes1
answer1391
viewsHow do I login?
I’m having a problem logging in. I have a simple page: I only need to consult in the database if the value informed by the user is equal. This one here: Model: @Entity public class User { @Id…
-
0
votes1
answer294
viewsJSP with Servlet
I’m trying to get Servlet to work as a controller I was following the booklet from Caelum but I can’t find the error the jsp to Servlet @WebServlet(urlPatterns = "/LoginInfo") public class LoginInfo…
-
0
votes1
answer46
views -
0
votes0
answers79
viewsHow to update object using Entity manager?
to create I used: public void adiciona(Produto produto) { em.getTransaction().begin(); em.persist(produto); em.getTransaction().commit(); } to remove I used: public void remove(Produto produto) {…
-
0
votes1
answer100
viewsTransfer to "dd/MM/yy" format
I’ve been doing the exercise "6.4 Optional exercises: List of contacts with scriptlet" of Caelum and there is a question that says so : "2) Note that the date appeared in a complicated way to read.…
-
0
votes0
answers33
viewsHow to get the real path to a file
I upload files to a folder, which works when running in eclipse. But when I try to upload through some browser, I am not allowed due to the security of it. My question is, is there any way to get…
-
0
votes1
answer83
viewsPass JSP date to Servlet
I have a Datepicker bootstrap as below, and I have a button that must pass the date selected in datepicker to the Servlet that will use this date as parameter for a mysql search. How can I pass this…
-
0
votes1
answer387
viewsPass and receive data to Servlet in the same AJAX Function
Do you have any way to send parameter to Servlet and receive a json in the same AJAX Function? Example of what I need: function UpdateGrafico(){ $(function () { //--------------------- //aqui…
-
0
votes1
answer100
viewsFtpclient in passive mode
I have a problem trying to connect FTP. For Filezila, it works normally.... but when I try for this code snippet, it generates the following exception: jAva.net.Bindexception: Cannot assign…
-
0
votes1
answer80
viewsHow to put a successful Alert into a data insertion via ajax?
I am working on a project in progress and what I need to do on it is put an Alert and refresh the page after entering data in the database. The data are being entered through a spreadsheet, that is,…
-
0
votes0
answers47
viewsI cannot Update my Object after being recovered
I am trying to update my form after recovering an object and I cannot. My DAO public List<Contato> listar() { List<Contato> contatos = new ArrayList<>(); String sql = "select *…
-
0
votes1
answer13197
viewsHow to resolve the following error: HTTP Status 500- Internal Server Error
I am trying to make a web application using java,jsp,Servlets and database. But when I run as in addClient.jsp class this error appears: HTTP Status 500- Internal Server Error. I have looked on the…
-
0
votes1
answer212
viewsForeach returning only one object in the list
I have a JSP page and in it I want a list. For this, I created a method listarTodos() within the DAO class and set the fields to display the object data, thus leaving the code: </div> <%…