Browsing articles in "Programming Languages"
Jan
6
2009

Sending Email From Your Spring Application

The Spring Framework provides a helpful utility library for sending email that shields the user from the specifics of the underlying mailing system and is responsible for low level resource handling on behalf of the client. In my last project I have used spring mail functionality to send mail to the user. This is the simplest way so far I have found to send mail from spring application. Let us also assume that there is [...]

Dec
23
2008
DWR // J2EE // Java // Spring

Itegrating DWR (Direct Web Remoting) with Spring

Hi Springers, I have used DWR (Direct Web Remoting) in my last project which was pretty interesting and I want to share the simplest way of using DWR with spring application. Download the latest version of dwr.jar from here. And put it in the /WEB-INF/lib folder. I have used DWR 2.0.5. Add the following lines in your web.xml <servlet> <servlet-name>dwr-invoker</servlet-name> <display-name>DWR Servlet</display-name> <servlet-class> org.directwebremoting.servlet.DwrServlet </servlet-class> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr-invoker</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> Now [...]

Nov
24
2008

How to Install LAMP (Linux, Apache, MySQL, PHP) on Ubuntu (8.04 / 8.10)

This is for the newbies in the world of Ubuntu. Use the following steps to install LAMP (Linux, Apache, MySQL and PHP) in Ubuntu. Open up the Terminal (Applications > Accessories > Terminal). Run the following command to install Apache $sudo apt-get install apache2 To test Apache open up any web browser and then enter the following into the web address: http://localhost/ Now run the following command in the terminal to install PHP $sudo apt-get [...]

Nov
21
2008

How to install or add PHP GD support in Ubuntu

PHP is mainly a server side language which renders the code at server and throws the output to the client end through Apache or any other HTTP server. So, being a newbie we often suffer from GD support in Ubuntu. This are the following steps to install or add PHP GD support in Ubuntu. $ apt-get install php5-gd OR $ sudo apt-get install php5-gd $ /etc/init.d/apache2 restart Now PHP GD support is ready to work.

Nov
20
2008

How to install JDK in Ubuntu

Those who are involved in Java based application development must need to use Java Development Kit (JDK). And those are newbie in the world of Ubuntu may don’t know how to install JDK in Ubuntu. This is quite simple to install JDK in ubuntu. Just run the following command in the terminal and follow the steps. $sudo apt-get install sun-java5-jdk After this the rest of the process will display a dialog that will require you [...]

Nov
13
2008

How to set a cron job using PHP in webmin

I have a CentOS server to test my all projects. According to clients requirement webmin is installed as admin panel. Today I had tried to use a cron PHP script in that server and succeeded. This is how I have setup the cron job. In the webmin panel ther is a menu group named ‘Cluster’; So from that menu group -> Cluster Cron Job. Then I have added a new cron job. 1. Selected user [...]

Jul
26
2008

Ruby on Rails

Why don’t we try Ruby as the whole world is suffering from Ruby fever. As I thought I had started playing (here I used word ‘play’ because I became a fan of it) with Ruby on Rails. Firstly I started reading one of four books named ‘Springer Ruby on Rails for PHP and Java Developers’. The book is so good and in fact perfect for me as I know PHP and Java. There I found [...]