[104449] fix for getModules to return proper path....peer reviewed. Committing for DFH
diff --git a/plugins/org.eclipse.jst.j2ee.web/web/org/eclipse/jst/j2ee/internal/web/deployables/WebDeployableArtifactUtil.java b/plugins/org.eclipse.jst.j2ee.web/web/org/eclipse/jst/j2ee/internal/web/deployables/WebDeployableArtifactUtil.java index 64af826..22d303a 100644 --- a/plugins/org.eclipse.jst.j2ee.web/web/org/eclipse/jst/j2ee/internal/web/deployables/WebDeployableArtifactUtil.java +++ b/plugins/org.eclipse.jst.j2ee.web/web/org/eclipse/jst/j2ee/internal/web/deployables/WebDeployableArtifactUtil.java
@@ -135,10 +135,8 @@ return new WebResource(getModule(resource.getProject(), component), new Path("servlet/" + className)); //$NON-NLS-1$ } - resourcePath = trim(resourcePath, component.getName()); - resourcePath = trim(resourcePath, WebArtifactEdit.WEB_CONTENT); - // resourcePath = trim(resourcePath,WebArtifactEdit.META_INF); - // resourcePath = trim(resourcePath,WebArtifactEdit.WEB_INF); + + resourcePath = resources[0].getRuntimePath(); // Extension read to get the correct URL for Java Server Faces file if // the jsp is of type jsfaces.