<br><br>
<html:img <br> src='staticResource.do?content_type=image/gif&resource_source=graphics/struts-power.gif'
<br> alt='Powered by Struts'
<br> height='15'/><html:link <br> href='staticResource.do?content_type=text/plain&resource_source=css/index_css.css'/>
<br><br>
The "staticResource" class is as follows:
<br><br>
public final class ActionStaticResource<br>
extends Action {<br> public ActionForward execute(ActionMapping mapping,<br>
ActionForm form,<br>
HttpServletRequest request,<br>
HttpServletResponse response)<br>
throws IOException,<br>
ServletException {<br>
response.setContentType(request.getParameter(StaticResource.CONTENT_TYPE));<br>
try {<br>
String fileName = WEB_INF.getClasspath() + <br> request.getParameter(StaticResource.RESOURCE_SOURCE);<br>
FileInputStream fis = new FileInputStream(fileName);<br>
byte[] imageBuf = new byte[1024];<br>
BufferedInputStream bis = new BufferedInputStream(fis);<br>
byte[] bytes = new byte[bis.available()];<br>
OutputStream os = response.getOutputStream();<br>
bis.read(bytes);<br>
os.write(bytes);<br>
} catch(Exception e) { System.out.println(e);}<br>
return null;<br>
}<br>
} /// ;-)<br>
<br><br>However, I cannot get this to work with Flash files. Someone have a suggestion?
LEGAL NOTICE
This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

