[ 
https://issues.apache.org/struts/browse/WW-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42392
 ] 

Benjamin McCann commented on WW-2235:
-------------------------------------

Hmm.  I'm not familiar enough with the code to make recommendations, but 
thought I'd make sure everyone was aware of the issue.  Some possible thoughts:
    Could the tags detect each other's presence and load the files only if not 
already loaded?
    Perhaps an attribute could be added to one of the tags to make loading the 
JS optional?

> Duplicate requests issued by browser
> ------------------------------------
>
>                 Key: WW-2235
>                 URL: https://issues.apache.org/struts/browse/WW-2235
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Firefox with the Firebug plugin
>            Reporter: Benjamin McCann
>            Assignee: Musachy Barroso
>
> /struts/xhtml/validation.js and /struts/utils.js are requested twice in the 
> page below.
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
>       <head>
>               <title>Test</title>
>               <sx:head />
>       </head>
>       <body>
>               <s:form name="test" action="Test" validate="true">
>               </s:form>
>       </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to