Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to run a tag program  RSS feed

 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello sir
i m new to tag libraries ..........
i have write one file .......... tag.jsp

<!-- JAI SHRI RAM -->
<%@ taglib uri = "/taglib.tld" prefix="nt" %>

<html>

<body>

<nt:Helloworld />

</body>

</html>


then i write ........ taglib.tld



<?xml version="1.0" encoding="ISO-8859-1" ?>

<taglib>

<tlibversion>1.0</tlibversion>

<jspversion>1.1</jspversion>

<shortname>nt</shortname>

<tag>

<name>Hello World</name>

<tagclass>che</tagclass>

<body context>empty</body context>

</tag>

</taglib>

then i write .,,,,,,, che.jsp

<!-- JAI SHRI RAM -->
<html>
<head><title>JAI SHRI RAM</title><head>
<body>
<%
out.println("JAI SHRI RAM");
%>
</body>
</html>

plz tell me that how to run it .........
because when i m writing http://localhost:8080/tag.jsp then ot is giving the error

thank
guarav
 
Jeremy Wilson
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the error that you are recieving.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!