Questions tagged as 'java'

1
answer

export to pdf from a web application, error: org / apache / poi / ss / usermodel / Workbook

Good evening. I am trying to export to PDF from a Web application with JSF and am having the following error: Stack Trace: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook at org.primefaces.component.export.Expo...
asked by 15.11.2016 / 02:27
1
answer

Solve mathematical expressions in java using string

I can not make this code resolve the expressions contained in the database. In the bank, the expressions are like this: All the expressions registered in the bank follow the pattern described below: $expressao = "$x$op1$y$op2$z$op3$w$op4$k"...
asked by 15.11.2016 / 15:15
1
answer

Collecting links in a text file

I have a problem in my program where I have to get links throughout the text file. I used regex to collect the links, however, only a few lines are captured (the file has approximately 3500 rows) and some links. Note: The text file is from Whats...
asked by 14.11.2016 / 16:48
1
answer

JSP Two houses after the comma

I have the following number: 10.205203 I would like it to appear in only 10.02; I have this function, I do not know if it's the right one <fmt:formatNumber value="${media / total}" pattern="#,#0.0#" /> Thank you     
asked by 31.10.2016 / 18:18
1
answer

Error getting GET attribute in jsp!

I'm facing the following problem, I'm doing the following redirect: response.sendRedirect("../../index.jsp?NA=1"); Where the url looks like this: http://localhost:9095/Controle_de_Materiais/index.jsp?NA=1 But when I try to get the attr...
asked by 31.12.2016 / 02:12
1
answer

Hibernate / JPA - object is an unsaved transient instance

Good afternoon people! When saving a new contract readjustment I have to search for other "similar" contracts to what I'm re-adjusting and readjust them as well. So I was trying to use a callback ( saveAfter ) after saving the first...
asked by 14.11.2016 / 15:41
1
answer

Resize image to screen size

I created a ViewA class where I get two images from the drawable folder and draw on the screen with draw (); public class ViewA extends View { private Bitmap img1; private Bitmap img2; public ViewA(Context context){ super(context); i...
asked by 12.11.2016 / 01:04
1
answer

Hosting a small javaweb software on jelastic localweb [closed]

I took a course in java web setting up a financial with accounts payable and some basic things. Some people were interested. In case for each client I have to create an environment. Do you know if I can adapt the software to different users usin...
asked by 25.11.2016 / 22:02
1
answer

Pause an AsyncTask until a task is completed

In my AsyncTask I instantiate 4 new objects, but I have to stay in it until all objects are brought. Here is the code: @Override protected Void doInBackground(Void... voids) { new CrtlComentario(contexto).trazer(post.getCodigo(), new Call...
asked by 23.10.2016 / 14:04
2
answers

Skip file when entering some Exception

Good afternoon Below is a method that I use to read certain files in a folder. The problem is this. If the folder has 50 files (or 60, or 70, or 80 ...) and the method is reading a "defective" file (one of the files that fall in Exeception...
asked by 16.01.2017 / 19:56