This weekend I hope you are not planning to do late night party!! Because you may miss your chance to get your much awaited facebook vanity url. Yes, now you can get yourself a url http://facebook.com/yourusername. Facebook has just
announced on its blog that it users can starts registering for their facebook url from June ...
Implementing Logout functionality in a form based authentication in J2EE website is straight forward. The session needs to be invalidated by calling request.getSession().invalidate() method. Thus in a simple servlet following code will be the code for logout:public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.getSession().invalidate(); response.sendRedirect("/sampleapplication/index.jsp"); }This is simple way for implementing logout. There is also another, ...
Struts display tag library is an open source suite of custom tags that provide high-level web presentation patterns which will work in an MVC model. The library provides a significant amount of functionality while still being easy to use. Displaytag can handle column display, sorting, paging, cropping, grouping, exporting, smart linking and decoration of a table in a customizable XHTML style.In the following example ...
Autocomplete is a common feature available in lot of web tools and services. You will find lots of implementation of autocomplete features. Let us see how can we implement a simple Autocomplete feature for Country names in Java-JSP and jQuery.We will use
jQuery's autocomplete plugin for our example. I have used Eclipse for the development of this demo.Create a dymanic web project ...
Sun Microsystems has
announced its own version of Apple's App store,
The Java Store. As a part of the opening general session of JavaOne on Tuesday, Scott McNealy and James Gosling unveiled the Java Store, at store.java.com. The Java Store is launched in public beta. If you are having the Sun Developer ...
Tagging the content has increased the searchability of content in todays Web 2.0 world. Also similar content can be grouped together by assigning them same tags.Tag Cloud has became a good way of displaying the weighted tags in a manner easy to understand and search. You can find a lot of code written in all ...
Yesterday
I wrote an article about a php method that can convert normal timestamp into "x Min Ago" like timestamps. I will call these type of timestamps an "agots". Although the PHP method is straight forward in converting unix timestamps to agotimestamps, I thought of implementing a custom function in smarty that can be used ...
Microsoft quietly launched its search engine
Bing this sunday after presenting it in public last week. Following are few notable features.The Beta tag -- Bing has been launched earlier than expected datesBeautiful nature pics at the back ground load after a slight delay.Suppose you type Java on the search engine. On the left nav you ...
While working on one of the forum project, I had to print the timestamp of a topic in format "N Seconds ago" or "X minutes ago".! The Web 2.0 world have changed the way these dates are displayed. The days are gone when the timestamps were displayed like "12 Jan 2003 10:50 pm"!!! A paradigm shift ...