Import external HTML contents to JSP

Hi,
Anybody knows if the WLW has a JSP tag that can be used to import external HTML
contents to my current JSPs? Something similar to JSTL import.
Thanks
Qiu

Qiu--
WLW doesn't have one specifically.
You can certainly use that tag from the Jakarta standard tags 1.0 implementation of JSTL -- this
version does not require JSP 2.0 and can run on a 2.3 Servlet container.
Hope that helps...
Eddie
Shiye Qiu wrote:
Hi,
Anybody knows if the WLW has a JSP tag that can be used to import external HTML
contents to my current JSPs? Something similar to JSTL import.
Thanks
Qiu

Similar Messages

  • Search function for external html content

    Hi all,
    i have got a Flash Projector which is to be deployed on
    DC/DVD rom. I am using an XML menu to load various chapters and
    sections of html content, images etc. The client is now asking for
    the capability to search within the "books" content.
    Is there any way of doing this? I have found an Extension
    that allows me to search within a text field, but what about
    external content files?
    Please help. I've had a quick look at Director, but I can't
    see any guarantee that that product will give me an easier
    solution, not to mention the weeks or relearning and
    redeveloping...

    You probably need to read all the data into Flash and do the
    searching in Actionscript.
    Director as I recall has better access to the OS so it could
    potentially read a local database. However you should continue to
    consider how to accomplish in Flash.
    If you want to explore accomplishing the same with Flash then
    look at third party products such as Zinc that will allow you to
    get to the OS.

  • Is there a way to display external HTML content inside a SWF movie?

    IE if i wanted to have an 800x600 flash movie that i could display cnn.com or something of that sort.  Is it possible?

    A second option is to display the HTML content over the top of the Flash content.
    If is project is to be displayed as a Web page... it's all HTML anyway.... some of which may be Flash content, some that is regular HTML content. So it's not that hard to add in a little more regular HTML content.
    In your Flash movie, leave a blank space with the exact dimensions/location of the HTML content you want to display.
    Then using HTML/CSS z-indexing, stack the HTML content over the top of that blank space... making it LOOK like the HTML is a part of the Flash.
    If you want to display part of another Web site like cnn.com, you could do that in an iframe.
    Z-indexing info here:
    http://www.w3schools.com/cssref/pr_pos_z-index.asp
    http://webdesign.about.com/cs/css/a/aazindex.htm
    and the iframe here:
    http://www.w3schools.com/tags/tag_iframe.asp
    Best wishes,
    Adninjastrator

  • Problem in loading external HTML content using SpryHTMLDataSet in Firefox

    I have a very simple placement of the contents of an HTML DIV within a subsidiary HTML file (statespecificassets.html) into a main HTML document, using SpryHTMLDataSet in Dreamweaver CS4.
    The relevant bits of code in the main HTML doc:
    In the header:
    <script src="../../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="../../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.HTMLDataSet("../../statespecificassets.html", "NN_Data_s3a");
    ds1.setColumnType("column0", "html");
    //-->
    </script>
    And at the point of inclusion of the external DIV:
    <div spry:region="ds1" class="StackedContainers">
             <div spry:repeat="ds1" class="RowContainer">
                <div class="RowColumn" style="background-color: #D7DF21;">{column0}</div>
             </div>
          </div>
    The problem: This works fine in Safari 4.0 on a Mac, and IE7 on a PC. It doesn't work in Firefox 3.0.11 (latest version) on Mac or PC: In firefox the reference content simply doesn't load. The only way I can get it to work in Firefox is if I place the main HTML doc and its subsidiary reference HTML file in exactly the same directory/ on the same level, and adjust the script reference accordingly ( var ds1 = new Spry.Data.HTMLDataSet("statespecificassets.html", "NN_Data_s3a"); ) ...But I can't/ don't want to alter my directory structure, because multiple files in other directories will need to use the reference file.
    Is there some other way of making it all-browser compatible -- possibly by adjusting a relevant bit of code in SpryHTMLDataSet.js in the Spry Assets? .. I've attached the SpryHTMLDataSet.js file for reference.
    Thank you to any kind soul who might have the nous to solve this.

    This is the latest version of SpryHTMLDataSet: http://labs.adobe.com/technologies/spry/preview/SpryHTMLDataSet.js
    Check out if works for, if not, please provide us with a online url.

  • Include html content in jsp

    Hi ,
    I have the html data and need to include in the jsp .
    eg :
    String htmldata = " <html><body>testdata </body></html>";
    how can i display this htmldata in the jsp . I mean I need this data in html format ( testdata ) and should not see all html tags in the explorer.
    Suggest me if you know anything.
    Thanks in advance.
    - bregoty

    You have the right idea, but you need to specify the escapeXml attribute on the c:out tag to be false. It defaults to true, and this means that when c:out encounters special characters it tries to display as-is rather, which is why you saw your HTML formatting. Set the escapeXml attribute to false and this should solve your problem.
    <table width=100% cellspacing=0 cellpadding=5>
         <c:forEach items="${myBean}" var="myDB">
         <tr height=10px>
              <td>
                   <c:out value="${myDB.htmldata}" escapeXml="false" />
              </td>
         </tr>
    </table>

  • External HTML in SWF

    Hi All,
    I know it is possible to create a box in Flex Builder / Flash builder in which you can run an external website.
    I used several tools, but all of them make use of the html file which is generated by Flash Builder.
    However I need to have an SWF in which an external website (preferably using an iFrame) is loaded.
    So I am looking for a way to place external html content (including javascript tags) into an SWF file.
    Can anyone help me with a tool or a way to create an SWF file with external HTML / Java running IN it
    Best

    With Flash, you can't do this.
    Just with FlashBuilder and Air (something like HTMLLoader  , not sure now)
    I mean loading in a movieclip..
    Of course you can open a page to display in a browser.

  • Html fragments within JSP code

    Hi
    I'm not a developer, but need to create some JSP pages to sit within the site page structure.
    I was originally told i had to strip out the following tags....
    <html> <head> and <body>
    And just use the bare bones layout tags.
    But i have created a small piece of functionality that relies on calling a javascript function from within the <body> tag....
    Is it so bad to leave in this <body> tag in the page fragment?
    I'm not even sure if this is the standard way to create JSP pages but if anyone can offer any advice that would be great.

    There is no requirement to strip out the html or body tags, or any tags for that matter. In fact, JSP isn't specific to HTML content. JSPs can be used for XML, WML, or some proprietary client content markup.
    JSP pages are simply dynamically generated pages to define it quite unofficially and non-technically.
    Your topic seems to be one of web content development. This forum is dedicated to the Web Application Framework. I'm not sure what your challenges are, but you will likely find more successful guidance on a forum that is focused on web design or general JSP technology.
    But to answer your question, you can keep your html based tags in the JSP.
    craig

  • Urgent - import an html( which is in cluster) in jsp

    Hi All,
    here is my problem:
    1. I have a sample.jsp in app server.
    2. I have add.html in web server.
    3. these two servers are clustered
    4. i want to import this static html in to jsp.
    i am unable to include html file in webser
    i tried like this <jsp:include page="<%=req.getContextPath()%>/add.html" />
    how to add a html file in jsp. and that html is in clustered evironment.
    Please help me to slove this
    Thanks in advance......
    NG

    When using <jsp:include> you don't need to specify the root context path.
    <jsp:include> treats / as the root context for this web app (ie its already in this context)
    <jsp:include page="/add.html"/>You need to include the context path when you are generating URLs for the client which knows nothing about the web application context.

  • Writing Html Content into PDF using JSP

    Dear All,
    I am using JSP to generate Employee payslip dynamically. Presently i am diplaying payslip as on-screen display.
    Here i want to give option "Save as PDF". I am able to create PDF file using IText Libraries. i want to integrate HTML code into the PDF file.
    Writing HTML Content (using HTML Tags) into PDF.

    Well it is a difficult ask and i believe we are trying to re-invent the wheel
    Just to make my life simple i could have choosen either sample API given below to serve my cause
    1).[http://xmlgraphics.apache.org/fop/] (Apache FOP one can simply write an XSL template of their and then substitute the values from respective DTO's by using XSL - XML transformations and can generate content in different formats which includes PDF aswell)
    2).[http://jasperforge.org/plugins/project/project_home.php?group_id=102] (Just design a simple report template using iReport and create a jrxml files and write a small code snipett such that you can pass few details at the runtime and can export the report in different formats which includes PDF aswell)
    3).[http://www.object-refinery.com/jfreereport/] (Is much similar to what jasper offers in order to compile these you can either use pentaho product IDE or BEA/Oracle Actuate report tools)
    You can simply try searching for different examples for getting more help on using the respective API's
    Hope that helps :)
    REGARDS,
    RaHuL

  • Render xml and html content type in single jsp

    I have 2 jsps, one jsp(a.jsp) is throwing content-type as HTML and other JSP(b.jsp) is throwing content-type as xml. I am making use of xsl to render the xml content in html format. But the problem is that i want to include b.jsp in a.jsp, and when i do so b.jsp doesn't make use of xsl for its rendering rather it displays the contents haphazardly.
    Plese help if somebody knows the solution.

    Below the following line ..
    <html:form action="addContact">Add this new form field..
    <html:hidden name="flag" value="0"/>Needless to say that this String variable flag should be defined in your ActionForm.
    Next, instead of ...
    <html:submit property="parameter"><bean:message key="ok.company" /></html:submit>Put this ...
    <input type="button" name="xyz" onClick="callSubmit(1);" value='<bean:message key="ok.company" />'>Then add a JS function as below ...
    <script>
    function callSubmit(flg)
         document.forms[0].flag.value=flg;
         document.forms[0].submit();
    </script>Finally in your ActionServlet, you need to find the value of the ActionForm variable flag via request.getParameter("flag").
    In case the value is set to 1, then it means that you need to send the particular row to DB. You may add additional flag values to correctly identify theparticular row which you may want to send to DB.
    Hope you got it.
    -Rohit

  • Can't create dynamic html elements with jsp????? important

    Hi All,
    I am having problem creating dynamic html elements with jsp tags, i have tried to use EL and java scriplet, both of them don't work.
    i am trying to create dynamic menu in my "rightMenu.jspf", based on, if user has logged in or not.
    some like this!
    <jsp:if test ="${validUser == null}">
    some simple text menu here
    </jsp:if>
    but it is not working. it simply loading all and images with in statement, regardless of whether user has logged in or not. i think some how if statement is not working properly.
    "validUser" is a session bean, which is not creating at this point, it will created when user will log in successfully. and also this session bean does not exist at the page, where i am trying to check that .
    Is there any way to create dynamic values in jsp. It is really important, is there any body who help me in this matter. i would be really grateful.
    zaman

    hi jaspre,
    thanks for replying me. you know what, is it not something wrong with web.xml file. i remember once, i deleted some from there, a property with "*.jsp". i can't remember what exactly was it though.
    all if statements works on files ending with extension ".jsp" but don't work only on with extension ".jspf". there must be to do with this.
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <servlet>
    <servlet-name>ValidateServlet</servlet-name>
    <servlet-class>ValidateServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ValidateServlet</servlet-name>
    <url-pattern>/ValidateServlet</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>dwr-invoker</servlet-name>
    <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>pollAndCometEnabled</param-name>
    <param-value>true</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>dwr-invoker</servlet-name>
    <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
         <welcome-file>
    main.jsp
    </welcome-file>
    </welcome-file-list>
    </web-app>
    if any one can figure it out. i would be grateful.
    zaman

  • Problem when importing HTML code to JSP

    When I copy HTML code to JSP strange thing happens - "It's" became "It?s". But that's not all. I changed "It?s" to "It's", but when I run the JSP output on the screen is still "It?s".
    Why does this happens?
    What to do?

    Pls state the server, browser and complete code snippet

  • External HTML editor for RH

    Hi all,
    I would be interested in hearing of any external HTML editors
    that RH users like using with RH instead of its internal editor.
    Somebody please suggest a free (or almost free) HTML editor
    that features lots of features, eg, hiliting, split Design/HTML
    windows, clean XHTML code and checker.
    Wasn't there once some browser called Mozila? Or was it
    called Netscape?
    Tia
    - avi

    >> RH MVPS? Adobe Community Expert is the term. There's
    no such term as RH MVPS.
    Right, now they are called Adobe Community Experts.
    >> As soon as you open the topic in RH's editor it is
    going to rewrite the code.
    You know what, I don't care if RH rewrites the code, just as
    long as RH leaves the result appearance looking nice, i.e., it
    doesn't smash up the appearance .
    >> Go back to your original post here. What is it that
    is missing in the RH editor? It will not be the cleaner code. RH7
    cleaned up a lot and I expect more from RH8. But until then RH will
    rewrite the code so I cannot see the benefit.
    It's been a while now before I gave up in disgust, and went
    to writing in Word. But I had expected to be able to work in WSYWYG
    like in MEW or Word, with powerful style management. I expected
    there to be an easy access Styles side pane. There is not. The
    numbered lists were not reliable; they restarted when they were not
    supposed to. Both numbered and bulleted lists get confused about
    their indentation. It's lucky that I once taught myself MEW with
    HTML/CSS , so after a short refresher I could go into the HTML view
    and clean up all the code and make the lists the way they are
    supposed to be. But since I am at a new client and only working
    there at 100 hr/month, I had to show some real content output, and
    fast, and so I had no more time for RH trial and error. So I went
    back to Word (-- 2007, which I also did not know, but since I am
    (supposed to be) a Word 2003 guru I knew what I was looking for and
    that all the features are supposed to exist -- ) and wrote my first
    drafts with that.
    Actually, I am so shocked at RH's bad WSYWGY editor, if I had
    any choice I would recommend to my client to look for something
    better (if such a thing exists -- dare I mention Flare...), but
    since RH is an important TW skill, I want to add it to my skills
    list. So if my client has recommended using RH, this is a good
    opportunity to learn RH on their account.
    I have a feeling that I am eventually going to make a full
    circle, i.e., either I won't find cheap/free HTML editor taht does
    want I want, or even if I do, I will eventually run into the
    problems you mention, and I will end up writing in raw HTML, just
    as you say.
    Actually, on 2nd thoughts, I also have to be honest with my
    client, and I don't think they would be happy to hear that a guy
    who takes over from me at some point, or is hired in addition to
    me, would have to write HTML/CSS. They would want to hear that
    there is some type of WSYWYG solution for RH, either internal or
    external.
    Tnx,
    - avi

  • Include external html trough code in a custom tag

    Hi,
    I have a custom tag. The component class (say MyComponentUI) for my custom component extends UIComponentBase.
    I want to include an external html page, which url is formed using the content of an attribute of my tag (for example, the "value" attribute), through the MyComponentUI code.
    Can anyone give me some help ?
    Pietro

    That's actually the same result as you get with a normal include - The method I suggested is a dynamic include similar to the <jsp:include> tag, not the <%@ include %> tag.
    When you use a dynamic include, the included page is compiled and 'invoked' as serarately, and the result is what gets included, not the actual source. To get the behaviour you want would require an include directive (the <%@ include %> tag) which I don't think has an equivalence you can use inside a custom tag.
    What you can do is pass attributes from the tag class like this:
    pageContext.setAttribute(<name>, <object>, pageContext.REQUEST_SCOPE);
    and then remove them after the include using pageContext.removeAttribute.
    I'm not certain, but this implies that if you declare your variables with a <jsp:usebean> tag with request scope, instead of normal Java variable declarations, you should be able to use them in the page included by the custom tag.
    *** in the jsp ***
    <jsp:useBean id="myVar" scope="request" class="java.lang.String" />
    <% myVar = "Something"; %>
    // Now call the tag which uses the pageContext.include() mehtod.
    *** end ***
    *** in the include ***
    <jsp:useBean id="myVar" scope="request" class="java.lang.String" />
    <%= myVar + " something else" %>
    *** end ***
    Let me know if it works.

  • Import existing web content.

    Hello,
    We have an existing internal web site that I would like to bring into Portal Page Groups. The content is mostly static HTML with relatively linked images and docs. Is there a script or procedure for doing this?
    Thanks for any assistance.

    To import existing Web content, OracleAS Portal offers a number of content integration technologies (ZIP files, WebDAV, Omniportlet, and APIs) which may help you migrate your existing Portal content/static content to OracleAS Portal:
    1) ZIP file item type (accessible from the add item wizard) - allows you to upload static content and associated images very easily into a portal page/page group - all in just one single operation. Zip File items make it very simple to stage and maintain formerly static HTML Web sites.
    2) WebDAV i.e. drag and drop the content. You can set a default region for which the content ends up in. More information is available at this link below:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/PUBLISH_CONTMGMT/TECHNOTE_WEBDAV.HTML
    3) From Portal version 9.0.2.6 onwards, content area APIs are available. See the portalstudio link below for more details.
    http://portalstudio.oracle.com/servlet/page?_pageid=2746&_dad=ops&_schema=OPSTUDIO&12657_RELEASE2PLSQLHOME_39847486.p_subid=250746&12657_RELEASE2PLSQLHOME_39847486.p_sub_siteid=73&12657_RELEASE2PLSQLHOME_39847486.p_edit=0
    4) Omniportlet & Web Clipping: Web Clipping may be considered for use as an intermediate step to display data from an external site within your Oracle Portal. More information here:
    http://portalstudio.oracle.com/servlet/page?_pageid=350&_dad=ops&_schema=OPSTUDIO&12678_PDKHOME902_39847486.p_subid=350276&12678_PDKHOME902_39847486.p_sub_siteid=73&12678_PDKHOME902_39847486.p_edit=0
    Additional information on content integration solutions (not necessarily directly related to your issue) can also be found here on PortalCenter.
    http://portalstudio.oracle.com/servlet/page?_pageid=478&_dad=ops&_schema=OPSTUDIO&7655_MAINPAGE_39847486.p_subid=33750&7655_MAINPAGE_39847486.p_sub_siteid=73&7655_MAINPAGE_39847486.p_edit=0
    Best Regards,
    Harry

Maybe you are looking for

  • List all fonts used in the illustrator document

    Hi All, Having searched google I can't seem to find what I am after but am hoping someone here might be able to help me. Due to a recent issue with a designer using a font that wasn't part of the brand guidelines for a particular company we would now

  • Adobe Interactive Form is displayed in Read Only mode

    Hi All, I created Adobe Interactive Form in SFP. The following properties are set to the form. Layout Type -ZCI Layout Preview Type - Interactive Form XDP Preview Format - Acrobat 7.0.5 Dynamic PDF In PDF preview tab, I can enter data into the Text F

  • I need internet explorer for mac, what should I do?

    I need internet explorer for mac, what should I do?

  • Template Help

    Hello all, I'm working on making a web site as easy to update as possible. I've got this site set up with PHP and MySQL using dreamweaver 8. I've set it up with a template so all pages can be updated and identical to every other page in design and la

  • Z_BIW_CSKS table does not exist

    I am going through the BW310 and doing the exercises listed in the documentation. I am stuck on a step where I have just finished creating a Global Transfer Routine (in ABAP) for one of my InfoObjects (Cost Center Master Data) and now I am trying to