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?
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?
Joined: Feb 02, 2006
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.