Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Taglib URI

Status
Not open for further replies.

jeffrey54

Programmer
Joined
Feb 22, 2007
Messages
1
Location
US
I am fairly new to struts, I have a question regarding importing a taglib.

I have seen two ways people import taglibs:

1. <%@ taglib uri=" prefix="bean" %>

2. <@ taglib uri="WEBINF/tlds/bean.tlds prefix="bean" %>

What is the difference between the two?
 
The difference is in the version of struts. #1 is struts 1.1 style and #2 is struts 1.0 style. When using the older style, you need to have a subdirectory off of WEB-INF for putting the *.tld files.

I am using Struts 1.1 and my JSPs still use the older 1.0 style and they work fine. However we do have all the tld files, and I don't know that they are part of the newer struts distributions.

Good luck.

Einstein47
(For best results: hand wash in cold, tumble dry low. For not so good results: drag through puddles, pound on rocks, air dry on tree branch.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top