This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Tag files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Tag files" Watch "Tag files" New topic
Author

Tag files

Vineela Devi
Ranch Hand

Joined: Dec 20, 2003
Posts: 191
Hi,
Somewhere I read tht We can use both .tag and .tagx as extensions for tag files.

I have tried this:

firstTag.tagx:
<jsp oBody/>

index.jsp
<%@ taglib tagdir = "/WEB-INF/tags" prefix = "first" %>

<first:firstTag>Welcome user</first:firstTag>

Iam getting an error tht The prefix "jsp" for element "jsp oBody" is not bound

the same thing I tried changing the extension .tag and it is working fine.

Anyone pls clarify

Regards,
Vineela
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi.
Try this. It should work. When the extension is .tagx, the tag is in XML document format.



Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
 
GeeCON Prague 2014
 
subject: Tag files