Display HTML page in portlet

I want to let my users place a file in a certian content area and then have a portlet display that content. Any ideas? Where can I start?

you can reference the file by using the folder name followed by the file name. You can point to the url either by adding an html portlet to your page and plugging in a anchor pointing to it or add a url item to a folder with the url of the file. Then render this folder as a portlet and plug it into your page. There are several other methods also depending on the exact results you are looking for.
Hope this helps

Similar Messages

  • Can I display html pages in flash player

    Hi all,
    Can I display html pages in flash player, i mean swf. Plz
    help me if it can be done. Can I call html pages in flash (i mean
    in flash player no new window)
    Thanks

    hi,
    Actullay i want the site to be opened with in the flash
    player, just like iframe in dreamweaver calling the external site
    in the mail html page. Plz Help me accessing external site page
    with in flash player
    Thanks

  • How to display HTML pages always in first rank in search result?

    I have a sharepoint 2010 site where search is configured, but when it is displaying the search result some time it is  showing the pdf files  in the first order and the html pages in the second order, I need to display html pages always
    in the first order.How can I accomplish it?

    Alex's link is by far the best one but this is an alternative if you wanted to read a bit more widely
    http://sharepointkaos.wordpress.com/2011/01/13/custom-ranking-model/
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Displaying HTML page when server is unavailable

    Hi,
    I would like to display the static html page when the server is down. For example when server maintanance is going on I would like to display html page with information
    Please let me know what is the process to achive this.
    Thanks

    You might also want to check Custom Error pages:
    http://help.sap.com/saphelp_nw70/helpdata/EN/9a/e74d426332bd30e10000000a155106/frameset.htm
    Regards,
    Siddhesh

  • I am using IFrame and displayed Html page

    Hi Friends
                        I am using IFrame and displayed Html page in flex4
                        In this page open to Firefox But not IE please help me.
                          Thanks
                           V.ChandraSekhar

    You have deleted your page, but you have not deleted your page?
    Which is it?
    If you never saved it it is gone. If you saved it in Lion (OSX 10.7) with Pages 09 v4.1, there should be versions available when you mouse overv the document name at the top of the window.
    Peter

  • Displaying external page as portlet

    How do I display an external page like 'http://www.wsj.com" as a opened page in a portlet as opposed to a link?

    You have 3 choices for doing this:
    1) You can use the dump URL portlet that comes with the PDK.
    2) If you want to show only part of a page (ie. get rid of advertisements and misc. other junk) you could build a PL/SQL portlet using UTL_HTTP to call the page, parse out the good stuff and display it as a portlet.
    3) If you are know your user population and know that they are using IE or newer versions of Netscape, you can make an HTML portlet, and add the URL as part of an Iframe, for example:
    <IFRAME src="http://www.yahoo.com" height=500 width=500></IFRAME>

  • Problem in displaying html page in JEditorPane....

    Hi All,
    i was trying to display a html page in a JEditorPane. i was able to do that when i'm displaying a html page from a local machine.. But when i try to get the page from some website, it giving me
    "exception access denied (java.net.SocketPermission www.java.sun.com resolve)"
    exception. But if i run the same code thru JBuilder, its working. But thru appletviewer or thru IE or Netscape its throwing the error.. Any suggestion or help is highly appreciated....
    Thanks
    Ragu

    Java Applets are very secure, what is good. Java applets are extremely secure
    what is bad. So Applet cannot open TCP connection to any host rather than its
    home host. So you cannot get the resources from any other server (what is common to
    HTTP).
    In JBuilder iit works cause JBuilder is used for development and security in deevelopment
    is not an issue. But it confuses then you see.
    vpanasenko_even

  • Displaying html page with in the applet

    I want to open an html page in the applet. If i use showDocument() of applet, it opens the html page in the browser, but i want to open the html page with in the applet(i.e., applet should display the html page). Is there any way which i can do the above thing.
    Thanks in advance

    Look at this sample:
    import java.awt.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.text.*;
    public class BrwsA extends JApplet
         JPanel      jpa = new JPanel();
         JEditorPane jed = new JEditorPane();
         JScrollPane jsp = new JScrollPane(jpa);
    public BrwsA()
         jpa.setLayout(new BorderLayout());
         jpa.add(jed);
         jpa.setPreferredSize(new Dimension(800,1000));
         jed.setEditable(false);
         jed.setContentType("text/html");
         jed.getEditorKit().createDefaultDocument();
         setContentPane(jsp);
    public void init()
         try
              URL url = new URL(getCodeBase(),"test.html");
              jed.setPage(url);
         catch(MalformedURLException e)
         catch(IOException e)
    }Noah

  • Displaying HTML page in an application

    Hello all,
    I want to display an html page in my application. I looked into HotJova HTML Component but Sun doesnt offer this component anymore. Does anyone have any idea of how can I complete this task.
    Any help will be appreciated.
    Thank you

    JTextPane

  • IPhone SDK - Display HTML page from WITHIN package

    Hi all,
    As part of my iPhone app, I want to display an HTML page.
    Now, I've got a browser component working just fine, and have no problem displaying anything on the web, but i don't know how to reference an html page that is WITHIN my application package.
    I'd much rather do it this way, so that my app can be used offline.
    I'm sure its a simple thing to do... anyone know what i need to do here to make this work?

    NSString *welcomeFile = [bundle pathForResource:@"welcome" ofType:@"html" inDirectory:@"files"];
    NSString *content = [NSString stringWithContentsOfURL:[NSURL fileURLWithPath:welcomeFile]];
    NSString *baseUrl = [bundle pathForResource:@"files" ofType:nil];
    [webView loadHTMLString:content baseURL:[NSURL fileURLWithPath:baseUrl]];

  • Displaying HTML page from JFrame

    Hi ,
    I have a JFrame GUI with menus and menu items. After Clicking on the Help Menu Item, I want to display a HTML page. Does anyone know of a function to display an HTML page?

    import javax.swing.*;
    import java.awt.*;
    import java.io.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    // This class is used in the Image Tool class when the help menu item is selected
    public class HelpMenu extends JInternalFrame implements HyperlinkListener{
    // A new JEditorPane to display the help html file in.     
    private JEditorPane jep;
         public HelpMenu () {
              super("Help Menu",
                        true, //resizable
                        true,     //closable
                        true,     //maximizable
                        true);     //iconifiable
              // Set the size and location of the frame
              setSize(500,500);
              setLocation(20,20);
              // create the JeditorPane
              jep = new JEditorPane( );
         jep.setEditable(false);
              // Make jep a scrollable pane
              JScrollPane jsp = new JScrollPane(jep);
         getContentPane( ).add(jsp, BorderLayout.CENTER);
              // Add a listener to listen for hyperlinks within the document
         jep.addHyperlinkListener(this);
         try {
         String HelpFile = "file:C:/Documents and Settings/Patrick/Desktop/Help.html";
         jep.setPage(HelpFile);
              // If the file can be loaded display the frame
              setVisible(true);
         catch(Exception e) {
              // The file could not be loaded.
              System.out.println(
                   "Could not open help page! Has it been deleted from: C:/Documents and Settings/Patrick/Desktop/");
              // If the file can not be loaded display an error message
              JFrame f = new JFrame();
         JOptionPane.showMessageDialog(f, "Could not open help page! Has it been deleted from: C:/Documents and Settings/Patrick/Desktop/",
                   "Help Menu", JOptionPane.WARNING_MESSAGE);
              // If the file cannot be loaded do not display a frame
              setVisible(false);
    public void hyperlinkUpdate(HyperlinkEvent he) {
    HyperlinkEvent.EventType type = he.getEventType( );
         if (type == HyperlinkEvent.EventType.ACTIVATED) {
    try {
    // set the page to show the selected section of the file
    jep.setPage(he.getURL( ));
    catch (FileNotFoundException e) {
    catch (Exception e) {
    }     

  • I want to display HTML Page in Forms10g?

    Please help me..., its urgent for me...
    how i embded HTML Page in Forms10g.

    Hi,
    use eg. http://forms.pjc.bean.over-blog.com/article-1890238.html
    to display simple HTML pages, only pure HTML is supported.
    There is a advanced HTML Browser, too...but I didnt find the URL.

  • Regarding displaying html page in a JEditorPane

    i want to display a html page in a JEditorPane but the problem is it is displying the page but the script part of html page is printed as it is in the pane . please tell the solution for it . i will be highly thankful to u.

    What you are doing exactly? you are displaying the html file into a JEditorPane or After displaying you are tring to Print it out in the Paper or what.
    If this the First Sinario then this code will help you.
    import javax.swing.*;
    import java.awt.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    public class Htmlexample extends JInternalFrame {
         //Constructor of Class.
         public Htmlexample () {
              //super(Title, Resizable, Closable, Maximizable, Iconifiable)
              super (title, true, true, true, true);
              setSize (500, 350);
              HtmlPane html = new HtmlPane ("Help/Keys.htm");     
              setContentPane (html);                    
              setVisible (true);
    //Following Class Show HTML Help inside an EditorPane.
    class HtmlPane extends JScrollPane implements HyperlinkListener {
         JEditorPane html;
         public HtmlPane (String filename) {
              try {
                   File f = new File (filename);          
                   String s = f.getAbsolutePath();          
                   s = "file:" + s;
                   URL url = new URL (s);               
                   html = new JEditorPane (s);          
                   html.setEditable (false);          
                   html.addHyperlinkListener (this);
                   JViewport vp = getViewport();     
                   vp.add (html);                    
              catch (MalformedURLException e) { }
              catch (IOException e) {     }
         //Function Perform By the HyperLinks of HTML Help File.
         public void hyperlinkUpdate (HyperlinkEvent e) {
              if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
                   linkActivated (e.getURL());
         //Function for Loading other HTML Pages in Your HTML Help.
         protected void linkActivated (URL u) {
              Cursor c = html.getCursor();
              Cursor waitCursor = Cursor.getPredefinedCursor (Cursor.WAIT_CURSOR);
              html.setCursor (waitCursor);
              SwingUtilities.invokeLater (new PageLoader (u, c));
         //Following Class Load Other Pages Included in Our HTML Help File.
         class PageLoader implements Runnable {
              //Constructor of Class.
              PageLoader (URL u, Cursor c) {
                   url = u;
                   cursor = c;
              public void run () {
                   if (url == null) {
                        html.setCursor (cursor);
                        Container parent = html.getParent();
                        parent.repaint();
                   else {
                        Document doc = html.getDocument();
                        try {
                             html.setPage (url);
                        catch (IOException ioe) {
                             html.setDocument (doc);
                             getToolkit().beep();
                        finally {
                             url = null;
                             SwingUtilities.invokeLater (this);
              URL url;
              Cursor cursor;
    }if there is any other issue Let me Know
    Thank you
    Jofin

  • Any Way to display HTML pages on Applet

    Hi All,
    Is there any way to show web pages on Applet?
    Is it possible ?

    I am not aware of a simple way to display HTML in an applet. However, I have used the JEditorPane to display HTML documents. Handling links, etc. with this component requires some effort. Also requires Swing.
    Have you considered using the applet to display a page on the browser. (i.e. getAppletContext().showDocument(URL, [frame name]))? Just an idea.
    Good luck.

  • Displaying HTML Page

    I am having problems getting my HTML file to actually display. I think I can retrieve the file properly - I'm not getting any errors saying I can't. But when I do retrieve it, I just get a white scrollpane, instead of a scrollpane containing the webpage it should be. The following code is for an object constructor that creates the window that shows the webpage. Any help would be greatly appreciated. Thanks.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.net.URL;
    import java.io.IOException;
    public class OnlineHelpWindow extends JFrame
         public OnlineHelpWindow()
              super("Online Help");
              Container c = getContentPane();
              JEditorPane editorPane = new JEditorPane();
              editorPane.setEditable(false);
              String s = null;
              try
                   String prefix = "file:" + System.getProperty("user.dir") + System.getProperty("file.separator");
                   URL url = new URL( prefix + "index.html" );
                   System.out.println(url);
              catch (Exception e )
                   JOptionPane.showMessageDialog(null, "Unable to load URL: " + s,
                                                                "Unable to load URL",JOptionPane.WARNING_MESSAGE);
              JScrollPane editorScrollPane = new JScrollPane(editorPane);
              editorScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
              editorScrollPane.setPreferredSize(new Dimension(250, 145));
              editorScrollPane.setMinimumSize(new Dimension(10, 10));
              c.add(editorScrollPane);
              pack();
              show();
    }

    I think you forgot to put the html page in the editor
    try putting the url in the constructor, so the url must be define first.
    JEditorPane editorPane = new JEditorPane(url);
    It should work
    Joey

Maybe you are looking for

  • How to convert Oracle function in UDB

    Hi , i am writing this function in oracle.Could you please convert this function in UDB because i am new in this and dont know how to use decode function in UDB Please following is the code for oracle. CREATE OR REPLACE function fun ( localex varchar

  • Airplay issue: Sound but no video

    Trying to use Airplay to watch Showtime Anytime. Able to get sound but no video.

  • Is it possible to Manage Sun Fire v60 without using Red Hat?

    I've been trying to enable a console connection via an Avocent dongle connected to the serial port using these directions: http://download.oracle.com/docs/cd/E19088-01/v65x.srvr/817-2025-13/chap2.html All I've been able to view is the BIOS output, an

  • RE: How do I access deployed TOOL libraries from mycode?

    Hi Martin, sorry for the late answer but I hope it is still helpful. First: In the workspace you make your distribution from, check whether you really have library icons. Second: Make the distribution and run it from the partition workshop. Startup s

  • Facetime phantom calls and calls that are not from who they say they are

    My wife has an iPhone 4 and twice in the last week Facetime calls that say they are coming from her mother have been originated by someone other than her mother. The second time this happened the stranger made an obscene gesture. Since Apple is routi