• 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

'lt%!' and '%gt' invalid in a tag file?

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm deploying my web application on tomcat and use JSP tags in the jsp files.
i have a screen.tag:
<%@ tag body-content="scriptless" %>
<%@ tag import="javax.servlet.jsp.PageContext" %>
<%@ tag import="file1" %>
<%@ tag import="file2" %>
<%@ tag import="file3" %>


<%!
//some declarations go here
%>

and when i run my application i get a jasper exception telling me '<%!' and '%>' is an invalid character constant!
i cannot agree with this guy!! what am i doing to render it invalid?
 
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

<%@ tag body-content="scriptless" %>



You declared the tag scriptless. What else did you expect?
[ March 02, 2006: Message edited by: Bear Bibeault ]
 
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
P.S. Your only other choices are tagdependent and empty -- so what does that tell you about the applicability of scripting element within a tag file?
 
Shraddha Jain
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nope that isnt the problem at all 'cos i have 2 other tag files with the same directive and they working just fine!!! no problemo!
and wait i did test this screen.tag with lt%= "Hi"!! %gt and the page did say Hi!! back!
besides as far as i know, "scriptless" attribute is to say that the body of the tag does not have any scripts right??? , i havent put no scripts in the tags body!

tried removing the "...scriptless" attribute but thats doing nothing good for me.
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic