Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

For the Die-hards: Custom Tag Error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!

I'm a bit exploring with custom tag development for my SCWCD-exam. I've programmed a very simple tag, but when i try to run the jsp page Tomcat gives met the following execption:



This is the simple jsp page i'm using:



I hope someone can help me to find the right solution for this problem I would be for-ever greatfull :P

Kind regard

Jan-Martijn
 
Marshal
Posts: 67413
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using the JSP Document (XML) syntax as opposed to the "normal" JSP syntax?
 
Jan-Martijn Wijnholds
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's because i'm working out a example from a book, and this is the way they do it. But i can't figure out why it's nog working in my project.

You're talking about the normal way, could you tel me how i can solve this in the normal way?

Kind regards

Jan-Martijn
 
Bear Bibeault
Marshal
Posts: 67413
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a "normal" JSP page, you wouldn't be using that tag at all. It is used only in the XML document syntax.

I have no idea what's on the SCWCD exam, but if it doesn't require you to use the XML syntax, you may be wasting your time.

The XML syntax is intended as an intermediary format for the containers to use during translation and thus is only of interest to people writing JSP and Servlet containers such as Tomcat. It is not intended for people to use to hand-code JSP pages.
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic