Printing a dynamic html page generated by a jsp

Help! I am having problems printing a confirmation screen that appears after entering criteria into a criteria screen built through a jsp. This is ONLY IN NETSCAPE. IE works fine. When I try to view the frame source it gives me a "Data Missing" message and when I print the screen, I don't get what was actually on the screen, I again get the "Data Missing" message. The exact wordage is:
Data Missing
This document resulted from a POST operation and has expired from the cache. If you wish you can repost the form data to recreate the document by pressing the reload button.
What am I doing wrong? Thanks in advance,
Donna

It has been my experience that Netscape will not print a page which was the result of a post if the data is not cached.
The printed page seems to be the page which should have been displayed asking if a repost should be done.
This caused me no small amount of grief because, while I had to cache the pages to allow printing (an application requirement), I had to ensure that no old pages were ever displayed (under the general rule that no incorrect data should ever be displayed to the user, and old data would be inherently incorrect in my app). Some Javascript made that possible, since when an old page was loaded, I simply forced a history.forward() to be executed when a page was being redisplayed.
Bill Hackmann

Similar Messages

  • Cursor placed in 2nd character position of an HTML page generated thru Web Bean.

    I am not sure if others have noticed it but in my HTML page (generated thru EDitCurrentRecord web bean), the cursor is not always placed in the first character position of a text box/text area.
    Is there a way that I can ensure that the cursor starts blinking in the first character position always (instead of the 2nd or 3rd character position)?
    Thanks in advance!

    This is a bug. I don't have a workaround for you. I will fix it in the next release.

  • How to create dynamic HTML page using PL/SQL code in APEX.

    hello,
    I am woking on one APEX application in which i want to create one dynamic HTML page on button press using PL/SQL code.
    Thanks

    It is possible to create HTML page with dynamic content. One way would be creating hidden field (e.g. P1_HTML on page 1) with dynamic HTML and on button click you redirect to page 2 and pass P1_HTML item value to item P2_HTML on page 2. On page you must have PL/SQL region. You can then render your dynamic HTML with code:
    htp.p(:P2_HTML);
    Don use APEX URL for passing HTML value. Problem and solution is described here: http://blog.trent-schafer.com/2011/04/03/dont-pass-string-parameters-in-the-url-in-apex-its-a-bad-idea/
    Edited by: MiroMas on 3.2.2012 3:20

  • Displaying multiple dynamic html pages within a single Portal folder.

    Hi all,
    Question: How can I display multiple dynamic html pages that are linked to each other, within a single portal folder?
    History:
    I have a designer/web server application (PL/SQL packakges) on Oracle
    8.1.7. Early in the development process we built it into WebDB2.2 and
    used folders on the left side as a navigation bar and the contents of my packages on the right side. This was easy, WebDB used Frames.
    Unfortunatley I could never automatically display a PL/SQL item in the folder area.
    Now I need to integrate the application into Portal 3.0 not the early adopters version, the one with 9iAS (NT for now, Unix later). I have a page/content area divided into regions and a navigation portlet on the left side containing links to PL/SQL folders whose contents are displayed on the right side. On the right side I have (for example) a Queryview. When I click on any of the buttons (i.e. Find, New), I land in a new page outside of my portal folder. This page contains a dynamically built list (from one or more DB Tables) and of course the first column contains a list of links that bring you to the individual item. How do I set my links or configure my folder to display
    within the portal folder area?

    Hi,
    One alternate is, increase the size of your screen, for this go to the layout of your screen and increase it as much you want, and also the custom container size, so that no scroll bar will appear at least.
    Other solution would be, as you said ALVs will be dynamical, it will be good to create buttons, or links on the screen based on the no of ALVs dynamically and on click of corresponding button call the corresponding ALV.
    But i dont think this will serve, first check the first option.
    Hope this helps u.,
    Thanks & Regards,
    Kiran.

  • How to generate dynamic HTML pages using Swing Application?

    Hello,
    I am writing a Java application to connect to a local light-weight java database. I would like to generate and present a HTML on the fly after selecting records from a database. At server side, I could easily use JSP/Servlet to do this. How can I do this on a desktop client machine using Java application? I do not want to install Apache web server on the desktop machine. Any help will be greatly appreciated. Thanks in advance.
    Dominic

    The way u need to generate your html pages depened on what u want to generate,
    anyway what i can help with, is how to display a generated page.
    u have to use JEditorPane with HTMLEditorKit and HTMLDocument to display any HTML.
    also u can use the methods provided with the above objects to generate your html format.
    I hope I helped.

  • HTML page generated by Netweaver studio is very big

    Hi,
    Is there any way to make the generated HTML pages (when developing a web dynpro application from Netweaver studio) smaller in size  ?
    It appears to be big even for a very simple hello world page.
    Thanks.
    Regards,
    Daniel

    No, I don't think so.
    The generated html code cann't be altered.
    Regards,
    Ashwani Kr Sharma

  • Applet:how to display a html-page generated by servlet?

    hi everybody,
    I have an applet which posts data do a servlet and receives a response from the servlet (html-code). can anybody please tell me if there is a possibility to display this received html-page?
    (I HAVE to use a post-request to the servler due to a lot of data to send...)
    all my applet-servlet-communication is within a session with a jsessionid.
    does anybody have a hint for me?
    thanks a lot in advance,
    frank

    One possibility is to have the servlet create a new .html file on the server and output the HTML code to that file. Then the servlet can pass the name of the file back to the applet, and the applet can useshowDocument(new URL(yourUrlHere), "_blank"); to display the page.
    Just a thought. Good luck!
    - Sheepy

  • Images stored in Application Data folder are not visible in HTML Page generated by AIR Application

    Hi Programmers,
    I have an AIR application where in I am capturing the images of persons via web cam and storing them in the Application Data folder of the users machine. I am successfully able to do so.
    However, when generating the report in the HTML format from within the AIR application, I use the image captured and give the absolute path. but some how the image doesnt appear in the browser, I get the icon for image not found.
    When I right click on the image, select property and copy the image path in new browser, I can see that image. Any thoughts on why this is happening?
    Thanks,
    Hitesh patel

    I tried changing the directory  as following in java class:
    File trgDir = new File("/tmp/myTarget/");
    File srcDir = new File("/tmp/mySource/");
    FileUtils.copyDirectory(srcDir, trgDir);
    but unfortunately  Adf mobile application does not support "File Utils. copy Directory" library
    so is there any way to circumvent this problem.
    Any help would be appreciated 

  • Inserting php into an Html page generated in DW CS4

    Hi I am having my first attempt at running some php .
    I have inserted the php code at the top of my page but it doesn't seem to be running and shows up in the source code?
    www.matthamiltonracing.com
    My host provider assures me it is supported.
    Any suggestions, some previous posts mention htaccess. pages???
    please advise
    many thanks
    Mark

    Bregent and Ned have offered the correct answer. Your webhosting server will not know if it has to run any php code unless the page has the .php extension.
    Here's a potential problem: If you are monkeying around with php, you'll need a testing server to upload your work to test. Dreamweaver won't allow you to test your work on your own computer, unless you set up Apache and create a testing server on it.
    One of the things I have done recently was to create a testing server on my own home network using an older computer. Works great, but you may not have an older computer handy. So here's what I did with my webhost:
    Generally your website has to be built so that its home page and its root is in /public_html/ on your server. You can "trick" Dreamweaver to think it's actually underneath that by creating a folder called /test that is underneath /public_html/ and nobody will be able to access your work as you work on it (unless you point a client to a specific page and specify the exact URL with the extra path for them to test). The advantage with this is that your testing server is set up to run php code with exactly the same php configuration as the server that will wind up serving your web page because it is your hosting server.
    So, while you are testing, create a /test folder. And any page that is supposed to be processed by your php server needs to end in the .php extension.
    Here's another trick:
    Regular HTML can end in .php as well. So can rename your entire website with .php if you have a number of pages that use it.
    You can also make your entire website .html, save just the pages that use php (this is what I do). So if I have a form that is going to do something that results in php, I'll make the form entrance html and the page that actually does the processing php.

  • How to read the content of html page? (written in JSP)

    The same with readContent("http://www.urcompany.com/readPage.html")

    The body of your topic post is not as clear as its subject.
    If you want to know how to write a Java program to retreive the contents served from a URL, see http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
    Also read Javadocs for java.net.URL and other relevant classes in java.net

  • HTML page slow to print

    In my application, there is the option of dynamically creating a HTML page by using certain selection criteria which are displyed as dropdowns and checkboxes at the top of the screen, pressing a 'RUN' button populates the report/page and then pressing 'PRINT' displays the report/page without the selection criteria so the option to file/print gives a clean printout, the problem is that if the selection criteria returns many rows the process of sending the report to the printer takes and excessively long time.
    As this is 'outside' the application and appears to me to be an issue with the length of time it takes to print a long html page I am not even sure where to start, if indeed it is a coding issue at all?
    Any ideas?

    I would suggest that you add the page processing stats (that Vikas has as examples on his examples page) to see where the time is really being consumed. He has two key stats; one for the server processing time and the other for the page rendering time.
    You can find info here:
    Calculating Page Load time
    Timing accept processing
    Earl

  • Printing html pages from JSF-JSC created pages

    Hi all,
    I have a serious problem with my web apps created with JSC using the JSF components. I designed a page full of tables, developed in vertical for a total of about three or four pages scrolling down.
    When I try to print the generated page from the browser (Firefox, Safari, Explorer) I always get just the first 'page', the entire webpage generated by my application is not saw as a long page, but just 'cutted' out.
    It seems like all JSF components have some problems being like layers or so...any hint? How can I print my html page generated by my web app?
    G

    Perhaps viewing the source of the generated html page will give you a clue to what's wrong..

  • Printing HTML PAGE

    Java has some Class to handle HTML Pages.
    I want to build a Button that is able to print the
    actual page of the Browser.
    I know about ClipBoard Class, SomeOne has
    some Idea how to do this?
    The idea is to create an applet that creates a button
    to print the actual HTML page.
    Some Idea how to do this, or where I can get this
    information?
    Angel -Portal

    Hello, I got your advise and I could write a small program
    to open a URL ,put it in a JEditorPane like you sad.
    public class EditorPaneHTMLViewer extends JEditorPane implements Printable {
    Inside the code I create a menu to change to portrait to landscape.
    But now I need somehow to print the HTML Page that I took from
    internet.
    I believe that I need to load the content of the JEditorPane to a graphics
    and then set to a Format of a Page and Print, but I do not know how yet.
    Some Hint.
    That true that I could do in a easiest way in JavaScript. But it is going to
    be possible to do landscape and portrait?
    Angel Portal: [email protected]

  • Problem redirecting to dynamically created htmls pages

    Hello All,
    Scenario is like this, i am creating the dynamic htmls pages, in the servlets
    and after creating the htmls pages in the servlets , the control passes to
    the jsp page, where i am including the html page that is created at the servlets,
    its works fine, but some time it shows me null exception at the jsp page, i.e
    it won't find the htmls pages, even they are created b'fore.
    I am using weblogic server 6.1 with sp3.
    Can anybody know what is the reason.

    Same problem here. Hopefully apple can get this fixed asap. I tried this with numbers and an Excel file and it worked just fine.
    Message was edited by: Spectre
    Message was edited by: Spectre

  • Dynamic HTML generation from a Dynamic PDF/XDP

    I was wondering if LiveCycle is able to generate a dynamic HTML page from a dynamic XDP/PDF form in LiveCycle ES ?
    I have read up on the help contents regarding HTML generation from PDF forms but its not mentioned anywhere whether LiveCycle supports the creation of an HTML page that mimics the dynamic behavior of a dynamic PDF/XDP form.
    Thanks in advance

    Yes it does ....
    Paul

Maybe you are looking for