It allows you to include javascript in a tag, even if that tag is included
more than once


On Mon, Feb 24, 2014 at 5:00 PM, alxdarksage <notifications@github.com>wrote:

> In src/main/webapp/WEB-INF/tags/jsonce.tag:
>
> > @@ -0,0 +1,8 @@
> > +<%@ attribute name="id" required="true" %>
> > +<%
> > +	String jsid = "javascript-" + id;
> > +	if ( request.getAttribute(jsid) == null ) {
> > +	    %><jsp:doBody/><%
> > +	    request.setAttribute(jsid, Boolean.TRUE);
> > +	}
> > +%>
>
> This doesn't seem good. Why does the JSP run more than once?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Sage-Bionetworks/Bridge/pull/94/files#r10019950>
> .
>