I suspect you are not using JSP 2.0 . in jsp 2.0 EL is enabled by default and in previous version it is disabled by default.
I think this might help you.
thank you very much for your replies; much appreciated.
I've also tried to run the jsp examples that come with tomcat and I've the same result:
EL is not being recognized; it is tomcat 5.5 I'm using.
checking the web.xml is a good idea and it's indeed version 2.4.
I'm thinking all I can do is to re-install tomcat and hope somehow it works.
thank you for all your suggestions:
it turns out that there were two problems:
at some point in the development of the app I add to the tomcat lib
directory a jar file - not sure which one exactly but likely a 'jasper' or 'servlet' - which caused
tomcat to turn off JSP;
second, different urls - ip address of the box vs 'localhost' - for the same localhost were being used for the app and for the
jsp url causing the tomcat to see different sessions and the JSP bean was being
stored in the bean.
a thought: there is a real need for some kind of central repository per technology that - given a situation - helps one to ask
questions. a simple faq might work in many cases.
in this case the questions would include:
- check the servlet version and web-xml,
- are there any jasper or servlet jars in the lib dir which may not need be there?
- check that the urls being used as exactly the same if beans are being stored in the session.
B
Post by:autobot
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
a bit of art, as a gift, the permaculture playing cards