I've committed several fixed and a few enhancements to the Struts Bridge. If you currently are using the Script Tag, make sure to read the following (they are gone):
- Support anchor tag in link and rewrite tags
- Improved and corrected struts-el handling and dropped all BeanInfo classes (no longer needed)
- Added PortletURLType.RESOURCE which allows link and rewrite tags to also render resource urls
You can specify attribute resourceURL="true" and/or define in the struts-portlet-config.xml a <resource path="<url prefix"/> as subelement of the PortletUrlType elements (just like the action and render elements).
A resourceURL will be rendered just like that: a context relative url, instead of a PortletURL (the contextPath will be prefixed, just as with images).
This allows you to reference a javascript source with: <script language="Javascript1.1" src="<html:rewrite href="../js/staticJavascript.jsp" resourceURL="true"/>"/>
or by using for example <resource path="/js/"/> in struts-portlet-config.xml: <script language="Javascript1.1" src="<html:rewrite href="../js/staticJavascript.jsp"/>"/>
Also (the reason I started out adding this feature): <table background="<html:rewrite href="../images/bkg-topbar.gif"/>" using a <resource path="/images/"/> in struts-portlet-config.xml for jpetstore
instead of what I current have: <table background="<c:out value="${pageContext.request.contextPath}"/>/images/bkg-topbar.gif"
This allowed me to remove the jstl dependency from jpetstore again (I only use it for the above) as well as REMOVE the ScriptTag and ELScriptTag!!!
- DROPPED all Script Tags as it functionality can now be realized by the rewrite tag (see above)
I never liked it to have to add a non-struts based tag in the struts-portlet tld. But because providing an additional tld for only those tags seemed a bit too much.
Now, with the new resourceURL support in html:link and html:rewrite I don't really need the script tags anymore.
Regards, Ate
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]