Author Archive

Fully qualified V/S unqualified name in java

November 24, 2011
Fully qualified V/S unqualified name in java

Lets make it clear what is meant by fully qualified name & unqualified name in Java, and how to get them inside Java code Consider a small example: package org.bss.pkg;   Class Member {   private int id;   public int getId() { return id; }   public void setId(int id) { this.id = id; [...]

SCWCD / OCWCD Mock Exams

November 6, 2011
SCWCD / OCWCD Mock Exams

SCWCD / Oracle Certification Paths for JSP / Servlet Certification examination: Oracle Certified Professional, Java EE 5 Web Component Developer: Oracle J2EE 5 Exam Path Oracle Certified Expert, Java Platform, Enterprise Edition 6 JavaServer Pages and Servlet Developer: Oracle J2EE 6 Exam Path (Click on exam link of each page to find the syllabus of [...]

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 [...]

Welcome

September 21, 2011
Welcome

Welcome to Poisure, my first blog post. First of all thanks for visiting Poisure.com. I would like to post items of interest (mostly technical related) actively on this blog and promise to answer any of your questions if possible. I have a big prediction to make about a blog. Maybe it’s not that big, but [...]

  Newer Entries »

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