Friday, January 25, 2008

Working with JSP elements on WCM 6

The JSP file must be stored under
<was_profile>/<cellName>/installedApps/wcm.ear/ilwwcm.war/

If your JSP contains references to other files like Javascripts, images, style sheets, etc, do the following:

1- Store those files under the same folder as the JSP.
2- Refer them as /wps/wcm/<file_name>

For example, if you have an image called dot.gif, your code within the jsp should look like:
<img src="/wps/wcm/dot.gif"/>

In order to check if the files are in the correct place, you should be able to access the follow URL:

http://<yourPortalserver>:<portNumber>/wps/wcm/dot.gif

PS: You must copy your jsp to PortalServer/installedApps/WCM_Local_xxx.ear/xxx.war/jsp if your JSP component will be rendered in a Local Web Content Viewer portlet.

1 comment:

for IT the said...

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

Java Online Training Java Online Training Core Java 8 Training in Chennai Core java 8 online training JavaEE Training in Chennai Java EE Training in Chennai