Questions tagged as 'jsp'

2
answers

Referencing CSS in jsp through $ pagecontext.request.contextpath in tomcat8 does not work

I'm using tomcat 8. My css and js files do not load into jsp through the $ pagecontext.request.contextpath in tomcat8. I can only load the css if I put the absolute path from the webapp directory. Ex (pages / css / style.css). The project str...
asked by 24.07.2015 / 02:06
3
answers

How to limit the characters of a label?

I'm in an e-commerce project, and I need to display the name of a product. I'm thinking of using a label for this. The idea is to leave x characters visible, if the title exceeds this x number of characters, display "...". I do not know how to d...
asked by 06.03.2017 / 19:58
1
answer

How to pass exception message to an HTML page from a JSP?

I have a college exercise in which I have to create a .jsp page that receives a "id" parameter and runs a query to delete the record inside the class products with this id and in case of any exception I send the user to page error.html passing a...
asked by 01.12.2014 / 20:58
1
answer

Different results with the same SQL statement

Speak programmers, easy? I've done a lot of research not to repeat questions here, but I really do not understand why the SQL statement works in MySQL Workbench and the Java / JDBC SQL string does not. I have two game and category tab...
asked by 24.08.2018 / 23:54
2
answers

Instantiate an external directory Java class in JSP

I created my application Java with Eclipse in the Meus Documentos/workspace/TesteJAVA/ directory Now I want to call a class with JSP , I want to know how to configure to get the application from this directory or sh...
asked by 26.10.2015 / 00:09
2
answers

How to use a .JSP file

I am extremely new to the JSP language, I wanted to know how to use a jsp file that I created and exported for example in the browser, the same way I do with html files, ie how to use a jsp file created ??? obs : In the attached image is the re...
asked by 11.04.2018 / 15:58
1
answer

Can not cast from Object to JSP

I am developing an application using JSP and servelt in which I want to get the total amount of records from my tb_motorist table, I created a servelt in which I passed the method that makes the query and created a session but when I get the ses...
asked by 13.09.2017 / 00:12
2
answers

Encoding without configuration: Eclipse (JSP) and VSCode

I have some issues related to encoding. Both in eclipse and Visual Studio Code are pointed to UTF-8. When I repair and save using eclipse, it works fine. But when I save in VSCode, encoding misconfigures. Here's an example: I use eclips...
asked by 27.06.2018 / 14:47
2
answers

Capture hidden value in lopping

I would like help on how to get a value from a hidden that is in a utility. I need this value to send to the next screen, but since it is in a multi-line table, I can not do that. I need to get this value in javascript. The screen: &...
asked by 10.11.2017 / 02:10
1
answer

Create push button

I have a problem that I did not find any solution to, I'm trying to create a forward button to move the pages of my .pdf file that is displayed on my JSP page. String arquivo = ""; String i = ""; try { arqu...
asked by 23.09.2016 / 14:23