设为首页 加入收藏

TOP

SAP Portal 上传资源到WRR(一)
2019-09-17 18:37:23 】 浏览:42
Tags:SAP Portal 上传 资源 WRR

Uploading Resources to the Web Resource Repository

Prerequisites

You have been assigned the Content Administrator role.

Context

You can upload Web resources to the Web Resource Repository, so that they can be used by different portal components and applications. When you upload resources, they are saved as objects in the Portal Content Directory (PCD) and are also copied to the file system of the portal server (in the same folder hierarchy, and synchronized with any changes that you make). This allows the consumption of resources at runtime using relative paths. For example, a .css file that is saved in the Web Resource Repository can use a resource that is also saved in the Web Resource Repository, by specifying the following in one of its classes: background: url('../images/logo.png') .

Following are some guidelines for selecting resource files to upload:

  • All resource file names that you want to upload must contain only legal characters ( A-Z , 0-9 , . , _ , % , ~ , - , ( , and ) )
  • Maximum file name length is 100 characters
  • To render, in Microsoft Internet Explorer, icons with an .ico extension that are saved in the Web Resource Repository, you need to enable support for .ico images in SAP NetWeaver Administrator.

In SAP NetWeaver Administrator, navigate to Configuration  Infrastructure  Java System Properties  Services  HTTP Provider. To the Mime property, add the following value: \{.ico,image/x-icon\} .

  • Keep the folder hierarchy depth minimal, because the maximum file path for resource file storage is 120 characters (assuming that the root Web Resources folder is located here:C:\usr\sap\ROM\J00\j2ee\cluster\apps\sap.com\com.sap.portal.resourcerepository\servlet_jsp\com.sap.portal.resourcerepository\root\repo)

Note

To upload multiple resources simultaneously, add them to a compressed (.zip) file and then upload the compressed file.

If you have configured the Virus Scan Interface on your AS Java, all resource files are automatically scanned during the upload process.

Procedure

  1. Choose Content Administration  Web Resource Repository.
  2. In the Portal Catalog, expand the Web Resources node and navigate to the folder into which you want to upload resources.
  3. From the context menu of the selected folder, choose Upload Resources . The first page of the Upload Resources wizard appears.
  4. In the Resource File field, choose the Browse button and select the file to upload from the file system. Choose Open .
  5. Choose Add to Upload Table . The selected file is added to the list of files to be uploaded. If you selected a compressed (.zip) file in the previous step, the contents of the file are extracted and added to the table, each file or folder in a single row.

In the list of files to be uploaded, each file has a status that indicates whether it can be uploaded. If a file cannot be uploaded, the reason is given (for example, a file may contain invalid characters or it may exceed the maximum file size allowed). For information about changing the maximum file size, see Modifying the Uploadable File Size . Use the Filter by Status field to more easily see the problematic files. A s

首页 上一页 1 2 下一页 尾页 1/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇vueSSR渲染原理 下一篇Ajax跨域请求,设置content

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目