struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From temp temp <miroconn...@yahoo.com>
Subject [SERVLET_FILTERS]
Date Mon, 28 Aug 2006 19:13:06 GMT
      <filter>
            <filter-name>SearchResultsFilter.CheckIn</filter-name>
          <filter-class>com.reisys.fema.ndsp.web.filter.SearchResultsFilter</filter-class>
          <init-param>
            <param-name>req_attribute_name</param-name>
            <param-value>taskInstances</param-value>
          </init-param>
        </filter>
        <filter-mapping>
          <filter-name>SearchResultsFilter.CheckIn</filter-name>
          <url-pattern>/action/workflow/taskinstance/checkin.do</url-pattern>
        </filter-mapping>
       
        <filter>
            <filter-name>SearchResultsFilter.Assign</filter-name>
          <filter-class>com.reisys.fema.ndsp.web.filter.SearchResultsFilter</filter-class>
          <init-param>
            <param-name>req_attribute_name</param-name>
            <param-value>workInstances</param-value>
          </init-param>
        </filter>
        <filter-mapping>
          <filter-name>SearchResultsFilter.Assign</filter-name>
          <url-pattern>/action/workflow/workinstance/assign.do</url-pattern>
        </filter-mapping>
       
       
      I have a  servlet filter which should behave different based on  parameter passed to
it. Above is a mapping of  a filter with different names but the same Filter class  SearchResultsFilter
to different urls’s.
       
      The init  method of the filter  SearchResultsFilter.CheckIn  and SearchResultsFilter.Assign
  will be common or different ? Suppose SearchResultsFilter.CheckIn is called first and in
 the init method I initialize some variables and later SearchResultsFilter.Assign  is called
at this time will the init method  be called again ?
       
       
       
    
 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message