Hi all I am a bit confused re tag Rules. On Heads First Servlets n Jsp Book pg 354, it says that i can code a useBean tag with a 'type' attribute on its own as long as the bean ALREADY EXISTS. Coincidentally at work im using this code:
and i know for sure i have a bean object set in my request, so how come i am getting an Instantiation Exception still, saying i should declare either a class or a beanName. Please help. Thanks lots Rina
Are you sure you have bean call imap in the request scope?
If scope is missing, by default it will find in the page scope only. You have used scope="request", so in the request scope there must be a bean called imap in order to be able to use:
Hi Chandra thanks for your quick reply. i just thought i could use any id n that i only needed d id to be able to call the bean in my jsp page later . So now this code works:
One other thing please, any suggestion why EL doesnt work for me, i thought this was enabled by default. I checked my DD for any settings but don't know what else to do, any ideas please thnx a million Rina
One other thing please, any suggestion why EL doesnt work for me, ...
EL is only enabled by default when using a JSP 2.0 compliant container (make sure you're using Tomcat 5.x or later) and a Deployment Descriptor version 2.4 or higher.
Hi Chandra im using Weblogic 8.1.3 and my DD says:
so i guess i can't use EL in my app. I have used JSTL but would i be able to embed scripting inside my JSTL eg. <c:if test="<%request.ge......... thanks Rina
Rina, if Weblogic 8 does not support servlets 2.4, I strongly recommend you to get a servlets 2.4 compliant container to study for the exam, or may find it difficult to get on with the examples of your book.