• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

do we need any specific jars to run EL?

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do we need any specific jars to run EL?



This also is not working

 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<%application.setAttribute("email","[email protected]");%> ${applicationScope.email}

Works for me.
What container/version are you using?
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how do you do that?

can u send the code?
 
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its still not running.
 
Bear Bibeault
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic