Show HTML-Page

Hi!
How can I show a HTML-Page in Internet Explorer by clicking a Menu Item or a button?
Thx!

thx man, i'll try it
Try this:
http://www.javaworld.com/javaworld/javatips/jw-javatip6
.html

Similar Messages

  • Servlet showing HTML page

    I ma using Tomcat as standalone server.
    have servlet showing HTML page which has frames in it . All frames are linked to some html pages. These pages are stored in
    webapps/project directory and servlet is in
    \Tomcat 4.1\webapps\Project\WEB-INF\classes
    Tomcat can show the servlet with al frames witherror402 means it is unable to take html pages from webapps/project
    what's wrong
    my codes are
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Htmlservlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<HTML>\n"+
    "<HEAD> <TITLE>A frameset document</TITLE></HEAD>\n"+
    "<FRAMESET rows= \"20%,40%,40%\" >" +
    "<FRAME src=\"contents_of_frame3.html\" frameborder=\"0\" scrolling =\"no\">"+
      "<FRAMESET cols=\"*,200\">"+
          "<FRAME src=\"contents_of_frame1.html\" scrolling=\"no\">"+
          "<FRAME src=\"contents_of_frame2.gif\" >"+
    "</FRAMESET>"+
      "<FRAME src=\"contents_of_frame4.html\" frameborder=\"0\"> </FRAMESET>"+
    "</HTML>");
    }

    Hi,
    Please please try this
    <FRAME src=\"/contents_of_frame1.html\"
    thanks,
    nvseenu

  • Show HTML page on initial SAP Screen

    Hi all,
    I know how to change the image on the initial screen by maintain table SSM_CUST and upload *.gif with tcode SMW0.
    In SMW0 there is another part about HTML templates. I have uploaded an HTML page but I was not able to see this on the initial screen.
    Any way to do this or we can only show images on the initial screen ?
    Thanks
    Utku UTKAN

    Hi Mike,
    I don't mean the login screen, I mean the initial screen which comes after we logon.
    Thanks

  • JSP, downloading files and show html page

    I like to download files and show a html page on JSP.
    With the source following, downloading works well.
    But, it is just remained on the previous page, not showing the next html page.
    Someone tell me why is it?
    <%@ page import="java.io.*, java.net.URL"%><%
    String file_name = request.getParameter("file_name");
    File fileDir = new File(config.getServletContext().getRealPath("upload/"));
    File theFile = new File(fileDir, file_name);
    FileInputStream fin = new FileInputStream(theFile);
    response.setHeader("Content-Disposition","attachment; filename=\"" + theFile.getName()+"\"");
    response.setContentLength((int) theFile.length());
    BufferedInputStream bf = new BufferedInputStream(new FileInputStream(theFile), 8096);
    int i;
    while ((i=bf.read()) != -1)
    out.write(i);
    bf.close();
    out.close();
    %>
    <html>
    <head>
    <title>file download</title>
    </head>
    <body>
    <p align="center"> </p>
    <p align="center"><b><font face="Tahoma" color="#000000" size="2">You have
    successfully downloaded your file(<%=file_name%>)!</font></b></p>
    </body>
    </html>

    You's already close the JSP output stream befor you try and write your html confirmation, and I don't think browsers can provide the kind of functionality you're trying to demonstrate here. A browser will download the file and open it directly itself or using another application based on user input (e.g. save as, open file, etc.). Once the file is opened or downloaded, it's done!
    I think your best bet is to show a dialogue that the user's download should begin, then set the pages href w/ JS to the location of the file, same way other sites that allow you to download files do it. Go take a look at download.com or something like that.
    Hope that helps.

  • Viewing HTML Pages

    I used JEditorPane and JTextPane to show HTML Pages, but it did not work with the hyperlink texts. How do I solve this problem.

    You have to add a hyperlinklistener to handle user interactions.
    Code sample comes from http://www.exampledepot.com/
       try {
            String url = "http://java.sun.com";
            JEditorPane editorPane = new JEditorPane(url);
            editorPane.setEditable(false);
            editorPane.addHyperlinkListener(new MyHyperlinkListener());
        } catch (IOException e) {
        class MyHyperlinkListener implements HyperlinkListener {
            public void hyperlinkUpdate(HyperlinkEvent evt) {
                if (evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
                    JEditorPane pane = (JEditorPane)evt.getSource();
                    try {
                        // Show the new page in the editor pane.
                        pane.setPage(evt.getURL());
                    } catch (IOException e) {
        }

  • How to show a html page in a swing applet -- URGENT!!!

    Hi All,
    I'm trying to show a html page inside a swing applet... is it possible to do that?? if so is there any built-in classes available for that?? If anyone have some examples, plz help me with that....
    Thanks,
    Ragu

    i havent tested.. but this should work. i am no expert on these either, just to give you an example.. :-)
    JEditorPane ePane = new JEditorPane();
    HTMLEditorKit html = new HTMLEditorKit();
    ePane.setEditorKit(html);
    HTMLDocument htmld = new HTMLDocument();
    try{
    URL url = new URL("http://hcs.harvard.edu/~undercon/");
    InputStream ins = url.openStream();
    ePane.setDocument(htmld);
    html.read(ins,htmld, 0);
    this.getContentPane().add(new JScrollPane(ePane),BorderLayout.CENTER);
    catch(Exception e)
    e.printStackTrace();
    }

  • Not showing image in basic copy gif image icon and place on html page

    Trying to do a basic copy gif image icon and place it on a basic html page.
    The image shows up in my local page and shows on remote side but when I go to view in browser it does not show as a image. It shows the border but no image.
    The directions were (working with windows xp and IE8)
    Download the image to your C:\temp folder.
    4. Copy the gif file from your C:\temp folder and paste it in the same folder where your .html or .asp file is.
    I copied the image with right click save as in many different areas of computer. I even put on desktop.
    I add image and it shows on the site I am working in but when putting to remote side it does not view as an image on the browser.
    I have cleared cashe as well as pressed cntrl/refresh and still nothing.
    Other images work and show.
    on-line-vacations.com
    Thanks!

    Basic assumptions:
    You have Defined a site.
    All files reside within the defined site (including image files)
    All files use the appropriate file extensions, for example, image.gif
    You have saved and uploaded all site files to your server.
    You are EXACTLY naming the source image (no errant capital letters) in the link.
    If your other images are linking properly and showing, delete this image and insert it again (or re-link it to the image file within your site structure).
    Z

  • Image not showing up in HTML page

    I am running tomcat and in WEB-INF I have a simple HTML page that has is trying to show an image, but it doesn't show up.
    Under WEB-INF I have:
    mypage.html
    images/logo.png
    <html>
    <head>
    <link REL="SHORTCUT ICON" HREF="images/logo.png">
    </head>
    <body>
        <img src="images/logo.png">Hello World!
    </body>
    </html>The image does not show up when I try and view it from tomcat (i.e. http://localhost:8080/mypage.html)
    But it does show up if I just open up the HTML file with IE or Firefox.
    Any ideas what I am missing?

    The page is invoked via a Servlet Filter. So I have mapped in my web.xml:
    <error-page>
    <error-code>401</error-code>
    <location>foo.html</location>
    </error-page>
    In my servlet filter I have something like:
    HttpServletResponse response = (HttpServletResponse) resp;
    response.sendError(HttpServletResponse.SC_UNAUTHORIZED);..i have to check tomorrow when i am with the server again to see what the direct URL is to the image. Theoretically I'd assume:
    http://localhost/myapp/images/logo.png
    have to double check though

  • CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

    On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

    Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render
    Paste your jsp code in case you need further help
    Thanks,
    Ajit

  • To show a html page from java application

    hi everyone,
    I am trying to show a html page through java application. What i tried is Runtime.getRuntime().exec("start url"); this shows it opens default browser. It works fine for win Nt but does not work on win98 or linux.
    Is there any other way of achieving the same?
    can anyone help me in this regard. I am in urgent need of it. any reply will appreciate.

    I hope this works.
    String urlName = "http://forum.java.sun.com";
    String browser = "iexplore "; //EXE file name --> for iexplore.exe
    Runtime.getRuntime().exec(browser+urlName);

  • Rendered html pages in results file(html) not showing the images of origina

    hi,
    rendered html pages in results file(html) not showing the images of original page
    when i click on rendered html pages of different html section of a results file.
    both master and tested as well.
    thx
    pasumarthi

    By design, the report will not show the images, will not apply imported css or javascript files and will not show framesets. Also, in the case that an image is shown there is no guarantee that that was the image that was seen when recording/playback the script.
    The rendered html pages that are shown in the report only contains the structure of the html page. If an image is shown the image will be a reference to the location of the image and not a saved copy of the image as part of the report. If the website has a simple structure this can give an idea of what was different. If the website relies extensively on images, stylesheets or javascript to present the information then this report feature becomes less useful.
    Few weeks ago I requested a feature request in order to be able to see in the report the page exactly as it was when recording the script and exactly as it was when the script was played back. In the way that the feature request was written it specifies the use of screen captures or saving the page as a pdf file.
    Regards,
    Zuriel

  • Help. when I link html pages, they show up much larger in browser

    Hello,
    I designed 5 pages. When I look at them all through the browser individually in Dreamweaver CS4, they show up all correctly with a fixed width of 950.
    The problem comes when I link my navigation buttons to the html pages. When I click onto the links to the pages in the browser, three out of five of the pages become large. Instead of a 950 pixel width, all the content becomes bigger to fit my browser on my 15 inch screen.
    Can someone please help? I've been looking at this all day and need to get this done for a friend soon.
    I have saved all my files as document relative in Dreamweaver cs4. I have also defined the target of each link as "self".
    Thanks so much in advance.Would be super grateful for any help!
    Quianna

    Perhaps you could jsut paste the html for one of yoru problematic pages here so we can see it, altho tht may not be enough to really tell.
    The method you appear to have used to create the page is not the most desirable, but should have worked okay I would think.  And such a table ought not typically be fluid unless you went out of yoru way to make it so, so not sure what is happening.  Have to see the page.
    Another option is to upload your page, and its associated assets (images, cs js files etc) to http://www.getdropbox.com/ i jsut learned about
    this site recently on this forum and it seems a great idea for allowing us to see yoru page and help you.  Far bettr than pasting yoru code here!
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Having trouble showing an Iview in a HTML page with frames format

    Hi, I have a public webpage with 3 frames (top, navigation and content)
    In the content part has to be showed a portal anonymous page.
    I created the anonymous portal page that shows me a Webdynpro that I created, works fine. But when I put the link in the frame of the public webpage, is like the page entered in a loop and nothings is showed.
    But if in the frame I put the direct Webdynpro link works fine but the Custom colors that I set in portal doesnt works (and this is important).
    Any1 know how can I do to put an anonymous portal page inside a frame html without lossing the colors that I replace in the theme editor.

    sun1977 wrote:
    Hi,
    I have the Home page which has the usual static text. I was looking for the option of showing some data on that page like
    1. last data load date which will have to be selected from the database. Do we just create a dynamic action on the HTML page? Going to try this now. But just wondering if there is a proper way to do this?
    Just to be a little more specific. I have static text in <Table> tags in a plain HTML page. So within the <TABLE> tags which is in the text source, Can I call bind values or PL/SQL procedures?. Was looking for some ideas on this.There are several options. One is to create hidden page or application items set using queries in item source, computations or processes. These can be referenced in HTML region source (and other places) using the static text exact substitution notation:
    &P1_ITEM.Another is to replace the HTML region with a report region using a custom report template. If there are a number of related values to display this is likely to perform better as only one query is involved.
    Unless these values respond dynamically to changes on the page there is no call to use Dynamic Actions.
    2. Insert the audit field with the SSO username. Any idea which variable stores the username which maybe can be passed to the trigger to update before an insert/update.Use the built-in <tt>APP_USER</tt> substitution string. For this purpose normally in a database trigger including a fall-back value to cope if the table is modified outside of your APEX app:
    :new.modified_by := nvl(v('app_user'), user);

  • Toolkit for CreateJS showing blank HTML pages after publish on only some Flash projects?

    When I used Toolkit for CreateJS on Flash CC for the first time on a simple test movie, it worked fine. I've now created a new movie of a scrolling portfolio banner to go on my homepage. After hitting publish, it only shows a blank HTML page, with a white box the size of the stage.
    I even tried it again when removing the buttons and tweens and still no joy. Is there a way I can upload both files to show you and to see if there's a difference in which why the newer one isn't working. Both have more than one layer. The test one moves out of the screen, while the new one fades out. I've even tried putting an alpha effect on the test to see if it doesn't play, but it still works fine.
    Please help.
    Thanks
    Adam

    Do you see any errors listed in the output panel?

  • Portal Page showing HTML content

    Using standard Portal components, is there a way to create a
    portal page with 1) left hand set of links to html pages. 2) on
    the right side is a portlet showing the html page. This is what
    99% of websites do.
    The portal seems to have 1) single HTML portlet I would need a
    portlet and a new Portal page for each HTML.
    2) content areas with their own funky way of showing content
    i am looking for the simple web way to implement. I have though
    of writing a portlet that you feed it a parameter aka the file
    name of the HTML content that should appear.
    HELP!

    Hi,
    here's what I think works best:
    1. add an ADF Faces inlineFrame component to the page
    2. Have the inlineFrame source property pointing to a servlet that reads and streams the HTML from the database as an HTML document
    Frank

Maybe you are looking for