ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim McGuire" <tmcgu...@go-integral.com>
Subject image tag causing request to controller
Date Wed, 07 Mar 2007 19:37:40 GMT
Hello list,

I have a confusing error in which an image tag on an FTL page is
triggering a request that is being routed through the controller and
causing all of the associated events for that request to be executed
twice (or three times if there are two image tags).  I've been staring
at my controller.xml and my web.xml to discover why this is happening
and I can't see it. 

1) where can I set a debugging breakpoint to view the contents of the
request object before it hits the controller.
2) why is this happening in the first place?

here is the offending line in FTL page:
<IMG name="largeImage" src="" >  

here is part of web.xml:

 <filter>
        <filter-name>ContextFilter</filter-name>
        <display-name>ContextFilter</display-name>
 
<filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class>
        <init-param>
            <param-name>disableContextSecurity</param-name>
            <param-value>N</param-value>
        </init-param>
        <init-param>
            <param-name>allowedPaths</param-name>
            <param-value>
 
/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/imag
es:/scanjobs:/includes/maincss.css:/ImageServer</param-value>
        </init-param>
        <init-param>
            <param-name>errorCode</param-name>
            <param-value>403</param-value>
        </init-param>
        <init-param>
            <param-name>redirectPath</param-name>
            <param-value>/control/main</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>ContextFilter</filter-name>
            <url-pattern>/*</url-pattern>
    </filter-mapping>

here is part of controller (the mapping that is getting executed - it is
the populateMetadata method that gets executed more than once):
<request-map uri="updateMetadata">
        <security https="false" auth="true"/>
        <event type="java"
 
path="com.gointegral.opendm.scanstation.events.ScanstationEvents"
            invoke="populateMetadata"/>
        <response name="assetUploadSuccess" type="view"
value="updateMetadataSuccess"/>
        <response name="scanSuccess" type="view"
value="updateMetadataSuccess"/>
        <response name="error" type="view" value="error"/>
    </request-map>

Tim McGuire
Integral Business Solutions

Mime
View raw message