• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

working with JSTL

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I wanted to examples on JSTL. but I am getting some problem.

web.xml



example1.jspx



I have placed .tld files under WEB-INF/tld folder and jstl.jar and standard.jar in lib folder in my project folder. I am using weblogic server. I am using example server and using placed the war file in autodeploy folder and jstl.jar and standard.jar files inside samples\domains\wl_server\lib.

When i am tryign to access the example1.jspx, it is throwing the error Illegal token for taglib directive.

Could anybody tell me what is the problem?

Thanks
Praveena
 
Sheriff
Posts: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not really sure about weblogic, but in most modern containers you don't need to explicitly put taglib declarations in web.xml. Anyway try to put jstl.jar and standard.jar inside the WEB-INF/lib folder of your WAR file and then deploy it...
 
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit is correct. Remove all those declarations from the web.xml - they're just in the way. You are also using an older URI for the JSTL, be usre to use the up-todate URI. See the JSP FAQ for more information.
 
Prathima Kumari
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

I removed all the entries in the web.xml and placed the jar files only in project lib folder and removed these jars from server common lib. In the other way also, I removed the jars from project lib and placed them in server common lib, still it is throwing the below error.

 
Bear Bibeault
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Praveena Pk", please check your private messages for an important administrative matter. Thanks.
 
Prathima Kumari
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

I didn't get any mail.

I found the solution for this. We need to keep taglib entries in the web.xml but we need to rename the .jspx to .jsp. When it is .jspx it is not recognosing scriptlets.

Regards,
Praveena.
 
Bear Bibeault
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't say "mail", I said private messages. The link is above.
 
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic