Skip to main content

Blog Archive for ahashim during March 2007

http://egjug.org/hashimblog/2007/03/20/tips-to-save-clients-bandwidth/ In this post, I will write about the client/server bandwidth saving. In some countries, the cost of the Internet is based on the bandwidth consumption, you pay for the number of MB's you have used as traffic, so, if there is a website which contains pages with large size, you will consume the client bandwidth! Also the request...
http://egjug.org/hashimblog/2007/01/03/dwr-hello-world/ Hi, After making few samples with DWR framework, I think it is a very good, powerful and easy to use AJAX framework. I am using it mainly to perform File Upload with progress bar, taking into consideration to be working in all browsers like IE5.5, Netscape, Firefox, Mozilla, Opera, Safari and other browsers in MAC and Linux. I made a...
Sometime, you will need to read some text from the resource files in your application from the Struts Action class. The easier way which most developers are using is to open the resource file using the java.util.ResourceBundle class, which will open the file and read its content. PropertyResourceBundle properties=(PropertyResourceBundle)ResourceBundle.getBundle(propertyFileName); This will open...
I saw many times code written by geeks, comparing String to literals in this style public boolean compareUser(String name) { if("Ahmed Hashim".equals(name)) { //do staff here return true; } return false; } what is the difference between this and the normal code style? public boolean compareUser(String name) { if(name.equals("Ahmed Hashim")) { //do staff here return true; } return false; } You...