• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with taglib include directive  RSS feed

 
Nagaraju Pee
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
what's wrong using taglib include directive in the following way



why its throwing exception

org.apache.jasper.JasperException: /jsp/contgent1.jsp(1,21) attribute for %>" is not properly terminated
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:132)
org.apache.jasper.compiler.Parser.parseAttributeValue(Parser.java:247)
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:211)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:149)
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:380)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:496)
thanks
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2906
198
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nagaraju,

There are actually two problems:
  • The target file must be a hard-coded literal value, so no expressions allowed in the file part
  • You are closing the include directive after the ContextPath()


  • Regards,
    Frits
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!