Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

do we need any specific jars to run EL?  RSS feed

 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do we need any specific jars to run EL?



This also is not working

 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%application.setAttribute("email","visitjose@yahoo.com");%> ${applicationScope.email}

Works for me.
What container/version are you using?
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im using tomcat5.0.28.

what are you using?

can you give your jars list you are using?

ARUL JOSE
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has nothing to do with jars. You need to make sure that your deployment descriptor uses the Servlets 2.4 XML Schema and declares the web app as Servelts 2.4 web application.
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do you do that?

can u send the code?
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

-Yuriy
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its still not running.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arul, I'm not saying this to be mean but rather to help you get the best use out of these forums as a resource. You don't seem to put much effort into helping yourself. No one should have had to give you the format for the web.xml file -- it's right there in the Servlets 2.4 Specification.

Posts that say "it isn't working" and just expect everyone else to solve your problems won't get you far either. Please follow the "smart questions" link in my sig for some tips on how to post in ways that will maximize your results.

Next thing you should do is to post your web.xml file so we can take a look at it. You should have realized that you'd need to do that by now.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Next thing you should do is to post your web.xml file so we can take a look at it. You should have realized that you'd need to do that by now.

Or, Better:
Look at the web.xml that ships with the ROOT context in Tomcat.
I usually start with that one and modify it to suit my needs.
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's my web.xml. I would have attached this in my previous mail. I dont think (or i dont realize) my jsp file has much to do with web.xml. correct me where im wrong.



My jsp file:



FYI i reffered the web.xml in the ROOT also.
[ August 20, 2005: Message edited by: Arul Jose ]
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it works now.

i simply saved the jsp file under another name and it runs. I could not visualize the magic.

may be the vim editor had problem in saving the file???

ARUL JOSE
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are also using the wrong URI for the JSTL. It should be:


[ August 20, 2005: Message edited by: Bear Bibeault ]
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you are right Bear.

But this example has nothing to do with the uri. the example runs. Thanks anyhow.

i found the following truth.

Everytime the jsp class file is compiled, the generated class file involves the web.xml also. The jsp file is re-compiled only after making some changes to the file. Otherwise the same class file will be used when you say re-load.

So what do i come to say? after making changes to the web.xml, we need the container to make the jsp recompile also. Otherwise the .class file generated with your previous web.xml file will be used.

you views?


[ August 22, 2005: Message edited by: Arul Jose ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!