Embedding % character in basejini.htm file

Hello,
Is there anyway to embed the % character in the basejini file and be able to bypass the standard variable substitution done by the forms engine.
I am trying to embed a JSP tag <% String user = "xyz"; %> in the basejini.htm file and the forms engine changes this to the <> because it is trying to do a variable substitution of anything found between % signs. Is there a special character to override this behavior?
I'd like the resulting HTML file to have the <% String user = "xyz"; %> line.
Thanks,
Raj

Just save the following example to ORACLE_HOME/forms/java/test.jsp and call it in a webbrowser http://your-forms-server.company.com/forms/java/test.jsp
<%@ page contentType="text/html;charset=windows-1252" %>
<%@ page import="" %>
<%
String username = new String();
if (request.getHeader("Accept-Language")!=null)
username=request.getHeader("Accept-Language");
%>
<html>
<head>
<title>Title</title>
</head>
<body>
Your username is <%=username%>
</body>
</html>
In this sample I get the Accept-Language header from the HTTP request, since I think you're trying to do something like this but with a different header

Similar Messages

  • Does .swf file have to be in same folder as the .htm file that it is embedded in?

    I'm experiencing something odd that does not seem right.  I am trying to embed an .swf file on a web page.  I have the player file in a separate resource folder from the other files.  In the object tags data attribute value, I am able to have the .swf file be in another folder.  However, in the <param name="movie" value attribute, I am not.  Can anyone tell me why?
    <object id="Object1" type="application/x-shockwave-flash" data="../VideoResources/player_flv_maxi.swf" width="480" height="360">  THIS WORKS
    < param name="movie" value="player_flv_maxi.swf" />     this works if I put a copy of the .swf file in the same folder as the .htm file (but I don't want to)
    but this does not work if I put the .swl file in the a folder one level up (which I want to):
    < param name="movie" value="../VideoResources/player_flv_maxi.swf" />   
    Thanks for any ideas.

    I copied the value from data attribute value and pasted it into the value attribute value... 
    Here is the entire code for the <object> tag. 
    <object id="Object1" type="application/x-shockwave-flash" data="../VideoResources/player_flv_maxi.swf" width="480" height="360">
           <noscript><a href="youtube" _mce_href="http://www.dvdvideosoft.com/products/dvd/Free-YouTube-Download.htm">youtube">h ttp://www.dvdvideosoft.com/products/dvd/Free-YouTube-Download.htm">youtube video downloader</a></noscript>
           <param name="movie" value="../VideoResources/player_flv_maxi.swf" />
           <param name="allowFullScreen" value="true" />
           <param name="wmode" value="opaque" />
                       <param name="allowScriptAccess" value="sameDomain" />
                       <param name="quality" value="high" />
                       <param name="menu" value="true" />
                       <param name="autoplay" value="false" />
                       <param name="autoload" value="false" />
           <param name="FlashVars" value="configxml=DVD_VIDEO.xml" />
          </object>

  • Help needed in tokenizer of bookmark.htm file

    i created a small program that reads bookmark.htm file from ie6 or ff
    and then i try to tokenize the buffer and get the urls one after one
    but the output result is not good.
    what do i have to do to tokenize it and get url after url?
    the program:
    import java.io.*;
    import java.util.StringTokenizer;
    public class Url2 {
    public static void main(String[] args)
    File inputFile = new File("d:bookmark.htm");
    StringBuffer strCheck = new StringBuffer();
    int data;
    String searchBol = "<A HREF=\"";
    String searchEol = "<DT>";
    String currentToken;
    try{
    FileInputStream inFile = new FileInputStream(inputFile);
    while( (data = inFile.read()) != -1)
    //System.out.print( (char)data );
    strCheck.append( (char)data );
    inFile.close();
    }catch(IOException e){}
    StringTokenizer st =
    new StringTokenizer( strCheck.toString(), searchEol );
    while ( st.hasMoreTokens() ) {
    currentToken = st.nextToken();
    System.out.println( currentToken );
    }// end main
    }//end class Url2

    StringTokenizer does not what you expect it to do. It will always just use single-character token-seperators. When you pass the String "<DT>" to it's constructor '<', 'D', 'T' and '>' will all work as token seperators, which is most likely not what you want it to do. Consider using Regular Expressions or good old indexOf() .

  • .htm file won´t open project

    Hi there,
    need your help again. I have no idea what is wrong this time.
    I just published new project but it wont play.
    After publishing is everything fine i can open output and everything is just fine.
    But when i want to open published project by clicking on .HTM file nothing happens...
    Sometimes there is TOC displayed but IE gives me this error below.
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3)
    Timestamp: Thu, 26 May 2011 08:26:20 UTC
    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/Prace_CABAN/TEST/standard.js
    Message: 'SWFObject' is undefined
    Line: 20
    Char: 5
    Code: 0
    URI: file:///D:/Prace_CABAN/TEST/Test_office_OU_2010_CZ.htm
    Message: 'document.getElementById(...)' is null or not an object
    Line: 34
    Char: 3
    Code: 0
    URI: file:///D:/Prace_CABAN/TEST/Test_office_OU_2010_CZ.htm
    When i open swf file in web browser. Everything is fine. But whole project is deformed and blury.
    Can someone help me with this?
    Thanks
    Martin

    You're publishing to your D drive.
    Have you made sure that the D drive has been added as a trusted location in your Flash Global Security settings?

  • Cannot publish new .htm file with Contribute

    A client of mine is having an issue with a webpage he
    maintains daily using the Contribute package, and one major problem
    has come up while trying to add new features to his presentation.
    Instead of linking directly to a file as has been done in the past,
    his primary web designer has created a new pop-up style (on demand)
    window that presents video in one portion and an advertisement in
    the rest. Unfortunately, this option did not come with an
    associated template - he merely configured the page to link to a
    .txt file as Contribute would not let the user (Administrator)
    upload a new .htm file.
    My question if anyone might have a few moments to respond, is
    whether or not this is a feasible thing to manage? .txt files work
    in Internet Explorer browsers, but fail on more standards compliant
    options such as Firefox or Apple's Safari (3.0 beta tested on PC,
    other versions tested on MacOS X) in which case they merely result
    in the presentation of a plaintext file in a pop-up window.
    Can a new template be created in Contribute, and files
    generated from this? Is this a technical quick-fix situation, or a
    more involved problem that requires Dreamweaver or other template
    creation options?
    Sorry to be rather vague on this one, it's a particularly
    complex situation (with a bit of a time crunch) on the user end,
    and I'm hoping to track down any information I can.
    - J. Johnston

    Sorry about being rather vague there, I had the client
    sitting with his head literally peeking over my shoulder and that
    made things a little trickier to actually parse a few times in my
    own head before posting.
    I went through and learned a bit about roles yesterday when I
    was trying to tackle this issue, so what you're suggesting does
    sound like what I tried to do. However, there were two issues that
    I ran into that remained a problem. First, I couldn't tell what
    role his Contribute was configured to use on his website. It
    appeared to be Administrator, and the one user account set up in
    the roles listing is his, but even with this set, I still got the
    error message saying I didn't have permission to create new .htm,
    .html, .php, etc. pages on the site.
    His website was initially created by a rather poor designer,
    whose idea when confronted with being unable to upload .htm files,
    was to use the .txt extension - because "Internet Explorer treats
    .txt as HTML, so what's the loss?"
    The essence of what the client is trying to accomplish, is
    this: He produces video content for a local news website, and
    uploads a handful of videos every weeknight. In the past, his
    webpage has simply offered a link where users clicked on an image
    and immediately downloaded a .wvx file which loaded up Windows
    Media Player (or Quicktime with Flip4Mac installed) and played his
    playlist of advertisements and news content. His new method
    involves clicking a link, which pops up a new window, which plays
    the video file embedded with an advertisement next to it in a
    table. These pop-up pages are the ones that don't seem to want to
    transfer up through Contribute.
    I hope this clarifies things a little, and I really
    appreciate your help.

  • Dynamic Embedded Character Sub-Setting ???

    Hi All,
    I have instruction movies with 30 plus languages that I will be uploading to YouTube. I have Flash CS5 - AS3 - Player 10 req.
    I need to add only the font groupings (Latin, Cyrillic, Chinese, etc.) needed for the language specified and ideally only those characters that are being used by the selected language when the file is processed/complied.
    1. Can I programmatically add the characters being used to the internal list of embedded characters? Even if I have to run it twice to get it into the Library Font Object?
    2. Can I programmatically set the language grouping? I know I can turn layers that call different fonts off and off.
    3. Does the embedded character subsetting have a character limit? I can always make a utility to read the XML tags the have my displayed text and make a file or clipboard that I can paste it into the library. But, this is slow and tedious when you have 30 plus languages and 30 plus movies. I am trying to automate this whole process and limit inspection and non-automated testing.
    When I use this on a users CD, all fonts will be in a shared SWF. The fonts are over 8mb in size.
    I have a small issue with the #2 method - I have the potential need have Unicode characters in a text string that is in a ASCII based programming language. (FYI - the programs parser is smart enough to process the text string embedded in the code). I would hate to burden the movie with all the Chinese Characters or my newbie users/programmers (cough, cough) of my movie template with the task of ensuring that all characters a truly emdded and supported.
    Thanks,
    Jim

    A few points:
    (1) The point of embedding fonts in a PDF file is to make it possible for the PDF file to be properly displayed and printed by recipients of the PDF file that don't have the same exact fonts you do. Adobe recommends subset embedding of fonts whenever possible for highest quality display and printing of PDF file text. The subsetting includes only the glyphs you use and thus can save considerable file size. (For example, the Arial font in Windows is over 700K in size including all the glyphs for not only Western Latin languages, but also Cyrillic, Greek, Arabic, and Hebrew alphabets. Subsetting usually reduces the amount of the font embedded to 25K or less for typical documents.)
    (2) You don't own the fonts. You own a license to use the fonts. That is a very important difference!
    (3) Remember that PDF is a “final form file format” with very limited editability. If you need to do any extensive editing, you should have the source file, whether .AI (for Adobe Illustrator), .INDD (for Adobe InDesign), .DOCX (for Microsoft Word), etc. to you. You are responsible to getting a license for the fonts used in these documents if you don't already have one.
              - Dov

  • Missing Index topics, links and .htm files

    I hope someone can help with this, as I am very frustrated
    right now. I normally use RoboHelpX5, but have also tried this in
    RoboHelp7.
    If I generate a Winhelp2000 version of our help system,
    everything appears normal. All of the specified index keywords are
    there, all of the links are there, etc.
    But if I generate either HTML or WebHelp versions using the
    same source, as I'm supposed to be able to, for some reason:
    1. Index entries for certain topics disappear from the list.
    If I manually add the topic to the index again and save, then
    regenerate the help files, the topic is still missing from the
    index.
    2. The hyperlinks for the missing items in #1 above do not
    appear. The original text is there, but there is no hyperlink. If I
    try to add a hyperlink again, the topic appears in the list, but
    once I regenerate the help files, the link disappears again.
    3. The individual .htm file for the missing items in #1 above
    are not being generated.
    Is there some reason why these topics are being dropped from
    the html and webhelp versions of the help system? Is there some
    sort of topic formatting or setting I am missing? I have tried to
    compare working topics vs. missing topics, and cannot find anything
    different in my Word document formatting.
    I have tried creating a completely different help system,
    using clean documents with no RoboHelp formatting, and consistently
    have problems with the same topics. I even tried on another
    computer that had never had RoboHelp on it before. That didn't make
    any difference. The topics were still missing from the index, the
    hyperlinks to those topics were still missing, and the individual
    .htm files were not generated.
    Any help would be appreciated.
    Stephanie
    (ow_mas)

    Hi,
    I ran into the same problem today with some top level Index
    entries not showing up in WebHelp. I discovered how to fix it by
    comparing the entries that did show up with those that didn't. If
    an entry had a topic associated with it, it showed up; if it has a
    cross-reference, it doesn't.
    Double click an Index entry in the Index pane (or right click
    and choose Properties), then clear the Cross-reference checkbox.
    Repeat for each entry that has a cross-reference instead of a
    topic. There may be a global way to fix them all, but I haven't
    found it yet. Then recompile your help, Voila!
    Hope this helps....
    Zie3D

  • Why did my index.htm file generate blank? and other weirdness.

    Here's the story. Maybe someone can tell me where I made my mistake, or what happened. I'm numbering the steps for convenience in discussing this.
    1) I started a new project, a WebHelp project.
    2) I imported content in Word.
    3) I created an index, glossary, and TOC. I used wizards for some of this.
    4) I created a style sheet and applied it to all the topics.
    5) I added a skin from the gallery.
    6) I generated output.
    Then I sent that output to the UI developer on my project. He plugged it in to the web app, and it seemed to work fine. So then:
    7) I opened the project, edited the text, and removed glossary links (because I didn't like how they were working) individually.
    8) I generated a new TOC to match the changed topic structure (minor changes).
    9) I generated another output.
    I sent that output to the UI developer and he said it was blank. I opened index.htm and sure enough, it was indeed blank. In fact, it was Zero KB. I also noticed that four other files were blank: whfform.htm, whform.js, whskin_plist.htm, and whtbar.js.
    So then I decided to start over. I created a new project, imported just the html topic files from the old project, redid the index (in a  hasty and less thorough manner), decided to bail on the glossary for now, did a TOC and sent that to the developer.
    Now the Search pane is totally wonky, showing a list of characters and terms.
    So I am getting frustrated. The developer has tried monkeying around with stuff on his end, but it's not working. So he says, why don't you send me a build with everything?
    The problem is, I have two broken builds. The first one, which for whatever reason has the blank index.htm file (and other blank files), and the second one, which has no glossary, a messy index, and a screwed up search.
    I can't seem to find anyone else having this problem. :-/  Can someone help? 
    Thanks so much,
    Tamarleigh

    I am having the exact same problem, and I think I've figured out what is happening here. There is an issue when mapping Word styles into RH. The person who setup our Word template included a sidehead with conditional text to hide instructor notes when printing participant training manuals. I removed the conditional text, and everything is working fine. You may want to double check to make sure you don't have conditional text in your Word docs. I've uploaded an image with the code below to show how the conditional text looked when the document was linked and generated.
    Check out the code below:
    <table cellspacing="0">
              <tr>
                        <td style="vertical-align: top; padding-left: 0px; padding-top: 0px;
                                   padding-right: 0px; padding-bottom: 0px;" height="800" width="114"><table
                                   cellspacing="0" width="100%">
                                  <tr>
                                            <td style="padding-left: 0px; padding-top: 0px; padding-right: 0px;
                                                       padding-bottom: 0px;"><div v:shape="Text_x0020_Box_x0020_146"
                                                                                                                             class="shape" style="padding: 3.6pt 7.2pt 3.6pt 7.2pt;">
                                                      <p class="WD_InstructorNotesHeading"><span style="background: #ffff00;">Instructor
                                                       Notes:</span></p>
                                                      <p class="WD_InstructorNotesText"><span style="background: #ffff00;">Add
                                                       any additional instructor information into this text
                                                       box.&#160;&#160;It will only appear when hidden text
                                                       is turned on.</span></p>
                                                      <p class="WD_InstructorNotesText">&#160;</p>
                                            </div></td>
                                  </tr>
                        </table>
                        &#160;</td>
              </tr>
    </table>
    Cheers.

  • Renaming the index.htm file

    Folks - I welcome some help on this one!
    I'm running RoboHelp 9, and authoring a help system for a dev group whose buildmeister has requested I rename (if possible) RoboHelp's compiled 'index.htm' file to something else, so as not to conflict with another index.htm file that apparently is part of this software build. I'm assuming this can't be done as a simple File Explorer 'rename', but needs to be defined within the project prior to compiling fresh output. However, I can't find a setting for to accomplish this, and, frankly, don't even know if it's necessary (or possible).
    best,
    Lumpy

    Hello again, Lumpy
    In looking at this thread the following thought occurs to me. If your developer is wanting you to rename your start page, it likely means that your WebHelp is just plopped in with other content. And if that's the case, I'd have to think things are severely disorganized. Normally the help sits in its own folder that is separate from whatever application it supports.
    I know that often developers suffer the God complex and don;t fathom any possibility they are wrong, but it might be worth asking some questions about the arrangement.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Site edit not recognizing index.htm file

    Going through the Site/Edit function to change server
    information, DW told me it can't find the index.htm file. Waiting
    on more information from the host - beside the new IP address, the
    password has been changed and the upload path.
    While I'm waiting on that info want to make sure there's not
    something on my end that could be wrong. The file is in the root
    directory, the name has not changed, and the default file extension
    is set to .htm. Is there something I could have done to cause this?
    The site's been up for years, and I last changed it successfully
    last month or the month before.

    > it can't find the index.htm file
    No, it's telling you that you haven't told it which file is
    your home page.
    Find it, right click, and choose "Set as Home Page". Bada
    bing, bada boom.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "oreillers" <[email protected]> wrote in
    message
    news:gqoi3c$pbj$[email protected]..
    > Going through the Site/Edit function to change server
    information, DW told
    > me
    > it can't find the index.htm file. Waiting on more
    information from the
    > host -
    > beside the new IP address, the password has been changed
    and the upload
    > path.
    >
    > While I'm waiting on that info want to make sure there's
    not something on
    > my
    > end that could be wrong. The file is in the root
    directory, the name has
    > not
    > changed, and the default file extension is set to .htm.
    Is there
    > something I
    > could have done to cause this? The site's been up for
    years, and I last
    > changed it successfully last month or the month before.
    >

  • I am trying to get help with WMPlayer tech support Adobe Reader cant open wmpsupport.htm files why?

    i am trying to get help with WMPlayer tech support Adobe Reader cant open wmpsupport.htm files why?

    Adobe Reader opens PDF files, nothing else.

  • How to open and display htm file in iexplore

    Friends,
    Lets say i have a .htm file and its in the location of C:\BAPI_CUSTOMER_GETSALESAREAS\SALESAREAS.HTML , now i want to open that file in internet explorer when some one click on a particular button this would be happend.
    I write following code :
    import java.io.*;
    public class Test{
    public static void main(String[] args){
    try{
         String command = "cmd /c start C:\BAPI_CUSTOMER_GETSALESAREAS\SALESAREAS.HTML";
              Runtime.getRuntime().exec(command);
              /* Runtime rt = Runtime.getRuntime( );
              rt.exec( "IEXPLORE.EXE" );
              return;*/
    }catch(Exception e){
         e.printStackTrace();
    This will give me the error due to specifying the path of html pages, will you tell me how to achieve that.
    Thanks.
    Hitz

    u hav't given escape seq in
    String command = "cmd /c start C:\BAPI_CUSTOMER_GETSALESAREAS\SALESAREAS.HTML";replace all \ by \\ it wil work..
    ie.
    String command = "cmd /c start C:\\BAPI_CUSTOMER_GETSALESAREAS\\SALESAREAS.HTML";

  • Web.show_document calling .htm files saved on disk....

    Hi ,
    Is it possible to call .htm files saved on disk - let's say c:\my_htmFiles on AppServer/DevSuiteServer using the web.show_document form's built-in...????
    I have tried the following:
    web.show_document('c:\my_htmfiles\first.htm','_blank') and
    web.show_document('file://c:\my_htmfiles\first.htm','_blank')
    but whereas in the web browser's file->open both of them work.... in web.show_document do not....
    Is it possible to do it....?????
    Note: I use Dev10g
    Thanks....
    Sim

    I 'll try it of course.... but is it possible to define multiple directories down this virtual directory.....????
    Assuming that there is the following dir structure:
    C:\dev10gr2/tools/web/html
           |
           |--------------------------------------------/app1
                                                         |---------------/subdir1
                                                         |---------------/subdir2
           |--------------------------------------------/app2
           |--------------------------------------------/app3Is it possible to define multiple dirs ....????
    Is there any doc which describes it with examples.....?????
    Thanks.......
    Sim

  • Why is the HTM file of a page saved in FF also being deleted, if one deletes the subfolder with the corresponding files?

    Alright, let me explain: When I'm saving a web page in FF, this will create a .HTM file as well as a subdirectory with matching filename plus suffix "-Dateien" (German version - I'd guess in the English version it would probably be "-files" or maybe "-data" instead...). Anyway, now if I delete that subdirectory (including all its content) with the Windows Explorer (I'm still using XP, btw), it'll also delete the corresponding .HTM file in the parent directory. Question is: Why/how does it do that? Could that be some hard or symbolic link phenomenon that escapes me?
    Greetings from Munich & thanks in advance!
    Manfred

    That is a Windows feature called connected files that connects the main file and the folder with the other files for certain file operations and HTML files among others.<br />
    If you delete one of them then the other is deleted automatically (the same for Copy).
    *http://msdn.microsoft.com/en-us/library/windows/desktop/bb776887%28v=vs.85%29.aspx
    *http://www.microsoft.com/mspress/books/sampchap/6232.aspx
    You can use the registry editor (regedit.exe) to create a NoFileFolderConnection key of type REG DWORD and set the value to 0x01 to disable this "Manipulate connected files as a unit" feature.
    *HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\NoFileFolderConnection: REG_DWORD 0x01
    Change the value to 0x00 to re enable.
    See also "Operations on an HTML file or folder apply to similarly named folder or HTML file":
    *http://support.microsoft.com/kb/252721

  • Unable to open .htm file in browser using SharePoint 2013 ?

    On Share Point 2013 we had .htm file which was published under excel as shown below (File name t1.htm)
    As the Icon is different from normal excel file.
    My question is why the .htm file is opening in Excel when we access from SharePoint Web Interface ?
    And when we use the option "Open in Explorer" it opens the .htm file in browser.
    I need the publish .htm file needs to be open in Browser.
    Thanks for reply.

    Looking at this a little more closely, what happens is when you upload the Excel HTM file, a folder is also uploaded to the Library (but hidden outside of the WebDAV view). This folder would be named "t1_files" in your case. If this folder is present (which
    it needs to be as t1.htm references files within it, including all of the sheets), then it will attempt to open with the client application because of the association within C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\XML\DOCICON.xml,
    referring to the line:
    <Mapping Key="Excel.Sheet" Value="ichtmxls.gif" EditText="Microsoft Excel" OpenControl="SharePoint.OpenDocuments" OpenApp="ms-excel" />
    Removing this line will cause it to be treated as a standard HTM file, but I'm not sure how that will work out for your scenario.
    The other option is to install and configure Office Web Apps 2013 on a separate server so you can display Office documents in the browser.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for

  • My weather is wrong for the first time!

    For the past few days, the very first city listed on my weather has been incorrect! It is in like the wrong time of day... This is only happening with the first city listed, the rest are fine. I reset my phone and it worked for a few hours, now it is

  • 64 Bits and Motif

    I compile a Motif application in 64 bit as follows:      CC -xtarget=generic64 -g -c fonttest.C      CC -xtarget=generic64 -g -o fonttest fonttest.o -lstdc++ -lm -lXm -lXt -lX11 it compiles just fine. But when I run it I get the following errors at r

  • Is there any functionality to check duplicate records of vendor master

    Dear all, In creation of vendor master, there is probability of creation of same vendor twice by the user by ignorance. Do we any check in SAP so that we cannot create the vendor if that vendor already exists. For instance, based on vendor name can w

  • Iphone will not restore

    Hi, I have tried to update to ios 6 today and wish I hadnt bothered. Now my itunes doesnt recognize my phone, wont restore even though I have uninstalled anti virus software Please help?

  • Creating a row trigger to populate the primary key

    to populate the primary key of a table automatically, i created a sequence named rule_id using the following statement: create sequence rule_id; and then i created a trigger to populate the primary key using the statements below: CREATE OR REPLACE TR