Kedar,
What you suggested works fine for web application but not for web module of an enterprise application.
I tried on sample enterprise application developed on netbeans 5.5.1
-Vamsee
[Message sent by forum member 'sri_vamsee' (sri_vamsee)]
http://forums.java.net/jive/thread.jspa?messageID=250720