• 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

Dynamic attribute in Tag File

 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tag File




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

JSP file


 
Sheriff
Posts: 67747
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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


The above URI is working fine in other JSPS.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67747
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

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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic