Relating to HF S&JSP S.503ff my question is: could I have more than one <tag> . . . </tag> in one tld? If I try the first 2 examples in HF S&JSP I always got trouble when compiling the JSP. (NetBeans 4.1 / Tomcat 5.5.7).
You can have more <tag> in tld. Your problem is in JSP. Post the code of JSP.
SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Lutz Schlenther
Greenhorn
Joined: Sep 19, 2005
Posts: 6
posted
0
This is the code from the JSP:
and this is the error message:
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
posted
0
Looks like compiler don't see the changes in tld file.
Lutz Schlenther
Greenhorn
Joined: Sep 19, 2005
Posts: 6
posted
0
Thanks for reply. I tried to change the name in the <uri> tag in the tld and corresponding in the uri attribute in the taglib directive (eg. 'xyz') and . . . . . it works!
But when I renamed it again 'simpleTags' the error occured again!??? I dont't understand it really but the code is running!
Thanks Lutz
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
posted
0
Depends how you do the build and deployment. You are compiling the JSP from ant task or Tomcat itself compile it?
Lutz Schlenther
Greenhorn
Joined: Sep 19, 2005
Posts: 6
posted
0
May be the problem occured because the name of the tld ('simpleTags.tld') was the same as the <uri>-name ('simpleTags')? The only idea I've got now. Lutz
Lutz Schlenther
Greenhorn
Joined: Sep 19, 2005
Posts: 6
posted
0
It is Tomcat itself who compile it.
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
posted
0
Did you restart tomcat after editing tld?
Lutz Schlenther
Greenhorn
Joined: Sep 19, 2005
Posts: 6
posted
0
No, I did a 'Deploy Projekt' on the projects window in Netbeans 4.1 after editing the tld then I run the JSP;
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
posted
0
I think Tomcat didn't reload your new tld. Restart him after editing tld.