• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

working with JSTL

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Sheriff
Posts: 67746
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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
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
"Praveena Pk", please check your private messages for an important administrative matter. Thanks.
 
Prathima Kumari
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
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
I didn't say "mail", I said private messages. The link is above.
 
reply
    Bookmark Topic Watch Topic
  • New Topic