Do I have to use c:out

If I want to print some variable in any of the 4 scopes, do I have to use c:out tag? Can’t I just use the ${} ??

Incremental deployment with netbeans on glassfish

Heard that development on glassfish is quite fast with netbeans using incremental deployment. Here are some links that will help

Ant splitting entries in

I’m having another problem with ant splitting class-path entry in manifest file to two lines. And glassfish server is being stupid and not building the whole classpath.

Posted this on glassfish forums

Can struts.jar live outside the WAR file in a EAR?

Need to do some reseach on this. Will post update soon.

Yes. They can. You can pack the struts.jar right under the EAR. Or you can create a MANIFEST.MF file in META-INF directory and add a classpath entry as

Class-Path: /lib/

(This one is a obvious solution which everyone knows but not recommended. Add the jars to the server lib directory)

common JARs in EAR for web applications

You don’t have to store the jars used by web applications in the web-inf/lib directory. Instead you can club all the common jars being used by a web application in a lib directory under the EAR file and have the MANIFEST.MF point to those jars instead of copying them to each web application’s lib directory, thus reducing the jar file size. It also improves performance as the JVM class loader doesn’t have to load different class file for each web application.

Refer to this for more info:

javascript editing in eclipse

Right click a project for which you want to enable javascript support. Webdevelopmenttools>Add Javascript Support.

Thats it. You are all set for javascript editing.

Speedup eclipse

Pass the following arguments to eclipse.

-vmargs -Xms1024m -Xmx1024m

You can also use eclipse.ini file.

Faster glassfish

Life is precious. I don’t wanna waste my life waiting for glassfish to compile jsp pages. Here are some links that will help you to speedup glassfish deployment.

keywords: speedup glassfish improve glassfish performance

Slow machine performance while using eclipse, java, ant, oracle sql developer on windows

I’ve been having performace issues with my machine from a long time. Some of the issues I was faced were:

  • Java based softwares like Eclipse, SQL Developer taking a long time to start.
  • UI hanging up with hour glass for several minutes
  • ant build taking a minute to start running

One fine day it occured to me that it could be due to the antivirus. We are using McAfee and its OnAccess scan had been enabled. Disabling the “on access scan” in the McAfee console solved all the issues.

JSTL quick reference


The JSP expression language defines the following literals:

  • Boolean: true and false
  • Integer: as in Java
  • Floating point: as in Java
  • String: with single and double quotes; " is escaped as \", ‘ is escaped as \‘, and \ is escaped as \\.
  • Null: null


In addition to the . and [] operators discussed in Variables, the JSP expression language provides the following operators:

  • Arithmetic: +, - (binary), *, / and div, % and mod, - (unary)
  • Logical: and, &&, or, ||, not, !
  • Relational: ==, eq, !=, ne, <, lt, >, gt, <=, ge, >=, le. Comparisons can be made against other values, or against boolean, string, integer, or floating point literals.
  • Empty: The empty operator is a prefix operation that can be used to determine whether a value is null or empty.
  • Conditional: A ? B : C. Evaluate B or C, depending on the result of the evaluation of A.

The precedence of operators highest to lowest, left to right is as follows:

  • [] .
  • () – Used to change the precedence of operators.
  • - (unary) not ! empty
  • * / div % mod
  • + - (binary)
  • < > <= >= lt gt le ge
  • == != eq ne
  • && and
  • || or
  • ? :

For the detailed version visit (opens in new window): Sun J2EE Tutorial

You can also use this PDF