Questions tagged as 'java'

1
answer

How to get parameters from a url on Android

In the android I have the following URL String url = "http://domain.com/page?parameter1=value1&parameter2=value2"; I would like to get the parameters of this URL how do I do this in a simple way?     
asked by 24.03.2014 / 22:04
1
answer

JSF rendering

How do I render the components of Richfaces . I have combobox and when I click on an item of it I want to render my form according to my item. Examples please.     
asked by 04.04.2014 / 04:29
1
answer

Problem trying to upload files using firstfaces 4.0

I have a simple application that allows me to upload text files. To do these uploads, I'm using the File Upload of Primefaces, but I'm having problems. I've tried several solutions and I can not fix this problem. This application is made on t...
asked by 03.04.2014 / 14:30
1
answer

Displaying error messages in a web application

I developed a simple web application to study some concepts related to Servlet among others. I mapped the web.xml file of my application to display página de erro if any exception occurs. Doubt: How best to display the...
asked by 04.04.2014 / 19:21
2
answers

How to pass data from an SQLite table to several EditText fields

How do I get the data from a table and display it in a EditText ? I'm developing on Android. Here I make List of the data that I need: public List<ConfiguracoesSistema> listarConfiguracoes() { // List que recebe os da...
asked by 10.04.2014 / 20:02
2
answers

Pass information from a selected item in the list to EditText

Hello, I'm having problems when I select a client in a ListView , I have to pass its name to an EditText of the other Activity and pass the address too. But when I select the Client it is grouping the Name with the Address in the same line....
asked by 17.04.2014 / 20:32
1
answer

How to resolve "Array required, but (Class) found." error?

Also create a test class where you should instantiate an object of the class "Letter" and then the objects that should be stored in the array of that class. Carta teste = new Carta(); for (int i = 0; i < teste.length; i++) { if (teste...
asked by 05.04.2014 / 12:31
1
answer

Erase log files dated after a week using log4j

In my application I use the log4j library to generate system-wide logs. It is working correctly, I use the following settings: Direct log messages to a log file log4j.appender.file = org.apache.log4j.DailyRollingFileAppender log4j.appender...
asked by 05.02.2014 / 14:42
1
answer

"NoInitialContextException" error when uploading GWT application via Eclipse

I'm trying to upload an application made in GWT 2.4 in Eclipse Kepler (4.3), using the Google Plugin for Eclipse. When using the Run As > Web Application option, I immediately get the following error in the log: Starting Jetty on...
asked by 11.02.2014 / 19:58
1
answer

Conversion of ASCII code to characters does not work

First of all, I'm new to Android development. I would like to know why my application crashes when I try to convert the ASCII code to characters. private String crip(String str, String psw) { int code = 0; String full_word=""; for...
asked by 04.02.2014 / 21:30