I am evaluating the 4.0 m2 version of the IDE. I create a new web project and add Struts capabilities. I copy to the source and web directories the appropriate source code (Java files, JSP files, CSS, .tld files, web.xml, struts-config.xml, etc.). After rebuilding the project I have no errors. This is a good thing.
Now I want to edit a JSP file. In my plain old JSP files I have this statement in the <head> section:
<style type=”text/css”>
<%@ include file=”star.css”%>
</style>
In my Struts-enabled JSP files I have this statement in the header:
<link rel=”stylesheet” type=”text/css” href='<h:rewrite forward=”starStyle”/>’/>
which refers to this section in the struts-config.xml file:
<global-forwards>
<forward
name=”starStyle”
path=”/star.css”/>
</global-forwards>
I have this struts-config.xml file in the WEB-INF directory.
My problem here is that the “Design” mode of the JSP editor doesn’t use the CSS file. How do I get my project to look to the CSS file?