• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

working with JSTL

 
Praveena Paruchuru
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
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 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...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
Praveena Paruchuru
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
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Praveena Pk", please check your private messages for an important administrative matter. Thanks.
 
Praveena Paruchuru
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
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't say "mail", I said private messages. The link is above.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic