on 01-26-2012 4:49 PM
Hi,
Within a Web Dynpro Java component I am trying to get a resource which has been placed in the
Folder - Resources > src > configuration > Components > com.acme.product.ui.adobe.wd.comp.renderpdfcomp.RenderPdfComp
WDURLGenerator.getResourcePath(wdThis.wdGetAPI().getDeployableObjectPart(),"FormTemplate.xdp")
At runtime the above statement generates the following URL:
C:\usr\sap\UA1\J00\j2ee\cluster\apps\acme.com\product~ui~adobe\servlet_jsp\webdynpro\resources\acme.com\product~ui~adobe\root\Components\com.acme.product.ui.adobe.wd.comp.renderpdfcomp.RenderPdfComp\FormTemplate.xdp
However on the server it actually exists at:
C:\usr\sap\UA1\J00\j2ee\cluster\apps\acme.com\product~ui~adobe\servlet_jsp\webdynpro\resources\acme.com\product~ui~adobe\root\WEB-INF\webdynpro\Components\com.acme.product.ui.adobe.wd.comp.renderpdfcomp.RenderPdfComp\FormTemplate.xdp
The main difference is the 'WEB-INF\webdynpro' is not included in the generated URL but does exist in the file structure on the j2ee server.
As a result subsequent processing fails to find the file located at the component's resource location.
I've tried generating to the path to the resource using
WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(),"FormTemplate.xdp")
And this does the same thing.
Any help would be appreciated.
Paul
Copy the com.acme.product.ui.adobe.wd.comp.renderpdfcomp.RenderPdfComp folder and the FormTemplate.xdp
from
Folder - Resources > src > configuration > Components > com.acme.product.ui.adobe.wd.comp.renderpdfcomp.RenderPdfComp
to
Folder - Resources > src > mimes > Components
The FormTemplate.xdp will now be in
Folder - Resources > src > mimes > Components > com.acme.product.ui.adobe.wd.comp.renderpdfcomp.RenderPdfComp
You will be then able to access it with the following code
WDURLGenerator.getResourcePath(wdThis.wdGetAPI().getDeployableObjectPart(),"FormTemplate.xdp")
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.