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
answer179
viewsTomcat does not display jsp pages on the production server
I’m using the Tomcat 8 in my application, when I Gero the .war to make the deploy he apparently does everything right. However, when I go to the page /index.jsp is giving error 404. When I check the…
-
1
votes1
answer59
viewsNotifier of any event that the user performs in the system
I am using the Spring Framework for java and would like to create can create a kind of warning, <scan>, which shows in the table that a new line has been added (this line comes from the…
java web-application jsp spring-mvc spring-securityasked 8 years, 10 months ago Vinicius Duarte 115 -
1
votes1
answer1026
viewsInput Date causes error 400 - The request sent by the client was syntactically incorrect
Every time I insert one input of the kind date in my form, the server returns error 400. I have tried everything, when I remove the field date makes no mistake. My controller: package…
-
1
votes1
answer488
viewsHow to pass exception message to an HTML page from a JSP?
I have a college exercise where I have to create a page. jsp that takes as parameter an "id" and runs a query to delete the record within the class products with this id and in case of any exception…
-
1
votes0
answers102
viewsI’m having trouble persisting the data in the BD
I am connected to the postgresql database, I put the postgresql-9.4-1201.jdbc4.jar driver. When I click to register this window appears this is not listing or persisting. The problem is that no…
-
1
votes0
answers91
viewsHow to configure DB via an environment variable?
I have a multi-client JSP application. Currently the database configuration is in a file variable.propriet, and obtain through the method private static String getUrlBanco() { ResourceBundle b =…
-
1
votes2
answers387
viewsProblems with if Else in Servlet
I’m messing with jsp. In mine servlet have if and else if and they both send to the same page, only with different values. However, when you enter the if(shows the result) and then when it returns…
-
1
votes1
answer52
viewsWhat is this code possibly doing?
index.xhtml : ui:repeat value="#{produtoService.listaProdutos}" var="prod" Note: I know I have to close the tags. But that is, what this code is doing ('assuming' that the tags are closed…
-
1
votes1
answer54
views24x5 process in jar how to convert to . War
I created a jar to calculate forex signals, but I’d like to host it on some cloud server. As I’ve been researching, it will be much easier to convert it to a War. Since my app should run 24x5, I…
-
1
votes0
answers339
viewsSave image to the application folder (File upload) using EJB+Servlet JSP
Good people? I need an example of how to upload the file using the technologies, EJB+Servlet+JSP... I am working on a project that needs to insert the images dynamically in my application. Hugs!…
-
1
votes0
answers573
viewsCombobox + UF + City + Mysql + Javascript
I have the following question: I have a project in Java JSP and do not know how to select the UF and City combo update as selected before. below I have an example with fixed data, but I want to do…
-
1
votes1
answer189
viewsCreate input fields according to the size of an array
Good evening, I’m receiving via JSON a List with the structure below: anexo: [{cod: 5, nome: "anexo1.pdf"}, {cod: 6, nome: "texto.txt"}] And I use the function below: $.getJSON(url + cod, function…
-
1
votes1
answer57
viewsJSP: Item page not found
I am programming a page to inform you that the searched item has not been found. I wanted to know what I’m doing wrong and what would be a solution. <c:forEach items="${proposta}"…
-
1
votes0
answers36
viewsJSP + netbeans + Bower Project
Good afternoon, everyone! My question is this:... I have a newly created JSP project in netbeans and want to work with Bower to manage my front-end packages. Where to create the bower_components…
-
1
votes1
answer71
viewsJSP Two boxes after the comma
I have the following number: 10.205203 I would like it to be shown at only 10.02; I have that function, I don’t know if it’s the right one <fmt:formatNumber value="${media / total}"…
-
1
votes1
answer59
viewsJavamail does not send email
I was developing an e-mail page. Sent legal, but even not giving error in the page it does not send more. I followed this tutorial here. It only works on the server, but on the local machine, it no…
-
1
votes2
answers2062
viewsPass values from a table to a modal dialog (JSP)
Good afternoon, you guys! I’m trying to pass values from a table to a modal window, but I’m not getting... I tried something from jquery, but I don’t know what I might be doing wrong... I’ll post…
-
1
votes1
answer1878
viewsValidate date less than current date
My question is as follows. I have a JSP form for the registration of students with several attributes, one of them is the date of birth. Until then I was registering the date only validating the…
-
1
votes1
answer256
viewsPass Function Ajax Encryption
I’m trying to get an Alert back from the server, but I’m not getting it. the idea would be as follows index.jsp <html> <head> <title>Teste</title> <link rel="stylesheet"…
-
1
votes2
answers818
viewsReferencing CSS in jsp via$pagecontext.request.contextpath in tomcat8 does not work
I am using Tomcat 8. My css and js files do not load into jsp via $pagecontext.request.contextpath in tomcat8. I can only load css if I set the absolute path from the webapp directory.…
-
1
votes1
answer777
viewsError Registered the JDBC driver [oracle.jdbc.driver.Oracledriver] but failed to unregister
I’m making a system Javaweb using jsp that’s on that topic: Doubt in database query, error in query, and in a database query, I came across a driver error that is just below. I use the IDE netbeans…
-
1
votes0
answers153
viewsHow to remove the variable value with JSTL?
I am testing to clear a list of objects that is passed to JSP, and run the command below: <c:remove var="lista" scope="session" /> <c:out value="${lista}"></c:out> But when I call…
-
1
votes0
answers59
viewsHelp with google maps API + database
Good afternoon guys, I’m doing my TCC using the google maps api and found a very good topic here: How to Make Icone Ride in the Google Maps api Where it is explained how to "walk" with the marker on…
-
1
votes1
answer95
viewsDoubt with Expression Language JSTL JSP
How to verify the value that is arriving in EL, in the listPedidos variable of items ? <c:forEach var="pedido" items="${listPedidos}" varStatus="id"> <c:if test="${pedido.tipoPedido ==…
-
1
votes2
answers612
viewsHow to make unique record query
I have a JSP that on the same screen I register for consultation. When opening the screen I have basically the fields for the registration below a grid with the list of the bank, so far so good,…
-
1
votes1
answer423
viewsSet Attribute from JSP radiobutton
I am putting together a generic form for registration of legal and natural persons and the definition part of two RadioButton's that change the fields, after completed they are sent to a Servletand…
-
1
votes0
answers81
viewsHow to get into Arraylist on a JSP and pass as parameter p/ a Servlet (Link)
This list has the Id_book,Titulolivro,Autorlivro, which is displayed on the page correctly. Only I want to create a link to a Servlet passing the Id_book. How do I do it? Below is the code:…
-
1
votes1
answer49
viewshow to implement jsPanel with jsf
I am trying to render a xhtml page inside jsPanel, but only return the empty jsPanel. this is javascript: function executeLoad(aUrl){ $.jsPanel({ load:{ url: aUrl }, selector: "#content", title:…
-
1
votes1
answer49
viewsException in eclipse Android - java.lang.Stringindexoutofboundsexception
I wanted to integrate my Android project with my Web Project in Jsp.. When I try to download data from Web to android from this error: Fatal Exception: main…
-
1
votes2
answers596
viewsPath to JSP image
I need to display an image inside the tag img. It is a web project, running on Tomcat and Ubuntu Mate. I saved in bank as String the path to where the image is: "/opt/imagens/img.png" To display, I…
-
1
votes0
answers122
viewsHow to include Prelude.jspf in java config spring boot
I am migrating a Spring MVC 3 application to Spring boot, this application had its web.xml with the Prelude.jspf configuration where it contained all the jsps JSTL Imports. I want to migrate this…
-
1
votes1
answer521
viewsgetOutputStream() error has already been called for this Response
I have in my application the following error: getOutputStream() has already been called for this Response. Ok, the chunk of code that is causing this error is as follows: boolean hasLogoLogin = new…
-
1
votes0
answers318
viewsCrud with tables related in spring mvc
I’m developing an application java, using spring mvc. And in a functionality CRUD, I have an Incident Registration screen. On this screen, I have the fields mapped according to Incident.java.…
-
1
votes0
answers249
viewsRedirect Servlet to JSP by passing data
I’m doing a library project, I register Book, Publisher and Parents and then I display them on JSP. When I register the data appear normally in JSP but if I refresh the page they are re-registered.…
-
1
votes3
answers910
viewsEncoding without configuration: Eclipse (JSP) and Vscode
I have some problems related to encoding. Both in eclipse and Visual Studio Code are aimed at UTF-8. When I repair and save using the eclipse, it goes fine. But when I save in Vscode, the encoding…
java eclipse jsp character-encoding visual-studio-codeasked 6 years, 4 months ago Thiago Cunha 1,356 -
1
votes0
answers160
viewsHow to uncheck a checkbox when another is selected?
<t:selectOneRadio layout="pageDirection" forceId="true" forceIdIndex="false" id="selectCodigoProcesso" rendered="#{!bkbCadastroPessoaJuridica.orgaoEntidade}" styleClass="envolveRadio"…
-
1
votes2
answers2108
viewsCreate Bootstrap template to be used on all JSP pages of your Java app, implementing only "content/content"
Good morning, Guys, "I know it’s more of a subject of the same," but could someone help me with that question. I’m used to making templates with facelets, so I write down a xhtml file inside it,…
-
1
votes1
answer489
views -
1
votes2
answers104
viewsSending Servlet attributes to more than one JSP?
I have a Servlet that does the following: L_sessao.setAttribute("Login", usuario); response.sendRedirect("InicioCliente.jsp"); It sends the user name to the Homeclient.jsp page, on this page I can…
-
1
votes2
answers43
viewsError logout cookie Servlet
Hello. I have a line error: Cookie cookie = new Cookies(req.getCookies().getUsuarioLogado(); The complete method/class is this: @WebServlet(urlPatterns = "/logout") public class Logout extends…
-
1
votes1
answer73
viewsCreate Next button
I’m having a problem that I haven’t found any solution, I’m trying to create a forward button to pass the pages of my file. pdf that is displayed on my JSP page. String arquivo = ""; String i = "";…
-
1
votes1
answer396
viewsJsp with scriptlets, taglib or jstl
Hello, I just registered and is being my first question. Sorry for any rule I’m not following with this post. Well, a little while ago I started learning jsp in college, a little bit of scriptlet…
-
1
votes0
answers8
viewsSpring MVC - Make JSP available
I have a simple Spring MVC application and the html pages are correctly display, altought, when i Try to use JSP pages, it does not work (error Displaying page like view file does not exist). I saw…
-
1
votes3
answers174
viewsJava Strings Comparison Error
I have the following situation. I get a string that is in the application’s localStorage in a javascript variable. <script> var sendForm = localStorage.getItem('f'); </script> This same…
-
1
votes1
answer148
viewsError picking GET attribute in jsp!
I am facing the following problem, I am making the following redirection: response.sendRedirect("../../index.jsp?NA=1"); Where the url goes like this:…
-
1
votes1
answer328
viewsProblem in web.xml
Hello! I have my web.xml, I want to put the jstl dependency, for this I am using the following code: <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId>…
-
1
votes1
answer663
views -
1
votes1
answer269
viewsPass variable from daughter page to parent page in jsp
I’m making a simple crud in java using jsp and servlets. And I came across the following situation: I have a layout.jsp which makes the include of another dynamic page, which in this case will be…
-
1
votes0
answers99
viewsConvert an Object List to UTF-8 in java
I’m making a system Using java jsp, using webservice Restful, where I just consume data from a webservice through a link. Then on the main page, I create a list of objects coming from webservice, I…
-
1
votes0
answers123
viewsMS SQL Query for JSP
I’m creating a website based on the JSP language but I don’t know how to return a consultation which I did in the MSSQL Server, the same goes below: DECLARE @Nomes VARCHAR(8000) SELECT @Nomes =…