Hi Nidhi,
<% taglib prefix="pre" taglib="/WEB-INF/tags/mytags" %>
the attribute is 'tagdir' not 'taglib'
<%@ taglib prefix="myTags" tagdir="/WEB-INF/tags/mytags" %>
This is what I have understood:
Use taglib attribute for tag files (with or without a .tld file fr)
Use uri attribute for EL functions, JSLT & custom tag handlers (in conjuntion with a .tld file)
Use tagdir attribute for tag files (with the ".tag" or ".tagx" extension)
Note: Use the "tagdir" attribute instead of the "uri "attribute used for tag libraries
Regards
Shobhan