Rendering HTML output on Java 2D/3D Objects

Hi all, I want to read an HTML file and render an HTML output to the objects in Java 2D or Java 3D world.
For doing this, I am following the steps as
1> Read HTML file
2> Capture its output
3> Write captured output to the buffered image.
4> Use that buffered image to be shown on Java 2D/3D object as a texture.
How can I capture the HTML output?
If you have any other way, please suggest me.
Regards

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class captureHTML extends JPanel{
    public BufferedImage bufferedImage ;
    public Image image, capturedImage ;
    public Graphics2D g2d;
    public captureHTML() {
        capturedImage = capture("http://www.google.com");
        bufferedImage = new BufferedImage(1000,700,BufferedImage.TYPE_INT_RGB);
        g2d = bufferedImage.createGraphics();
        g2d.drawImage(capturedImage,0,0,this);
        image = bufferedImage.getScaledInstance
                    ((int)(-1),
                    (int)(-1), 
                    Image.SCALE_SMOOTH) ;
    public Image capture(String str)
        URL url;
        JEditorPane jep = null;
        try {
            url = new URL(str);
            try {
                jep = new JEditorPane(url);
                jep.setContentType("text/html");
                jep.setPage(url);
            } catch (IOException ex) {
                ex.printStackTrace();
        } catch (MalformedURLException ex) {
            ex.printStackTrace();
        Image jepImage = jep.createImage(500,500);
        return jepImage;
    public void paint(Graphics g)
            System.out.println("paint called");
            if (getSize().width <= 0 || getSize().height <= 0)
                return;
            Graphics2D g2 = (Graphics2D) g;
            if (image != null && isShowing()) 
                g2.drawImage(image, 0, 0, this);
    public static void main(String args[])
        JFrame f = new JFrame();
        int w = 1000;
        int h = 700;
        f.setSize(w, h);
        f.getContentPane().setSize(w, h);
        f.getContentPane().add(new captureHTML());
        f.setDefaultCloseOperation(1);
        f.setVisible(true);
}I Implemented the code as db suggested, I think it will work. But at the moment without any error I am getting only blank black screen. Please have a look at capture( ) method. I think there is a problem in this method but I cant figure out whats going wrong.
Regards

Similar Messages

  • Help: No Parameters, HTML Output from Java Servlet

    I have a Java Servlet that reads parameters passed from an HTML form and displays them to another HTML page. I know the servlet is being invoked; however, I am not seeing any HTML output. Sending the output to a file reveals the parameters are coming in as NULL as well.
    I attempted a simple sample app with the same results. Here is what I am running:
    The HTML Form:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>Collecting Three Parameters</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H1 ALIGN="CENTER">Collecting Three Parameters</H1>
    <FORM ACTION="ThreeParams">
    First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
    Second Parameter: <INPUT TYPE="TEXT" NAME="param2"><BR>
    Third Parameter: <INPUT TYPE="TEXT" NAME="param3"><BR>
    <CENTER><INPUT TYPE="SUBMIT"></CENTER>
    </FORM>
    </BODY>
    </HTML>
    The Java Code:
    public class ThreeParams extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Reading Three Request Parameters";
    out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
         "Transitional//EN\">\n" +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1 ALIGN=\"CENTER\">" + title + "</H1>\n" +
    "<UL>\n" +
    " <LI><B>param1</B>: "
    + request.getParameter("param1") + "\n" +
    " <LI><B>param2</B>: "
    + request.getParameter("param2") + "\n" +
    " <LI><B>param3</B>: "
    + request.getParameter("param3") + "\n" +
    "</UL>\n" +
    "</BODY></HTML>");
    What happens when I "submit" from the form is the same form reloads with the query string in the URL: "http://localhost:8080/ThreeParams/?param1=1&param2=2&param3=3"
    Any assistance with either (or both) would be thoroughly appreciated:
    a) why the parameters are not being passed correctly to the servlet
    b) why the HTML output page is not displayed
    Thanks in advance!
    - Steve

    I have found the answer to my problem listed in another thread.
    Thank you.

  • Stop desktop's title from getting rendered in the final HTML output

    Is there a way to stop the desktop's title value from being rendered and displayed in the HTML source of the page? I don't want to use a backing file to achieve this -- looking for a simple easy configuration to remove all the desktop property definitions from getting rendered to the final HTML output.
    Specifically trying to remove the title:
    <title >Microsite Desktop</title>
    <meta name="bea-portal-meta-skeleton" content="/framework/skeletons/testmicrositeskel"/>
    <meta name="bea-portal-meta-skin" content="/framework/skins/testcardsskin"/>
    <meta name="bea-portal-meta-skin-images" content="/framework/skins/testcardsskin/images"/>
    Edited by sjayas01 at 12/18/2007 8:38 AM

    Try this function.
    data: label type string.
    CALL FUNCTION 'DDIF_FIELDLABEL_GET'
      EXPORTING
        tabname              = 'MARA'
        FIELDNAME            = 'MATNR'
    *   LANGU                = SY-LANGU
    *   LFIELDNAME           = ' '
      IMPORTING
        LABEL                = label.
    Regards,
    Rich Heilman

  • Adding HTML output TO J3D

    Hi all;
    i want to show HTML page on a java 3D object say a on a face of a Cube or Sphere.
    plz suggest something..
    Thanks in advance!!

    Hi Shendi,
    Probable solution for doing this is as
    1> Try to capture HTML output
    2> Write the captured HTML output to the Buffered Image
    3> Use that buffered image for displaying it on Java 3D/2D Object.
    Hope this will work. Only thing is that the HTML page will not interact like in web browser, because 3D/2D deals with images.
    Regards

  • Missing a single space in html output

    Hello to all,
    take a look at the following code copied from a View
    <% DATA: eins TYPE STRING VALUE 'ClassEins',
             zwei TYPE STRING VALUE 'ClassZwei'. %>
    <span id="Test1" class="<%=eins%> ClassZwei">test it</span>
    <span id="Test2" class="ClassEins <%=zwei%>">test it</span>
    it works fine if compression is set to NONE, but if compression is set to 1 (remove spaces) or 2 (remove spaces, CR, LF) the html output looks like this:
    <span id="Test1" class="ClassEinsClassZwei">test it</span>
    <span id="Test2" class="ClassEins ClassZwei">test it</span>
    Where is the single space? What’s wrong? Why is the first space removed, but the second isn’t?

    Thilo,
    At this stage we are not planning a kernel patch, unless your business case is really pressing. (In which case update OSS message so that rethink why nein is the right answer.) We have actually spend a number of hours to find where this is stripped (by accident), and see that the price to fix this, is very high for us. The truth is that this is a minor problem that only happens when you active the additional compression, where our first suggestion would be to just skip the compression for this page. (All of this been said, we will keep it on the toDo list, and see if can get the resources at same stage to dive into kernel development again.)
    (Just for interest, not even myself could remember where some of this code is executed. Your problem provided a nice trip down memory lane!)
    As for the back tics, they are string literals, and are space sensitive in ABAP. An example:
      CONCATENATE 'a ' 'b ' 'c ' INTO s. --> s = "abc".
      CONCATENATE `a ` `b ` `c ` INTO s. --> s = "a b c ".
    The nice thing about this is that it is now possible to write in ABAP strings that contain <b>both</b> HTML and JavaScript all in one:
      s = `<body onload="myFunc('JSparm');">`.
    We use " and ' for the HTML and JavaScript, and the ` to build the ABAP string. Makes the Java colleagues just jealous of our writing style:)
    brian

  • Can SQL Developer be used for Oracle Support "HTML Output" Diag Scripts ?

    Hi All,
    Oracle Support has asked me to run a diagnostic script (OTL_Diag.sql for anyone familar with the script) that produces output in HTML format using SQL*Plus to help troubleshoot an OTL problem we are having. Unfortunately I don't have SQL*Plus installed and my company is not on board with me installing it because of the SQL*NET connection required. Instead I have access to SQL Developer 3.1.0.7. While this works fine for most situations I'm having problems generating the required .html output file that Support needs.
    I've tried runing the OTL_Diag.sql a couple of ways using SQL Developer. First, I opened the file from SQL Developer and using the Run Script functionality (F5) I executed the code that way. This method did give me an opportunity to input the necessary parms and it did create the 'start' of the HTML file on my (Windows) file system, but the script seemed to abort with a java error that indicated some sort of format error (sorry, I'm not a java person so I can't provide any more info, but I'll be glad to get the exact error message if anyone thinks that will help solve my issue).
    My second approach was to open a SQL Window where I typed in @C:\OTL_Diag.sql without quotes. This approach also gave me the opportunity to enter the necessary input parms and it seemed to end normally. It also created the 'start' of the diaganostic output file on my Windows file system, but it 'completed' before any of the 'real' diaganostic output was written to the .html file.
    The Metalink note clearly specifies that the OTL_Diag.sql script is to be run with SQL*Plus 10.2 or above so I don't think I can complain too loudly to Oracle about this...but given that I don't have access to this product (and it is useless for me to again ask to install it) I am hoping someone out there has some ideas or insight as to how I can use SQL Developer to execute this diag script in a manner that will produce the required .html output file.
    Thanks in advance to anyone taking time to read my post !!
    Jeff
    Edited by: user13111861 on Jul 10, 2012 6:43 PM
    Edited by: user13111861 on Jul 10, 2012 7:51 PM

    >
    As a result, at this point in time my only available tool to run the OTL_Diag.sql script (provided by Oracle Support) is SQL Developer
    >
    Then you will have to edit the script, break it into pieces, execute each piece manually and save the output to feed into the next piece as required based on what the script is actually doing. Don't post the script or contents as that will likely violate your support agreement.
    As I already mentioned the script may be using syntax and/or commands that are simply not supported by sql*developer. One likely area is the script may be producing intermediate output scripts that are then processed by a later portion of the script. If that is the case then my suggestion to execute the pieces manually should work but you will need to do some trial-and-error to see.
    Even if you appear to be successful you will still have an issue when you communicate the results of your 'test' to Oracle support and they determine you didn't follow their instructions to use the proper tool.
    Sounds like your management is either ignorant or incompetent so I suggest you cover yourself by documentating the instructions from Oracle support and the direct orders you were given to disregard those instructions. No need to discuss that issue further but clearly there are resources available somewhere in the org that has the proper privileges or they wouldn't be able to maintain and support the database. If they want to pay for support they should heed their advice. Nuff said.

  • Getting question marks in html output when xml file has an mdash or rsquo

    I have a java servlet that gets an xml file out of ifs, applies
    a style sheet to it, and sends it to the browser as html.
    I have:
    DOMparser parser = new DOMParser();
    parser.parse(XmlUrl);
    The characters ampersand, greater than, less than, and
    apostrophe work fine.
    HOWEVER, When the xml file has an mdash(&#X2014) or a rsquo
    (&#x2019) in it, my html output in IE shows up with question
    marks where these characters are supposed to be.
    Does anyone know what I can do to fix this? I don't understand
    why it would work with some special characters and not others?

    UPDATE
    Compiling from command line I found out that the class definition for oracle.oats.scripting.modules.basic.api.IteratingVUserScript is missing. Do you know what .jar file contains this class?
    Thanks.
    Fede.

  • Colour duplicate values in html output

    Hello,
    I am looking to colour duplicate values in an html output file. 
    I have written a folder comparison ps script which shows output as below:
    Name Length Version
    Name length and version are the column names
    Now there are many duplicate entries under name column which I need to highlight using any one colour. I have sorted the output under name using alphabetical order.
    I just need to highlight all duplicate values using a particular colour. 
    Thanks in advance.

    Posting my script here:
    # Get Start Time
    $startDTM = (Get-Date)
    $a = "<style>"
    $a = $a + "BODY{background-color:peachpuff;}"
    $a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}"
    $a = $a + "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}"
    $a = $a + "TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:PaleGoldenrod}"
    $a = $a + "</style>"
    $folderReference = Read-Host "Enter Reference Folder Name"
    $folderDifference = Read-Host "Enter Difference Folder Name"
    $FolderReferenceContents = Get-ChildItem $folderReference -Recurse | 
        where-object {-not $_.PSIsContainer}
    $FolderDifferenceContents = Get-ChildItem $folderDifference -Recurse | 
        where-object {-not $_.PSIsContainer}
    #get only files that are on reference folder not base folder
    $one = Compare-Object -ReferenceObject $FolderReferenceContents `
    -DifferenceObject $FolderDifferenceContents -Property ('Name', 'Length','Get-FileVersionInfo') -PassThru |
        where-object { $_.SideIndicator -eq '<='} | select Name, Length, LastWriteTime, VersionInfo
    #get only files that are on base folder not on reference
    $two = Compare-Object -ReferenceObject $FolderReferenceContents `
    -DifferenceObject $FolderDifferenceContents -Property ('Name', 'Length','Get-FileVersionInfo') -PassThru |
        where-object { $_.SideIndicator -eq '=>'} | select Name, Length, LastWriteTime, VersionInfo
    $three = $one + $two | sort-object -property Name | ConvertTo-HTML -Fragment 
    # Get End Time
    $endDTM = (Get-Date)
    # Echo Time elapsed
    $four = "Elapsed Time: $(($endDTM-$startDTM).totalseconds) seconds"
    ConvertTo-HTML -Head $a -Body "$one $two $three $four" -Title "Output" | Out-File C:\output.html

  • How to get the size of JSP html output?

    Hi,
    Is there a JSP method to get the size of JSP HTML output.
    e.g. I would like to print the size of the JSP e.g.
    Size of this page is <%=pageContext.getPageSize()%> Kb ???
    Any ideas? Thanks.
    George
    Edited by: googchro on Jan 5, 2010 4:45 PM

    Would you like to print "the size of this page is..." before or after you calculate the size of the page.
    Because adding that bit of text to the page will make the page bigger...
    Doing it in java, the best approach would probably to have a filter counting the number of bytes that gets sent to the writer/output stream.
    A client side tool measuring the amount of bytes received would probably be easier though.
    You can always look at the Content-length header sent with a response. Though you normally don't have access to that on the java/jsp side, as it is sent by the container.
    cheers,
    evnafets

  • Trying to add a java.awt.Choice object to a JTable

    Hi
    I am creating an app. which uses a JTable as the front end, displaying string data in all cells except the first column, which I need to make java.awt.Choice objects (or equivalent) - users will click the cell, a list of job numbers will be displayed and they click the one they want.
    Every time I run the app instead of a drop down list of job numbers I get the text:
    java.awt.Choice[choice0,0,0,0x0,invalid,current=K5000]
    I am unsure how to proceed.
    Any and all help appreciated - for reference my code at present is:
    Choice jobNumber = new Choice();
    jobNumber.addItem("K5000");
    Object[][] dataValues = {
    {jobNumbers[0], "A job title", new Integer(0), new Integer(0), new Integer(8), new Integer(8), new Integer(4), new Integer(0), new Integer(0)},
    where the JTable constructor is passed this array
    regards
    David

    Don't mix Swing and AWT!! Have a look at the JTable tutorial on this site.
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#combobox

  • Capture generated html output from jsf page in bean

    Hi Member,
    I have need to capture the html output coming form jsf page. means aftr rendering what html is displayed before user, we have need to get it in programm.
    like if we use:
    <h:dataTable......>
    <h:colum>heloo</h:column>
    </h:dataTable>
    then their ouput will be:
    <table>
    <tr><td>heloo</td></tr>
    </table>
    and i have need of these complete line with <table> ......</table>
    Please help me...
    Thanks
    Shailendra Kumar

    Thnx for quick reply.
    But i want to capture it in render response phase. May it will be possible??? Is render response phase is responsible for generation of HTML format?? If yes then how can we capture output coming from this phase.
    URLConnection if fine but it still hit server once. I don't want that. I want to store page html format during its view preparation for html.
    Thanks
    Shailendra Kumar

  • HTML Content in Powershell HTML Output

    How do I include HTML tags in the table output generated by the ConvertTo-HTML command?
    For example, if I had an array of objects like this:
    FriendlyName,URL
    Microsoft,www.microsoft.com
    Google,www.google.com
    Yahoo,www.yahoo.com
    How could I make my ConvertTo-Html output something like this:
    <a href="www.microsoft.com">Microsoft</a>
    <a href="www.google.com">Google</a>
    <a href="www.yahoo.com">Yahoo</a>
    I have already tried making another property on my objects (OutHTML) with a string of "<a href=" + [char]34 + $URL + [char]34 + ">" + $FriendlyName + "</a>"
    Unfortunately, ConvertTo-Html does its job too well and it converts all of my HTML tags to use &lt; and &gt; so that the < and > will display on the webpage!  Thanks for your help!

    Thank you, that looks like it does exactly what I need!  Can you tell me if I'm correctly understanding what's going on in their example?
    $pso = New-Object PSObject -Property @{
    SiteUrl = $spweb.url
    PageTitle= $PageTitle
    PageUrl = "<a href='$PagesUrl'>$PageTitle</a>"
    } | ConvertTo-Html
    Add-Type -AssemblyName System.Web
    [System.Web.HttpUtility]::HtmlDecode($pso) |
    Out-File \\myfolder\InventoryReports\$CurrentMonth.html
    At first, they generate the powershell object with the desired properties (including a property for the formatted hypertext output), which is then converted in place to HTML.  It then loads the .Net framework System.Web class so that they can access
    the HtmlDecode() method.  They pass the HTML'ified $pso to that method, which searches through $pso for any HTML special characters (the &gt, &lt, etc.) and replaces them with the actual characters, then writes the modified string out to a file.
     Thanks for your help!

  • How to render HTML files in Java?

    I've read a bit about rendering HTML files using JEditorPane, but been told it's quite limited, and doesn't handle many events other than Hyperlinks stuff...
    I heard that Java bean has a slight more advanced HTML renderer, is that right?
    The thing is that I'm hoping to create a simple (static) HTML editor using Java, but need something to render the HTML file...and I need more event handleling, e.g. mouse click on what element (text, image or table) of the rendered HTML file.
    Can someone please give me some ideas?

    If you just need to display the HTML page with link support, you can use the JEditorPane with the content type as text/html. Look up the Java Tutorial on this site (http://java.sun.com/docs/books/tutorial/uiswing/components/text.html) and the API docs for details on how to use it.

  • Sharepoint online multiline list colomn not rendering HTML out put

    Hi 
    I have list with multi line column with having multimedia options. my problem is i have created view and edited XSL  to format it. also i have added "escape out put =yes" for the column but no luck still column is rendering as HTML Tags witch
    is not rendering HTML formats in UI
    Following is my code for List view any help greatly appreciate.. 
    regards
    Radika
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document"
    meta:webpartpageexpansion="full"  %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities"
    Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI,
    Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> - 
    <SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
    <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:RssLink runat="server"/>
    </asp:content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
    <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
    <SharePoint:ModifySettingsLink runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
    <div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=37" width='6' height='1' alt="" data-accessibility-nocheck="true"/></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
    <WebPartPages:XsltListViewWebPart runat="server" ViewFlag="" ViewSelectorFetchAsync="False" InplaceSearchEnabled="True" ServerRender="False" ClientRender="False"
    InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="main.xsl" ViewGuid="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" EnableOriginalValue="False"
    DisplayName="NewsDisplay" ViewContentTypeId="0x" ListName="{17179938-EFC8-4DFE-92E9-CDE296D46919}" ListId="17179938-efc8-4dfe-92e9-cde296d46919" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID=""
    ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" Title="CT_RSSFeeds" FrameType="Default" SuppressWebPartChrome="False"
    Description="" IsIncluded="True" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True"
    AllowHide="True" IsVisible="True" TitleUrl="/sites/EFLDEV/Lists/CT_RSSFeeds" DetailLink="/sites/EFLDEV/Lists/CT_RSSFeeds" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall=""
    MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="False" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_d63d68ed_17d1_4cc9_bcf6_20dfed0fb269"
    ExportMode="NonSensitiveData" __MarkupType="vsattributemarkup" __WebPartId="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" __AllowXSLTEditing="true" __designer:CustomXsl="Fldtypes_mswhTitle.xsl;fldtypes_Ratings.xsl"
    WebPart="true" Height="" Width=""><ParameterBindings>
    <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
    <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
    <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
    <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
    </ParameterBindings>
    <Xsl>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">     <xsl:output method="html" indent="no"/>     <xsl:decimal-format NaN=""/>  
      <xsl:param name="dvt_apos">&apos;</xsl:param>     <xsl:variable name="dvt_1_automode">0</xsl:variable>     <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
            <xsl:call-template name="dvt_1"/>     </xsl:template>     
    <xsl:template name="dvt_1" ddwrt:ghost="" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:ddwrt2="urn:frontpage:internal">      
      <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>      
         <link rel="stylesheet" href="/sites/EFLDEV/Utillity/ES/page.css" type="text/css" media="screen" /> <link rel="stylesheet" href="/sites/EFLDEV/Utillity/ES/slider.css" type="text/css"
    media="screen" /> <script type="text/javascript" src="/sites/EFLDEV/Utillity/ES/jquery.easing.1.2.js"></script> <script src="/sites/EFLDEV/Utillity/ES/jquery.anythingslider.js" type="text/javascript"
    charset="utf-8"></script> <script type="text/javascript">         function formatText(index, panel) {           return index + &quot;&quot;;        
    }         $(function () {             $(&apos;.anythingSlider&apos;).anythingSlider({                 easing: &quot;easeInOutExpo&quot;,    
                autoPlay: true,                 delay: 3000,                 startStopped: false,                
    animationTime: 600,                 hashTags: true,                 buildNavigation: true,             pauseOnHover: true,        
    startText: &quot;Go&quot;,         stopText: &quot;Stop&quot;,     navigationFormatter: formatText             });             $(&quot;#slide-jump&quot;).click(function(){
                    $(&apos;.anythingSlider&apos;).anythingSlider(6);             });         });     </script> <div class="anythingSlider">
        <div class="wrapper">         <ul>         <xsl:call-template name="dvt_1.body">             <xsl:with-param name="Rows"
    select="$Rows" />             </xsl:call-template>         </ul>             </div>         </div>     </xsl:template>
        <xsl:template name="dvt_1.body">         <xsl:param name="Rows" />         <xsl:for-each select="$Rows">    
            <xsl:call-template name="dvt_1.rowview" />         </xsl:for-each>     </xsl:template>     
    <xsl:template name="dvt_1.rowview" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">         <li>         <div class="textSlide">
    <!-- display the item title and a link to the item --><h3><a href="/{@FileDirRef}/DispForm.aspx?ID={@ID}" title="{@ItemTitle}"><xsl:value-of select="@ItemTitle" /></a></h3> <!-- display the
    body of the item  -->    <div><xsl:value-of select="@ItemDescription" disable-output-escaping="yes" /></div>     </div>     </li></xsl:template> 
    </xsl:stylesheet></Xsl>
    <DataFields>
    </DataFields>
    <XmlDefinition>
    <View Name="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" Type="HTML" DisplayName="NewsDisplay" Url="/sites/EFLDEV/Lists/CT_RSSFeeds/NewsDisplay.aspx" Level="1" BaseViewID="1"
    ContentTypeID="0x" ImageUrl="/_layouts/15/images/generic.png?rev=37" >
    <Query/>
    <ViewFields>
    <FieldRef Name="LinkTitle"/>
    <FieldRef Name="ChannelID"/>
    <FieldRef Name="Tag"/>
    <FieldRef Name="Created1"/>
    <FieldRef Name="ItemTitle"/>
    <FieldRef Name="ID"/>
    <FieldRef Name="ItemDescription"/>
    </ViewFields>
    <RowLimit Paged="TRUE">30</RowLimit>
    <Aggregations Value="Off"/>
    <JSLink>clienttemplates.js</JSLink>
    <XslLink Default="TRUE">main.xsl</XslLink>
    <Toolbar Type="Standard"/>
    </View>
    </XmlDefinition>
    </WebPartPages:XsltListViewWebPart>
    </ZoneTemplate></WebPartPages:WebPartZone>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
    <SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
    <SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
      <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
    </asp:Content>

    Hi,
    In SharePoint Online 2013, we can use jQuery to convert “&lt”  to “<” and  convert “&gt” to “>”.
    The following code for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    $(".ms-rtestate-field").each(function(){
    var $this = $(this).find("p");
    if ($this.length>0) {
    $this.each(function(){
    $(this).html($(this).html().replace('&lt;', '<').replace('&gt;', '>'));
    </script>
    We can also use JSLink to customize the display view.
    http://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Java and COM Object out parameters

    I have a COM object written in C++ that can't be modified. It has several methods with output parameters.
    Can java create an instance of the COM object and pass a reference to a Variant in this case or any objects to be filled by the COM object? My output parameter keeps coming back null, but I know that the COM object is working.
    Bill

    You didn't say anything about how you are bridging java <-> COM.
    If it's via JNI, one way you could deal with this is to write a "wrapper" dll that can speak COM, but which can turn the output data into something more palatable to java - say an object that the wrapper can return.

Maybe you are looking for

  • 10g Report service.

    hi, I am unable to restart 10g report service. My report server is hanging most of the time. I am using spreadsheet in reports. if the report data is big the report service hangs. I tried to restart the report service from the Application server, but

  • Photoshop: How to change program language from national to English?

    Hello, I've just installed photoshop from the Cloud. I reside in Poland but need an English version of the program. My version is now Polish - how do I change that? Please help asap, I don't understand a word!

  • Ibook give power button symbol and forces shut down...why?

    I will be using my ibook for maybe 5mins less sometimes, and then all of a sudden the whole screen goes grey and a box with the power button symbol comes up and says that i have to forcable shut down my computer. This happens even when plugged in and

  • Accountacy type question

    I am from a data analysis background and have used Oracle tools before. I am not an accountant but I am sure some of you have worked in accountacy. For Receivables in Oracle, do companies typically collect and personal data from their customers. From

  • IAS vs Allaire ColdFusion

    Somebody knows something about benchmarks, features, comparisons, between Allaire Coldfusion & Oracle iAS. Best regards.