I have this function in Struts 1:
/*
* (non-Javadoc)
*
* @see org.apache.struts.taglib.bean.WriteTag#doStartTag()
*/
public int doStartTag() throws JspException {
Carac carac = (Carac) TagUtils.getInstance().lookup(pageContext, name, property, scope);
// Code here
return SKIP_BODY;
}
and I am trying to create the same tag in Struts 2 but don't know what's the purpose of this:
TagUtils.getInstance().lookup()