Questions tagged as 'java'

1
answer

convert from Date to number in Java

I have a field in the MySQL database Date type and inside a modelPie.set(String, number) function I want to bring this field but java says it can not convert from Date to Number .     
asked by 20.09.2014 / 02:50
1
answer

Show View as slide

Hi, I would like to know how I make a View appear as a slide in an android layout by changing the size of your siblings, for example the information of a point in the Google Maps app that appears and changing the size of the map. The informa...
asked by 07.08.2014 / 02:13
2
answers

Pass variable value from JSP to JAVA

Good afternoon, I'm using JAVA and JSP to program. I have a JSP variable and I need to pass the stored value to the JAVA code. I need to pass the variable "X" that is in index.jsp to variable "Y" which is in the main of indexJava.java C...
asked by 19.06.2014 / 18:00
1
answer

Problems accessing class attributes when creating action listener with java

I have a class that extends a JPanel , in this JPanel I add a JButton and I use the addActionListener method to set a ActionListener to that JButton , but when I'm creating ActionListener I can not...
asked by 22.06.2014 / 21:21
1
answer

Accessing the server through linux

I would like with my Java application (netbeans) to access the database that is on the server, but this was complicated because it is through a Linux machine. Could someone explain to me how to do this? The connection class I use is: pub...
asked by 19.05.2014 / 16:40
1
answer

Explanation of a JSP command

I have a command line in my JSP code that I can not understand type StringUtils.isBlank I know it's a condition, what I do not know is what's inside. Here's part of the code: if(StringUtils.isBlank(historicoProcedimento.getRestricoes...
asked by 12.05.2014 / 21:55
1
answer

How to correct the error in the Log?

I'm using Struts 2 on Tomcat, and I can run the code. However, I'm having this error in the log.    java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet And I have no idea what it is. I've been searching and I can not...
asked by 30.06.2014 / 12:51
1
answer

How to open an actitivity from a java fragment

How to open an activity after clicking on a Listview that is in Fragment, I am using: public void onActivityCreated(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onActivityCreated(savedInstanceState);...
asked by 01.07.2014 / 01:08
1
answer

Capturing application usage time installed on Android

I wonder how I could capture the usage time for all applications installed on Android. There are some apps that do this in the Play Store. I've been doing several searches and found that there is a code that you can type and a list of programs a...
asked by 23.04.2014 / 15:41
1
answer

Automatically print image from web app (html, js and php)

Hello, I have a webapp where I take a picture with a frame for a badge and saved it on the server, however I had to send that image automatically, ignoring the prompt that comes up when we print something in the browser for example. > I tried...
asked by 04.04.2014 / 23:04