Bug 260709 - Create a tag that allows reading file contents into a template buffer
Summary: Create a tag that allows reading file contents into a template buffer
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Jet (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Paul Elder CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 09:26 EST by Paul Elder CLA
Modified: 2020-05-01 16:11 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Elder CLA 2009-01-12 09:26:13 EST
Example:

<x:readContents url="..." urlContext="transform|workspace" encoding="..."/>

with urlContext and encoding being optional. Default for urlContext would be transform. Default for encoding would be the JRE default.

The file contents would be appended to the current buffer. This would make the current ws:copyFile (of a text file ) equivalent to:

<ws:file template="copyFileSource.jet" .../>

--- copyFileSource.jet contents ---
<x:readContents url="srcURL" urlContext="srcContext" encoding="srcEncoding"/>