Questions tagged as 'jsp'

1
answer

How to send object as attribute of another object from a JSP to a Spring controller?

Hello, I have a News related ManyToOne class with a Section class. The News class has an attribute of type Section (where the @ManyToOne relation occurs). I would like to know how I can, in the newsprint form, send the section to which it sh...
asked by 02.07.2016 / 03:27
1
answer

Write to a csv file with JSP without overwriting what you already have

I have this code below to write an information in the csv file, but every time I record something, what I have already written is lost. How do I add a line with the new information while retaining what I already have? String fName = "cadastros...
asked by 01.06.2016 / 19:53
0
answers

Spring Web MVC - Controller not working

I'm trying to make a basic application, with a controller that sends a message to the screen and put CSS in the project, but either the CSS works or the controller. Here are the codes:  1) NetBeans Projects \ SpringMVC \ web \ WEB-INF \ dispat...
asked by 09.06.2016 / 17:43
0
answers

Java Spring MVC error 400 - Search for 2 fields

Galera, blz?! Next, I'm finalizing a project for college completion and I'm getting a very strange error. I already analyzed with another class friend, but we could not identify. I need to search for two fields, one field per title, and an...
asked by 10.06.2016 / 06:01
0
answers

ERROR attempts to retrieve data in the 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" value="<%=aluno.getId()%>"> 21: 22: <inp...
asked by 06.06.2016 / 09:32
2
answers

JSP 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 (like id, name ...). B would use this information and refresh the page without redirecting. Is there any way to do this?   ...
asked by 08.04.2016 / 03:05
2
answers

JSP import all the files in a directory

Is it possible to import all files in a directory with just one call working with JSP ? Today I have the following: <script src="../resources/js/angular/directive/layout/mensagem.js" charset="utf-8"></script> <script s...
asked by 14.03.2016 / 17:06
0
answers

Problems with encoding in java

I have a classic encoding problem, I did several tests, but nothing solved. The problem occurs only with data brought from the database in Sql Server, with the fixed text on the screen is working perfectly. I tried:    add in jsp:
asked by 14.03.2016 / 21:52
1
answer

How to execute a method at the end of the section? [duplicate]

I need to execute a certain method when the section is closed (when the user clicks close the browser). I'm working with JSP and I'm not sure how I can do this.     
asked by 22.02.2016 / 12:37
0
answers

Popular comboBox through a query in the database

I know I'm doing the wrong way to populate my comboBox, I'm doing this on the client side rather than doing server side is that java is not my beach. I'm trying to pop up my comboBox as follows: But from the error can not find symbol class c...
asked by 12.12.2015 / 00:34