File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Tag attribute - quote symbol expected issue

 
Bechir Bejaoui
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I'm trying to develop a custom tag with attributes, I encountred that problem
org.apache.jasper.JasperException: /CustomTagPage.jsp(12,41) quote symbol expected

Here is my custom tag class implementation



I subscribed it in a tlb file under /WEB-INF/lib/helloTagLib.tld



The custom tag works fine without attributes, however if I try to add attribute to the code and add the <attribute> tag I encounter this error

org.apache.jasper.JasperException: /CustomTagPage.jsp(12,41) quote symbol expected


Thank you



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is not in the declarations of the tag, but in its use. Which is the one thing you have not shown us.
 
Bechir Bejaoui
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:The problem is not in the declarations of the tag, but in its use. Which is the one thing you have not shown us.


Yes in fact, I discovered the issue, when I declared the attribute, I miss used it as you said

<customLibrary:customTag attribute_name= 1> in stead i have to add quotes to attribute_name= "1"
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic