on 08-15-2008 1:09 PM
Hello!
I have created a par file with the following PAR-Archive:
*.par
¦
+---meta-inf Automatically generated.
¦
¦ All files and folders in the root folder are deployed as public. This usually includes resources,
+---images images,
+---css css,
+---scripts JavaScripts etc.
According to the documentation, you can access all folders in the archive. But in which way??? The URL looks like this:
2fcom.aldi.extranet.iview.flex-integrator-text <- i tried to add !2fscripts!2fhallo.txt (which i copied to the scripts directory) but nothing happened.
Hi Björn,
maybe this will help...
public static String getImageUrl(IPortalComponentRequest request) {
HttpServletRequest httpRequest = request.getServletRequest();
StringBuffer buf = new StringBuffer(1024);
String prot = (httpRequest.isSecure()) ? "https://" : "http://";
buf.append(prot)
.append(httpRequest.getServerName())
.append(":")
.append(httpRequest.getServerPort())
.append(request.getWebResourcePath())
.append("/images/");
return buf.toString();
}
Regards,
Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.