Questions tagged as 'jsp'

0
answers

Redirect Servlet to JSP passing data

I am doing a library project, I register Book, Publisher and Parents and then view them in the JSP. When I register the data appear normally in the JSP but if I refresh the page they are re-registered. I've never used Servlet and JSP before....
asked by 11.06.2018 / 00:43
2
answers

Path to image in JSP

I need to display an image inside the img tag. It's a web project, running on Tomcat and Ubuntu Mate. I save in bank as String the path of where the image is: "/opt/imagens/img.png" To display, I put it this way <img src="<...
asked by 13.12.2017 / 16:19
0
answers

Doubt: What is the best way to display data in a table?

I'm studying JSP and Servlets and also JQuery and I came across a situation. Location: Imagine that you are going to display a product table where 20 items per page will be displayed for example. With that, you have that famous operator...
asked by 02.02.2018 / 21:03
0
answers

How to include prelude.jspf in java config spring boot

I'm migrating a Spring MVC 3 application to Spring boot, this application had its web.xml with the prelude.jspf configuration where it contained all JSTL imports from jsps. I want to migrate this configuration from xml to java config but found n...
asked by 20.12.2017 / 12:04
1
answer

Android eclipse exception - java.lang.StringIndexOutOfBoundsException

I wanted to integrate my Android project with my Web Project in  Jsp..When I try to download the web data for android from this error:    Fatal Exception: main java.lang.StringIndexOutOfBoundsException:   lenght = 43; regionStart = 0; regionL...
asked by 12.11.2017 / 22:13
2
answers

I can not connect jsp page to Oracle database

   This my Web project worked in school, but in my pc will not ..   It was to return "connected in the oracle database" and it returns   "oracle.jdbc.driver.OracleDriver"       Connection class: package classeConexao; import java.sql.Connec...
asked by 04.11.2017 / 20:29
1
answer

How can 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, I just happen to save the image path in the database, and then call that path to show the image. Hence the problem: <% ArrayList<Fotos>...
asked by 19.11.2017 / 20:02
0
answers

Write image format in the database

By registering the product data in my database it presents the error in getFileType at line 124 follows error Line 124 String extensao = nomeDoArquivo.substring(nomeDoArquivo.indexOf('.' + 1)); java.lang.StringIndexOutOfBoundsException: S...
asked by 26.10.2017 / 03:31
0
answers

How to get in Arraylist in a JSP and pass as parameter to a Servlet (Link)

This list has the BookIndicate, BookIndicate, BookIndicate, which is displayed on the page correctly. But I want to create a link to a Servlet by passing the BookId. How do I do this? Here is the code:     
asked by 29.09.2017 / 23:11
0
answers

Incorrect display of characters in html / jsp page

I was designing a website for academic purposes, but I came across a display error. My html / jsp pages are not displaying the accented texts correctly when retrieving from the database. All are UTF-8 charset in the meta tag and lang pt-br in th...
asked by 06.09.2017 / 19:26