In the year 2008 Tech industry has seen lot of ups and downs. Starting from Microsoft proposed acquisition of Yahoo to launching of Apple's iPhone; Tech world has seen lots of new things in year 2008. As the year 2008 coming to end, let us sum up some of the BIG stories in tech world in this year.
Techmeme.com, the technical news ...
A Custom tag is a user defined JSP language element. When a JSP page containing custom tag is translated into a Servlet, the tag is converted to operations on an object called tag handler. The Web container then invokes those operations when the JSP page's servlet is executed. It speeds up web application development because of code reuse feasibility. Custom tags can access all the ...
Performance tuning of any website involves lots of things to be taken care of. For example, compressing the output / response of the website increase the performance by significant folds. GZIp and Deflate compression techniques are commonly used in servers like Apache, Tomcat, jBoss etc.Also the size of a webpage plays significant role in load time and their by affecting websites performance. Thus if we ...
Java Virtual Machine, or JVM as its name suggest is a "virtual" computer that resides in the "real" computer as a software process. JVM gives Java the flexibility of platform independence. Let us see first how exactly Java program is created, compiled and executed.Java code is written in .java file. This code contains one or more Java language attributes like Classes, Methods, Variable, Objects etc. ...
Let us see how we can implement file upload functionality using Apache Struts Framework. I assume you have basic knowledge about Struts and know the flow of a struts application. If you are new to struts, I suggest you to check this tutorial first:
Struts Project in Eclipse.First let us download all the required JAR files to implement file upload functionality. For this we ...
Maxlength of Textarea Setting up maxlength of input text are easy. Just an attribute maxlength="##" does the work. But maxlength attribute does not work with textarea. I tried writing <textarea rows="5" cols="30" maxlength="120"></textarea> but this does not works.So what to do if we want to fix the maxlength of a textarea?Use following jQuery plugin for setting maxlength of any textarea on your page.First thing for ...
Resetting the root password of a MySQL database is trivial if you know the current password if you don't it is a little trickier. Thankfully it isn't too difficult to fix, and here we'll show one possible way of doing so.If you've got access to the root account already, because you know the password, you can change it easily:gaurav@gaurav:~$ mysql --user=root --pass mysql Enter password:mysql> update ...
Nowadays, Web 2.0 has became a buzz word on internet. Lot of websites that you browser have that "rich" user interface with jazzy fonts and logos and ajax/javascript effects. AJAX has really changed the way we surf on internet. You see any cool web application like GMail or Google Reader, they look much like a ...
A lot of times we have requirement to do some stuff like invalidating session whenever user clicks browser close button thereby invoking close event in browser.Let us see how to achieve this using JavaScript. In JavaScript we have events such as onbeforeunload and onunload. These events as their name suggest, gets triggered whenever the page gets unload. This happens if user close the browser or ...
Let us see how to add Spring support (Spring IOC) to a Struts application using Eclipse IDE. I will use the hello world struts project that we created in
this tutorial as base reference and step by step we will add Spring support to it.In this tutorial we will use Spring IOC (Inversion Of Control) mechanism. There will be a business delegate class ...