Welcome To Snipplr


Everyone's Recent Snippets Tagged java



1 ... 4 5 6 7 8 9
Simple way to configure the JVM to use the proxy in the network
1 1838 posted 17 years ago by neozilon
0 1449 posted 17 years ago by snipleritesteri
Save/Load or.. Write/Read or.. Store/Retrieve Private Key/Public Key to/from disk/file :D
0 13224 posted 17 years ago by geekiuscaesar
0 1168 posted 17 years ago by adammika
*save as proxy.jsp and put it in your servlet container *consider using other methods to circumvent XSS: JSONP, dojox.io.xhrWindowNamePlugin, etc.
1 2967 posted 17 years ago by stoyan
Rather than hard-coding values shared between classes/methods/servlets, it's good to use content params in web.xml.
0 1812 posted 17 years ago by sunkist
Groovy script that creates an XML file using an XML template containing ${params} and a standard Java Properties file
0 2258 posted 17 years ago by gripnrip
К этому моменту у вас уже должно быть достаточно знаний, чтобы сериализовать объект. Но как работает этот механизм? Алгоритм сериализаци...
0 1674 posted 17 years ago by beresovskiy
i love those ternary expressions, they really make things clear, don't they? found in org.eclipse.jface.action.Action
0 1352 posted 17 years ago by guetux
Tags: C3P0, datasource, spring, database, java
1 3528 posted 17 years ago by mahome
0 1576 posted 17 years ago by resurge
1 2401 posted 17 years ago by walokra
Simple Mail Example. Tags: SMTP, Mail, Java [JavaMail (Sun)](http://java.sun.com/products/javamail/) [JavaMail (Galileo)](http://openbook.galileocomputing.de/javainsel8/javainsel_18_012.htm#mj2a4110a634c82a3f676d8f87a50d6567)
1 2232 posted 17 years ago by mahome
Connects to a web page, reads in the content and strips whitespace.
2 2379 posted 17 years ago by gdvickery
Useful when you have to deal with ClassNotFoundException. The command looks for all jar in the current directory and any sub-directory, and checks if the jar contains the specified class. The command lists all matching jars.
0 2366 posted 17 years ago by Dorgendubal
Running a btrace script takes two separate steps by default: 1. Running jps to get the Java process ID. 2. Running btrace on the ID. A simple awk script can merge the two into a single step.
0 1985 posted 17 years ago by narkisr
0 1894 posted 17 years ago by vasilije
Some java application do not get focus or have strange behaviours under no standard Window Managers like Awesome.
0 1661 posted 17 years ago by escalant3
An immutable (a new object is created for each change) Java class builder pattern example.
0 1922 posted 17 years ago by narkisr
create a date using Calendar
1 2251 posted 17 years ago by callmeblessed
how to call session from grails service (spring service)
0 2325 posted 17 years ago by callmeblessed
The returned file will either contain the folder from where your program is running or the executable jar file, if your program is an executable jar. I'm using `Main.class` because this code is in my main method (which is in the class 'Main'). You...
0 1757 posted 17 years ago by resurge
Proyecto Lista
0 1437 posted 17 years ago by bedomax
An example on how to invoke Ant targets which are defined in build.xml.
0 2015 posted 17 years ago by narkisr
1 ... 4 5 6 7 8 9