I have the following code in my controller which is responsible for loading a client with a photo.
@RequestMapping(method = RequestMethod.POST, value = "/form")
public String guardar(@Valid @ModelAttribute("cliente") ClienteEntity cliente, Bin...
I have been trying for hours to read a file that is in the same directory as the executable JAR:
My code is:
Object obj = parser.parse(new FileReader("configuracion.json"));
But I already tried with
"./ configuracion.json"
"....
I am new to the development of applications for Android and I am creating an application which makes use of the user's location. The problem is that sometimes I get a Lat and Long of (0,0). I mean, he can not read it.
But this only happens with...
I have the following code:
if(!("TB").equals(this.cabnom.getTipo())){
ArrayList<Linnom> lista = (ArrayList<Linnom>)this.linnomService.findByNumNom(new Linnom(numNomAnterior));
for(int i=0; i < lista.size(...
I receive a String in java with a value format and range [x,y,z] so that the input String is valor[x,y,z] (example 20[4Y,2W,4H] ).
I can have values with a condition or (represented with a ',') so that the...
I am developing a Primefaces 6.2 application in which I use the datatable component in edit mode.
<p:remoteCommand name="refrescarTabla"
actionListener="#{bean.dlgEditar.refrescarTabla}"
update="pgTabla"/>
<h:panelGroup id...
This is the exercise: Create a Program that allows you to enter a person's Rut and show:
If the Rut is valid or not, if it is not valid, allow it to be re-entered, you only have 3 chances to make a mistake, after 3 times the program ends with...
I'm new to programming and I'm doing a project in which I want to create, open and delete folders, but I can not find how I can open it.
I use the library java.io.File . Try this:
public void crearCarpeta()...
I am making an application in which I consume an external service and for this, I am using the library Volley from Google. I'm trying to process the error with the structure:
{
"message": "invalid public_key",
"error": "not_found",
"status":...