Welcome To Snipplr


Everyone's Recent Java Snippets



0 2103 posted 16 years ago by sukantahazra
0 1782 posted 16 years ago by wearetherock
0 2104 posted 16 years ago by yakafokon
How to access the build number in the WAR file (generated by the Maven build number plugin) from Java.
0 1826 posted 16 years ago by ff1959
0 1853 posted 16 years ago by ff1959
This gives the absolute path for the file log4j.properties
1 1981 posted 16 years ago by arunpjohny
this simple snippet compiles a Java source file.
2 3538 posted 16 years ago by akostajti
0 1742 posted 16 years ago by petethered
A Swing ActionListener that opens a JFileChooser and returns the selected file.
1 2704 posted 16 years ago by liqweed
0 1645 posted 17 years ago by ff1959
This snippet shows how to get access to the underlying log4j logger when using apache commons logging.
0 1712 posted 17 years ago by ff1959
2 2342 posted 17 years ago by angusdev
Simple way to configure the JVM to use the proxy in the network
1 1836 posted 17 years ago by neozilon
0 1446 posted 17 years ago by snipleritesteri
Save/Load or.. Write/Read or.. Store/Retrieve Private Key/Public Key to/from disk/file :D
0 13218 posted 17 years ago by geekiuscaesar
0 1166 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 2963 posted 17 years ago by stoyan
0 1549 posted 17 years ago by aadsm
Rather than hard-coding values shared between classes/methods/servlets, it's good to use content params in web.xml.
0 1809 posted 17 years ago by sunkist
This requires the user to enter his/her google gmail information but still useful if you can't use the normal Email/Gmail apps via their intents.
1 8089 posted 17 years ago by abwaters
К этому моменту у вас уже должно быть достаточно знаний, чтобы сериализовать объект. Но как работает этот механизм? Алгоритм сериализаци...
0 1672 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 1350 posted 17 years ago by guetux
just a comment
0 1756 posted 17 years ago by daywalker2000