I recently decided to change the context root for a web application in WSAD v5. I made the appropriate changes to the web application's .websettings file as well as the enterprise application's application.xml file. However, when I run the application, one of my JSPs is unable to access the master stylesheet file:
The stylesheet links are defined as follows:
If I change the web application context root back to its original value ("/"), it works fine. My other JSPs, including 2 JSPs in the same folder with the same stylesheet links, have no problem accessing the stylesheet files. I'm sure the problem is with the plugin-cfg.xml file. However, I cannot find this file in WSAD. Does anyone know where this file or its equivalent is kept in WSAD? [ February 02, 2004: Message edited by: Jay Damon ]
posted 16 years ago
I'm not sure why but I changed the CSS links to
and that solved the problem. In WSAD, when the links are specified as they were originally, the CSS styles are displayed properly. However, in WAS, the CSS links must be specified as shown above to display property. I think the problem is due to the fact that I have the JSP mapped to /registration but the the JSP itself is in a folder named user/registration, i.e. 1 level versus 2. Is this correct behavior?