ANT - Importing Images into WAR file in struts
Hiya Guys,
everytime I build my struts project, I copy my images over to the web-inf/Images directory. Everytime I load a jsp, the image file does not load. Here is the source of the html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<table>
<tr>
<td><img src="MNAMainPic.jpg" width="800" height="200"></td>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</body>
</html>
here is my ant file:
<target name="resources">
<copy todir="classes" includeEmptyDirs="no">
<fileset dir="src/java">
<patternset>
<include name="**/*.conf"/>
<include name="**/*.properties"/>
<include name="**/*.xml"/>
</patternset>
</fileset>
</copy>
<copy todir="Images" includeEmptyDirs="no">
<fileset dir="Images">
<patternset>
<include name="**/*.swf"/>
<include name="**/*.gif"/>
<include name="**/*.jpg"/>
</patternset>
</fileset>
</copy>
</target>
what am I doing wrong?
Thanks
Adz - Its all about the JSPs baby!
__________________
Adz - Learning The J2EE Ways.
|