Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

having Problem about JSTL  RSS feed

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody..

This is the first time I am using JSTL, I read lots of articles about it, and tried to follow everything step by step, But
I am really stuck in a problem about using the JSTL. I use JBoss 4.2.3 . I downloaded the jstl 1.2 and copied the jstl.jar under
C:\jboss-4.2.3.GA\lib directory. And also because I am trying to use the datagrid, I coppied " taglibs-datagrid.jar " under the same directory.
Then I coppied "taglibs-datagrid.tld" under my WEB-INF folder.

I am having this problem:

unable to load tag handler class "org.apache.taglibs.datagrid.DataGridTag" for tag "ui:dataGrid"

Any idea, please help me....

Thanks in advance..

my web.xml file is :

...

and my jsp file is:

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please review your post--it's essentially impossible to read.

Please UseCodeTags. Unformatted code/config/etc. is difficult to read. You can edit your post to include them using the button or re-post the question with proper formatting.

You should also disable HTML if your fragments include valid HTML.
 
Marshal
Posts: 67192
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
taglibs has nothing to do with the JSTL.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems to be an issue with the datagrid tags, not JSTL.
 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello;

I am having a different error message now:

"According to TLD or attribute directive in tag file, attribute items does not accept any expressions "

I searched on the Internet and it was advised to use



I tried this as well



But still giving the same problem.. I dont know am I using the correct version for jstl? Or is there something else?


I changed my jsp codes to :


Sorry about the previous post as it was not really readable..
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seriously: use code tags, or your messages are likely to be ignored because they're difficult to read.

I provided instructions.
 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks David for your suggestion;

My Post now looks much better..
 
Bear Bibeault
Marshal
Posts: 67192
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Again, if your problem is with the 3rd-party tag libraries, the JSTL stuff is moot. Are you sure that you know which tags are causing the issues?
 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I really dont know. When I delete the code below, it works with no error and naturally does not show anything..

 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the rest of the exception? What version of JSP/servlet does the taglib support? What version of JSP/servlet does your server support?
 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. Server info: JBossWeb/2.0.1.GA
2. Servlet version: 2.5
3. JSP version: 2.1
4. Java version: 1.6.0_10
 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks..
Here is all about the error I am having, I got it from my JBoss log file.

The line 76 refers to



The error:

 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So there's your answer:First of all, the <%= ... %> syntax will display a string--I would have assumed you want to pass a collection of some sort. Second, the <% ... %> won't be allowed there. Just pass the collection directly.

It's really nice to provide the relevant information up front and to be accurate in the subject line--as noted, this wasn't a JSTL problem, and the important part of the exception message wasn't shown until now.
 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am really sorry about all these posts. This was the first time I was using this site, I did not know how to use it..

And the other thing is, I had never used or heard about JSTL till yesterday. I want to use it for my final project.
I did not even know which details I must send.. But any way, thanks you all for your patience..

I changed my codes to:



But it gives exception for exactly the same line, which is :



Many thanks..



 
Attractive, successful people love this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!