Archive for the ‘Java’ tag
Upload de arquivos com SpringMVC

A quick setup to upload files using SpringMVC.
Dependencies
Usando o Maven, o primeiro passo é incluir duas dependencias: commons-io and commons-fileupload:Application Context
Segundo passo é configurar o application context para fazer uso de multiparts:Controller
Terceiro passo: criar o seu controller. note the existe um parametro do tipo: MultipartFile.View
E o último passo: sua JSP.Ubuntu (Gutsy Gibbon) and Java Swing Applications…
+ There is a problem using Gutsy Gibbon + Swing Java Application + Compiz.
My libraries are:
- Ubuntu 7.10 (Gutsy Gibbon
- JDK 1.5.0_16
- Compiz-Core 1.06
- Compiz-Fusion 0.52
The problem
When an java application is executed, it simply doesn’t appear anything, no buttons, no fields, no menus, nothing!Solving
I really like compiz fusin effects but they are the monsters inside the box, they are the ones who don’t let the java application works fine.For now, I had disable compiz (Visual Effects = None) and applications like: Jude and Oracle SQLDeveloper that before that opened but don’t appear nothing, now they run fine!.
Yes, thats boring to use Gnome without compiz effects, but for now this is the way that I have found to work with Java Swing Application on Ubuntu.
Have a lot of fun!