/**
* Sets the source object, which may be either a URL or a Dari
* object.
*/
public void setSrc(Object src) {
WebPageContext wp = new WebPageContext(pageContext);
if (src instanceof String ||
src instanceof URI ||
src instanceof URL) {
String path = JspUtils.resolvePath(wp.getServletContext(), wp.getRequest(), src.toString());
StorageItem pathItem;
if (path.startsWith("/")) {
pathItem = StorageItem.Static.createUrl(JspUtils.getAbsoluteUrl(wp.getRequest(), path));
} else {
pathItem = StorageItem.Static.createUrl(path);
}
tagBuilder.setItem(pathItem);