Archive for October, 2011

Difference between ServletRequest.getRequestDispatcher and ServletContext.getRequestDispatcher

October 26, 2011
Difference between ServletRequest.getRequestDispatcher and ServletContext.getRequestDispatcher

If you use ServletRequest.getRequestDispatcher: you can use absolute path like “/index.jsp“, which forwards request to “http://www.myapp.com/index.jsp” from the request received directory or you can use relative path like “index.jsp”, which forwards request to “index.jsp” which is relative to the request received servlet. For example, if you receive your request on “http://www.myapp.com/mymodule/”, RequestDispatcher requestDispatcher = request.getRequestDispatcher(“index.jsp”); [...]

Open Office in a Java Applet using OpenOffice.org API

October 22, 2011
Open Office in a Java Applet using OpenOffice.org API

Using OpenOffice.org API, you can manage the spreadsheet from your application only. This is simple flow for viewing spreadsheet in an Applet of Java.Easy steps to view & manage Open Office in Java Applet: Download Java Development Kit (minimum version 6) and install using the article: http://poisure.com/2011/10/installing-java-on-windows/ Download OpenOffice.org (OOo) from here: http://download.openoffice.org/, and install [...]

Installing Java on Windows

October 22, 2011
Installing Java on Windows

Install JDK in easy steps: Download JDK from here: http://www.java.com/en/download/manual.jsp (Choose the matching version) Install Java (Lets assume you downloaded jdk1.6.0_22 version and installed in C:\Program Files\Java folder) Set the below system properties by going here: ‘My Computer-> properties -> Advanced -> Environment Variables’: variable name: JAVA_HOME variable value: C:\Program Files\Java\jdk1.6.0_22 (Change this path to [...]

Fixing Invalid command ‘RewriteEngine’

October 21, 2011
Fixing Invalid command 'RewriteEngine'

[Mon Oct 10 21:57:06 2011] [alert] [client 127.0.0.1] C:/wamp/www/web-app/.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration This happens only when rewrite module on your Apache server is off. Do the following steps in order to resolve the problem: Go to this folder C:\wamp\bin\apache\Apache2.2.17\conf or corresponding ‘conf‘ [...]

Installing Ant Build tool

October 21, 2011
Installing Ant Build tool

Easy steps to install Ant build tool on Windows system: Skip this Step 1 if you already installed JDK Install JDK by following the steps shown in the article: Installing Java on Windows or Installing Java on Linux Download ANT for Windows (ZIP file) from here: http://ant.apache.org/bindownload.cgi Unzip anywhere on your hard drive (Lets assume [...]

 

If you have a Tip, Comment, Article or anything you want to share, please send it to: i@poisure.com