facebook

How to tell web editor to use a particular CSS file?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #235231 Reply

    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?

    #235237

    Riyad Kalla
    Member

    The designer currently doesn’t resolve tag includes like this. We hope to address this problem down the road but right now the workaround (albeit not the best) would be to include the straight <link> ref with no mapping in your JSP files. Sorry about this inconvenience.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to tell web editor to use a particular CSS file?

You must be logged in to post in the forum log in