Dynamic html file generation problem

I have a HTML file(abc.html) which is used when user clicks on a particular link in my web application. Web application has been developed in java. Now due to certain law changes , user wants to add some notices to existing HTML file(abc.html). So when he clicks on the old link, he gets abc.html with those notices appended to it. All the notices are different HTML files.
So it looks like simple file append problem. But if it will modify my original file permanently, then it is not helping my purpose.
So my doubt is , how I can append different notices html files to abc.html file and still keep my abc.html file as it is because the changes are based on user conditions. So if X is affected with new laws, he will see abc.html along with notices , if Y is not affected, then he will see abc.html only.

The best solution would depend on the implementation details of your current web app, but, likely, the easiest way is to convert your html files to jsps. The jsp can then conditionally include relevant disclaimer fragments.

Similar Messages

  • How can i render a dynamic html file in jsp page

    Hi everybody,
    i am trying to render a dynamic html file in jsp page with the result of querying a database.
    The response of the query is a xml document. And i have a stylesheet to transfer it to html.
    How can i render the html in a jsp file?

    I am using below code for HTML files
    private var appFile:String="index.html";
    if (StageWebView.isSupported)
                        currentState = "normal";
                        webView.stage = stage;
                        webView.viewPort = new Rectangle( 10, 130, (stage.stageWidth)-20, 750 );
                        var fPath:String = new File(new File("app:/assets/html/aboutus/"+ appFile).nativePath).url; 
                        webView.loadURL(fPath);
                        addEventListener(ViewNavigatorEvent.REMOVING,onRemove);
                    else {
                        currentState = "unsupported";
                        lblSupport.text = "StageWebView feature not supported";
    above code is working fine for me.

  • Struts html:file tag problem

    Hi,
    I have already posted but couldn't get the solution. So just incase if anyone can suggest something, it would be appreciated.
    On the form, there is a browse button and a submit button. The normal procedure of clicking on the browse button, and then submit button using mouse works fine. But what we want is , When mouse is pointed on browse button and a "ENTER" button is clicked on keyboard, the file browse window pops up . When we click submit button, that file should be submitted and get processed. The problem is when mouse is pointed on browse button and a "ENTER" button is clicked on keyboard, the file browse window pops up and then when I click submit button, the text field is cleared off instead of being processed.
    I tried all sorts of javascript but still don't know why the text is erased once the submit button is clicked.
    Any suggestions??
    The code related to this is:
    function focus1() {
    if(document.all.uploadFile.click())
    return true ;
    else
    return false ;
    <html:form method="post" action="/SubmitTrans.do" enctype="multipart/form-data" focus="uploadFile">
    Choose the file
    <b>Select File</b> <html:file property="uploadFile" onfiltered=' return focus1();'/>
    <html:submit value="Process"/>
    </html:form>
    Thanks in advance.

    Because the bean util is using reflection to lookup the methods for getting and setting the value. Thus it can't find getter and setter methods for the member named File. But if the member is named file, then it finds getFile() and setFile() because they follow the naming convention. If your not familiar with reflection and java beans, you should take a look at some brief tutorial.
    Example:
    private String username;
    public String getUsername() {
       return username;
    public void setUsername(String name) {
         username = name;
    }

  • HTML File generating  -Problem

    Hi Guys,
    I would like to generate html file the below procedure . Any help would be appreciated . Please help me
    declare
    type empdtlrec is record (empno number(4),
    ename varchar2(20),
    deptno number(2));
    empdtl empdtlrec;
    begin
    execute immediate 'select empno, ename, deptno ' ||'from emp where empno=(select max(deptno) from emp)'
    into empdtl;
    dbms_output.put_line('empno ' || empdtl.empno );
    dbms_output.put_line('ename ' || empdtl.ename );
    dbms_output.put_line('deptno ' ||empdtl.deptno );
    end;
    Regards,
    Orabalu

    Hello Orabalu,
    To generate an html output you can try following sql (save it as emp.sql) and modify to your needs table and column name and run it thru sqlplus session. Hope this helps
    set echo off;
    SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
    HEAD "<TITLE>Employee Report</TITLE> -
    <STYLE type='text/css'> -
    <!-- BODY {background: #FFFFC6} --> -
    </STYLE>" -
    BODY "TEXT='#FF00Ff'" -
    TABLE "WIDTH='50%' BORDER='5'"
    COLUMN EMPID HEADING 'Employee ID' ENTMAP OFF
    COLUMN FNAME HEADING 'Employee Name'
    COLUMN LNAME HEADING 'Department No' ENTMAP OFF
    SPOOL report.html
    SELECT empno, ename, deptno
    FROM emp
    WHERE empno = (SELECT MAX (deptno)
                   FROM emp);
    SPOOL OFF;Regards
    Edited by: OrionNet on Jan 17, 2009 10:07 PM

  • Heap Dump file generation problem

    Hi,
    I've configured configtool to have these 2 parameters:
    -XX:+HeapDumpOnOutOfMemoryError
    -XX:+HeapDumpOnCtrlBreak
    In my understanding, with these 2 parameters, the heap dump files will only be generated under 2 situations, ie, when out of memory occurred, or user manually click CLTR + BREAK in MMC.
    1) Unfortunately, there are many heap dump files (9 in total) generated when none of the above situation occured. I couldnt find "OutOfMemoryError" in the default trace, nor the shallow heap size of those heap dump files are anywhere near the memory limit. The consequences are our server run out of disk space.
    My question is, what are the other possibilities that heap dump file will be generated?
    2) In the Memory Consumption graph (NWA (http://host:port/nwa) -> System Management -> Monitoring -> Java Systems Reports), out of memory error occurred when the memory usage is reaching about 80% of the allocated memory. What are the remaining 20% or so reserved for ?
    Any help would be much appreciated.
    Thanks.

    Hi,
    Having the -XX:+HeapDumpOnCtrlBreak option makes the VM trigger a heap dump, whenever a CTRL_BREAK event appears. The same event is used also to trigger a thread dump, an action you can do manually from the SAP Management Console, I think it is called "Dump stacks". So if there was someone triggering thread dumps for analysis of other types of problems, this has the side effect of writing also a heap dump.
    Additionally, the server itself may trigger a thread dump (and by this also a heap dump if the option is present). It does this for example when a timeout appears during the start or stop of the server. A thread dump from such a moment allows us to see for example which service is unable to start.
    Therefore, I would recommend that you leave only the -XX:+HeapDumpOnOutOfMemoryError, as long as you don't plan to trigger any heap dumps on your own. The latter will cause the VM to write a heap dump only once - on the first appearance of an OutOfMemoryError.
    In case you need to trigger the heap dumps manually, leave the -XX:+HeapDumpOnCtrlBreak option for the moment of troubleshooting, but consider if you want to keep it afterwards.
    If heap dumps were written because of an OutOfMemoryError you should be able to see this in the dev_server file in /usr/sap/<SID>/<inst>/work/ . Also there you should be able to see if indeed thread dumps were triggered (just search for "Full Thread ").
    I hope this helps.
    Regards,
    Krum

  • File generation problem

    Dear All ,
    I am using SP12 for variable substitution of file name in receiver file adapter . I have done all the configuration in receiver file adapter of IDOC-XI-FILE scenario . <b>But file is not getting generated .</b>
    <b>When I checked sxmb_moni , it is showing "file processed successfuly"  and acknowledgement status " still awaiting acknowledgement" .</b>
    Can anybody suggest what could be the reason for file not getting generated .
    Thanks in advance
    Regards
    Prabhat

    Dear Sameer ,
    My scenario is <b>IDOC-XI-FILE</b> . plz help me to find out the solution .
    xml structure for the IDOC processed successfuly is like this :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
    - <SITE_DATA>
      <STORE_CODE>N002</STORE_CODE>
      <TITLE_MEDI>Company</TITLE_MEDI>
      <STORE_NAME>Mount Road</STORE_NAME>
      <STREET>Chennai</STREET>
      <COUNTRY>IN</COUNTRY>
      <SALES_TAX_NO>12345678910</SALES_TAX_NO>
      </SITE_DATA>
      </ns0:MT_SITE_MASTER>
    plz help me .
    thanks in advance
    regards
    Prbhat

  • Web.xml file generation problem

    Hi,
    I am trying to create web.xml file automatically using "java weblogic.marathon.ddinit.WebInit
    " command.
    I got the following message in the command prompt:
    Found Web components. Initializing descriptors
    filters=0 servlets=0 tags=0
    Above command is creating the web.xml and weblogic.xml files but it is not including
    the servlet-mapping information. why?
    Thanks,
    Prakash

    It doesn't look like it found any servlets. You'd have to show me your
    files if I'm to understand what's going on.
    -- Rob
    Prakash wrote:
    Hi,
    I am trying to create web.xml file automatically using "java weblogic.marathon.ddinit.WebInit
    " command.
    I got the following message in the command prompt:
    Found Web components. Initializing descriptors
    filters=0 servlets=0 tags=0
    Above command is creating the web.xml and weblogic.xml files but it is not including
    the servlet-mapping information. why?
    Thanks,
    Prakash

  • Datalink sequence method (XML file generation problem using Rdf)

    Hi All
    I want to Generate XML File using RDF , Here i used 4 datablocks and i lilnked each datablock with datalink like 1 to 2, 1to 3 and 1 to 4 respectively. while executing the report it choosing only one link like 1 to 2 and writting the data in the file for the same. its not touching 3rd and 4th datablocks I need to have data for all the blocks that are available.
    One more thing i want to close each blockonce the data is written in the file.But in this case the tags get open wites data goes to the other block write the data for this block come back to the first block and closes the block.
    eg: <Start>
    <First block>
    <Second block>
    <Third Block>
    </Third block>
    </second block>
    </First block>
    </Start>
    My requirment is
    <start>
    <First block>
    </First block>
    <Second block>
    </Second block>
    <Third Block>
    </Third block>
    </Start>

    You might want to look at the SQL/XML operators XMLAGG, XMLELEMENT, XMLFOREST, XMLATTRIBUTES. They provide you with fine grained control over the XML generated.

  • Dynamic HTML UI generation

    i am dynamically binding a panel grid to a panel grid from a backing bean which has getters/setters for the property specified but i am getting an error msg like following .
    error msg:
    javax.servlet.ServletException: The class 'com.argosoftware.xmlwebuireader.FormElementsManagedBean' does not have the property 'aHtmlPanelGrid'.
    but when i run the backing bean manually it prints out all the ui component objects to the command prompt .. any help

    private HtmlPanelGrid aHtmlPanelGrid;
    public void setAHtmlPanelGrid(HtmlPanelGrid aHtmlPanelGrid) {
    try {
    generatePanel();//aHtmlPanelGrid
    } catch(Exception e) {
    e.printStackTrace();
    this.aHtmlPanelGrid = aHtmlPanelGrid;
    public HtmlPanelGrid getAHtmlPanelGrid() {
    if(aHtmlPanelGrid == null)
    aHtmlPanelGrid = new HtmlPanelGrid();
    try {
    generatePanel();//aHtmlPanelGrid
    } catch(Exception e) {
    e.printStackTrace();
    return aHtmlPanelGrid;
    }

  • Creating an html file in XI using an xsl stylesheet  -- two error types

    Hi
    I am working on mapping an xml invoice to an html-file using a stylesheet  (xsl-file)  in the message mapping in XI 3.0.
    Thus the inbound message is an xCBL Invoice and the output message is to be an html file. I name the output file "%supplierid%_%invoiceid%.html using the variable substitution functionality in the communication channel.
    I have two problems:
    1) the <br/> tags in the stylesheet are changed to "<br>" in the resulting html file causing problems in the output file, as this is not valid XML.
    2) I would like to insert the current date and time in the output file and I am using this code, but the date and time is not picked up:
    <B>
          Received:
          <xsl select="xs:string(fn:current-dateTime())"></xsl>
    </B>
    How do I solve these two problems?
    BR
    MIkael

    please note, that it is the tag "br/" that is changed to "br" in the html file.

  • Problems in Frame 1 with External HTML files

    I am having an issue with loading two external html files within
    my website.
    I have a case study page with a
    dynamic textbox and a scrollbar attached to it.
    I have another page "news" that
    contains another dynamic textbox with a scrollbar attached to
    it.
    I created two .txt files with my
    information for both pages.
    Working in Flash CS3 with
    Actionscript 2.0 at 30fps.
    My problem is this:
    I can go to my news page and the .txt file will be visible,
    but once I go to the other case study page and reveal that .txt
    file, I go back to the news page and the .txt file is no longer
    visible. Only a nonworking scrollbar is displayed with no text and
    nothing else.
    I believe I need to do something different in Frame 1's
    Actioncode. I just don't know how to get the other .txt file to
    work along with the other. I will be adding more .txt files in
    dynamic textboxes later and I really need to resolve this issue so
    I am able to add them with no problems. Appreciate anyone's help
    immediately if you can.
    Here is the temporary website link so you can test and see my
    problem. Don't forget to go the the news button first in the
    navbar. Then go to the case studies link and find the MAX Cat
    Packaging and view that .txt file, then go back and you will see my
    problem.
    Click Here to
    Visit Site

    well I made a separate layer and placed the symbol with the
    text box and scrollbar attached. That was the only thing on the
    layer as you mentioned to separate it. I don't see how I could
    separate the scrollbar from it as it is needed. So I made some
    keframes, selected the textbox inside the symbol and added the code
    you told me to add:
    caseStudyMC._visible=false; In the other frames where I
    needed it visible I added the code:
    caseStudyMC._visible=true;
    When I tested the movie. I didn't see the text but I saw the
    scroll bar still and the text still failled to appear after viewing
    the MC Case study text.
    Is the code supposed to go in Frame1? What do I do with the
    scroll bar image? I tried to Make it all disappear using the alpha
    at 0, but it still didn't work.
    thanks for all your help. hope you understand what I
    wrote.

  • Need help: Problems with exported Dreamweaver html file in different browsers

    I'm trying to send out a newsletter, and had our designer create it in Dreamweaver, and then export and html file which we uploaded.  For some reason it looks wrong on Mac's, Gmail, and a few issues with Outlook.  Does anyone know how to help with this, or had to work around this problem in the past?
    I've attached our html file as well.
    We're an eco startup with limited time and budget - so any help you have would be so appreciated.
    Thank you!!

            World Centric Monthly Newsletter   August 2009     
    Palo Alto Joins the Ban Against          
             Non-Recyclable Materials
           This Spring, Palo Alto joined the list of more than 30 cities and counties in California who are making good on their efforts toward reducing their greenhouse gas emissions
           by enacting partial or comprehensive bans on polystyrene (PS) foam and/or non-recyclable disposable foodservice containers. Around the same time, a California statewide ban on the use of PS containers was tabled before reaching the State Assembly floor. Representative
           Jerry Hill, one of AB 1358’s sponsors, pulled the bill due
           to concerns addressed in the Appropriations committee hearing of the bill, regarding the fiscal impacts which
           were not addressed in bill’s contents.
           Largely represented by the California Restaurant Association, opponents of AB 1358 lobbied legislative representatives and argued there would be a negative fiscal impact on struggling restaurant owners and their customers in order to accommodate the more expensive alternatives to PS containers.     There are the unquantifiable and “hidden” costs of contaminating our bodies and environment which would far surpass the fiscal impact on the plastics, restaurants and consumer industries. Studies published by the Foundation for Advancements in Science and Education have indicated that varying levels of styrene residues
             are present in 100% of all human fat tissue in the
             United States, as PS products are found to lose weight after in contact with hot or fatty/acidic foods and liquids, causing migration of the styrene into the food or fluid, ending up in the human body. On the high end, the levels were “one third of levels known to cause neurotoxic symptoms”. In the environment,
             PS is rarely recycled and does not biodegrade.     Supporting safer alternatives to polystyrene, in addition to the collection infrastructure and processing mechanisms for the compostable and recyclable products would help create more green jobs in the long run and would be a move in the right direction away from unnecessary harm
           to our health, our communities and our world. Keep your eyes open for a revised version of AB 1358 in Spring 2010!     For more information about polystyrene
           visit Earth Resource.     For a partial energy, emissions and water analysis
           of polystyrene and its alternatives visit our website.           World Centric Compostable
             Hot Cup Lid
             World Centric is pleased to announce we now offer a fully compostable hot cup lid that
             fits our 10oz, 12oz, 16oz,
             and 20oz paper hot cups.
           The lids can be ordered in cases of 1000 or packs of 100.
           For more information or to order, please visit our website.           This Month
             We’d Like to Applaud
           Project Open Hand
           San Francisco's non-profit
           organization that prepares and delivers food to seniors, people living with HIV and homebound critically-ill residents. For nearly 25-years Project Open Hand has been providing “meals with love” to local residents in need of help and care in
           California’s San Francisco and Alameda counties.
           Programs include meals, groceries and nutrition information as well as education and referral programs
           for all of the people served. A staff dietitian also visits several sites per week to speak with seniors and critically ill local residents about the importance of eating well
           and staying healthy.
           Project Open Hand continues to serve nearly 800,000 annually and has served as a model for over 100 organizations across the United States and the world.
           If you are interested in making a donation,
           please visit Project Open Hand.
           Help Project Open Hand continue to do what it
           does best – deliver quality food to those in need.           
    “World Centric has gone
               about every aspect of
               business in the most
               sustainable of ways. 
               It is a model for socially
               responsible business.”
               Ari Patz
               Styrophobia                          
                   Industry Trends
               Although PLA is a sustainable alternative to a petrochemical-
               derived product, its limitation has
               been not only its cost, but its inability
               to maintain structural integrity in hot temperatures and humid conditions because of its low melting pint.
               However, researchers at Teijin
               (formerly in partnership with Cargill)
               have improved their plant-based
               ‘Biofront’ PLA polymer to be able
               to withstand higher temperatures –
               by modifying its hydrolytic resistance.
             Get more information here.                          
                   Get Great Deals!
                   Check out our clearence items.
                   Did you know?
               Styrene can leach from polystyrene.
               Over the long term, this can act as
               a neurotoxin. Studies on animals
               report harmful effects of styrene
               on red-blood cells, the liver, kidney,
               and stomach organs.
               US Environmental Protection Agency (1992) “Styrene”. Air Toxics Website.                          
                   Where to Find us:
                   CRRA Conference
                   August 2 - 5
                   Palm Desert
                          Western Foodservice
    & Hospitality Expo
                 August 30 - September 1
              Livable Green
                 September 19
    San Mateo                                
         Find us:            World Centric
    2121 Staunton Ct. Palo Alto, CA
    You are subscribed as <[email protected]>. Click here to manage your email subscription preferences.
    Click here or reply to this email with 'unsubscribe' in the subject to unsubscribe from this list or if you feel you have received this message in error.
    This message was sent from World Centric 2121 Staunton Ct Palo Alto CA 94306 United States. Click here to report email abuse.
    You are subscribed as <[email protected]>. Click here to manage your email subscription preferences.
    Click here or reply to this email with 'unsubscribe' in the subject to unsubscribe from this list or if you feel you have received this message in error.
    This message was sent from World Centric 2121 Staunton Ct Palo Alto CA 94306 United States. Click here to report email abuse.

  • Problem in converting word to html- file get error msg 'This command is not available because no document is open'

    Hi,
    I write the some asp code to save the word file from client machine to server machine , and convert it into the html file.
    it working fine when i debug the code into the visual studio but when i deploy code on iis it give me a error 'This command is not available because no document is open' , while i try to save file into html format.
    lot of time i try this give all the security full access to iis user and other things .
    can any one help me. i fully frustrated from this problem. 
    my need only upload the word document from client to server machine and convert it into the word document. 
    only IIS give me the problem, suggest me what setting i need to do in iis 
    please help me humble request 

    Hi,
    In this forum we mainly discuss questions about Office client questions and feedbacks, issues related to coding are not supported here.
    Based on the description, although the question is about converting Word documents, it's more likely to be a permission issue, the question is better to be posted in the IIS.NET forum:
    http://forums.iis.net/
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • New Win7 install. Can't open html files. Get "there was a problem sending command to the program".

    When I try to open an html file on my hard drive, I get a "There was a problem sending the command to the program" error. There is no way I can open a local html file with firefox, even though Win7 sees it these files as Firefox documents. This is a brand-new Gateway tower running Windows7-64, Athlon phenom 4x processor, 6G RAM, and the latest version of Firefox (a week old).

    Try:
    *http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox
    You can try to redo the default browser (temporarily make another browser the default).
    *http://kb.mozillazine.org/Default_browser

  • Problem with sending large HTML files as attachment using JavaMail 1.2

    Hi dear fellows, i am currently working on posting Emails with attachments using JavaMail 1.2. i succeeded in sending many mimetypes of files as attachments except for .htm and .html files. when large HTML files (say, >100 kB) serve as attachements, the mail is posted on mail server, but not properly posted since only the first small part of the file is writted into mail server but the latter part of the attachment file is missing.
    is that a bug of JavaMail??? are there any fellows encountering similar problem as i did??? any suggestions for me to proceed? hopefully i made myself clear...
    Many thanks in advance,
    Fatty

    i've sort of found the cause for that, it is because when the stream write to the mail server, unfortunately there is a "." in a single line. so the server refuse to take any more inputs.
    so do i have to remove all the "." in the file manually to avoid this disaster? any suggestions??
    Fatty

Maybe you are looking for

  • Office 2010 update error Code 80070663 on Window 8.1: Roiscan VB Script states an error on 1a1f08c.msp

    Hi, trying to get 7 updates onto MS Office 2010, getting a repeated 80070663 error. Running Win 8.1. Executed Robust Inventory Scan and got the following: Review Items ============ Error:                       OpenDatabase failed to open .msp file C:

  • Wrt160n wireless router

    I recently bought this for use in our home, however, I have an older HP computer that did not have wireless capability. I aalso purchased a Belkin Model F5D8053 wireless N USB Network adapter to work in conjunction with my linksys router. Everything

  • Can no longer download images from CF card.

    I've been downloading images from my card reader via Bridge for a long time. I just upgraded LR 3.6 to LR 4, and now Bridge doesn't seem to work. If I try to download images, I get the spinning circle, then nothing. The dialog box for importing image

  • Specifying a tray in printer dialogue???

    I have a HP photosmart printer (with 8x11 tray and 4x6 photo tray). In iPhoto6, you can specify the tray in the print sequence. In iPhoto7, the print dialogue is different (and I don't see a page setup anymore). There doesn't seem to be a way to spec

  • Test Scripts for Oracle Account Recievable app using QTP tool

    Hi Please send me some QTP sample Script for testing Oracle AR application Thanks