How to resize image ? Here's the simple example can resizing source image: |
Copy text to clipboard in Javascript Below is the example can copy text to clipboard in javascript. It's all tested in Microsoft Internet Explorer. |
Word counting source program based on MapReduce framework The MapReduce framework operates exclusively on pairs, that is, the framework views the input to the job as a set of paris and produces a set of pairs as the output of the job, conceivably of different types. Below is the simple application that... |
How to set and get sessions on JSP code ? Here's the simple example to set and put sessions.save_my_name,jsp<% String name = request.getParameter( "username" ); session.setAttribute( "theName", name );%>Continuesave_my_n... |
How to add a declaration on JSP code ? If you have developed C or C++ program, you may know below examples.// printf( "a.out");/* printf( "b.out");*/Above code have no bug, but no code will be compiled, because it's all declarations.In JSP, you can make declarations as well. In some docum... |
How to include file in JSP ? Just like ASP, or PHP, JSP is also allow to include for programmer by include function.Here's the simple example.Going to include hello.jsp... |
How to print out text strings on HTML directly ? In JSP, you can print out text strings by out.println(). Here's the example. <% |
Put Date Time on HTML In JSP, you can simply put Date Time as below. |
Creating thumbnail images Suppose you have a Web Form where uploading of files is enabled, using the HtmlInputFile HTML control, and a user is uploading an image. If you accept only images of a specified size, you might need to shrink the uploaded image / create a thumnail.Here's h... |
Send An Email Using A Bean This JSP snippets shows how to send an email using a reuasable javabean |
JQuery And Function Chaining I am learning new things about jQuery: function chaning is a really cool feature:
|