Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic attribute in Tag File

 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to invoke the tag using Tag file with dynamic attribute.Have followed the syntax given in the "HeadFirst Servlet and JSP".

While running the jsp file am getting the below exception :


dynamicAttribute1.tag(9,3) According to TLD or attribute directive in tag file, attribute items does not accept any expressions

Please help me to resolve the issue.
JSTL is working fine in other JSP files.

FYI: Have attached the dynamicAttribute1.tag.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the code ? Both the tag and the JSP where you are using it.
 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tag File




/**************/

JSP file


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65113
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following URI is for a very old version of the JSTL:


I suspect you have a misconfiguration of your web app.

See the JSP FAQ for how to properly set up the JSTL and EL.
 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The above URI is working fine in other JSPS.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thennam Pandian wrote:

The above URI is working fine in other JSPS.

Bear is telling you that it's not working. He's telling you that this is the URI used for an old JSTL version. This might indicate that you are also using some old settings elsewhere, like in web.xml. Check this FAQ.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65113
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thennam Pandian wrote:The above URI is working fine in other JSPS.

You can take action to fix it, or you can continue to have problems. The choice is yours.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
Thennam Pandian wrote:The above URI is working fine in other JSPS.

You can take action to fix it, or you can continue to have problems. The choice is yours.

Sounds like Harry Callahan
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I now what you're thinking: is he using JSP 1.0, or 2.0? Well, to tell you the truth, in all this excitement I kind of lost track myself. But being as this is 2010, and we have the most powerful JSP in the world, and it blows JSP 1.0 away, you've got to ask yourself one question: Do I feel lucky? Well, do ya, punk?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic