I'm using Struts 1.3.5.
I've run into a snag lately that my struts-config.xml controller nocache
setting is causing IE to not download/display a PDF from one of my actions (see
http://support.microsoft.com/?kbid=323308). I thought I could selectively turn
off the nocache attribute for the single action that displays the PDF (like
recipe 3.18 in Struts Cookbook where they read an ActionMapping which sets a
flag). The issue is that the recipe is for earlier versions of Struts without
the ComposableRequestProcessor.
I modified my code to create a command ConfigurableNoCache to replace
org.apache.struts.chain.commands.servlet.RequestNoCache. However, I needed to
read the ActionMapping which contains the setting for this action (disabling
the cache) and the nocache command appears prior to the lookup of the action
config so the context.getActionConfig() returns null. If I want to put this in
place, is there any issue modifying the chain-config like this (moving the
nocache command):
<!-- Set (if needed) no cache HTTP response headers -->
<!-- <command
className="org.apache.struts.chain.commands.servlet.RequestNoCache"/> -->
<!-- Set (if needed) the HTTP response content type -->
<command
className="org.apache.struts.chain.commands.servlet.SetContentType"/>
<!-- Identify the ActionConfig for this request -->
<command
className="org.apache.struts.chain.commands.servlet.SelectAction"/>
<!-- Need to check no-cache AFTER we have access to the ActionConfig! -->
<command className="dep.common.struts.ConfigurableNoCache" />
Thanks for any input/assistance on this matter. I really appreciate it!
Eric Givler