<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Pretty printing on a jsp page</title>
    <link>http://www.mapleprimes.com/questions/42174-Pretty-Printing-On-A-Jsp-Page</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 09:30:53 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 09:30:53 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Pretty printing on a jsp page</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Pretty printing on a jsp page</title>
      <link>http://www.mapleprimes.com/questions/42174-Pretty-Printing-On-A-Jsp-Page</link>
    </image>
    <item>
      <title>MapleNet JSP PrettyPrinting</title>
      <link>http://www.mapleprimes.com/questions/42174-Pretty-Printing-On-A-Jsp-Page?ref=Feed:MaplePrimes:Pretty printing on a jsp page:Comments#answer78748</link>
      <itunes:summary>Currently there is no simple interface for generating pretty printed equations in a JSP page.

It is possible to combine output from MapleNet 10.5 with the publicly available MathML viewer to view generated output.
You could add something similar to the following HTML Applet snippet to your JSP.

&lt;pre&gt;
  &amp;lt;applet code=com.maplesoft.mathmlviewer
          width="500" 
          height="200"
          codebase="http://www.maplesoft.com/standards/MathML/applets/MathMLViewer/classes"&amp;gt;
    &amp;lt;param name="eq" 
           value=
        "&amp;lt;maple:statement safeHTML="false" quotes="false" &amp;gt;
          MathML[ExportContent](doInt())
         &amp;lt;/maple:statement&amp;gt;"&amp;gt;
    &amp;lt;/applet&amp;gt;
&lt;/pre&gt;

Convert the Maple expression with the MathML[ExportContent]() function into a MathML string.
The attribute &lt;b&gt;safeHTML='false'&lt;/b&gt; prevents MapleNet from converting the MathML into HTML entities such as &amp;amp;lt;, &amp;amp;gt; etc
The &lt;b&gt;quotes='false'&lt;/b&gt; attribute strips the leading and trailing double quotes from the generated MathML string.

The code for the MathML viewer is accessible using the URL shown in the codebase parameter.
Note: not all browser support the &amp;lt;applet&amp;gt; tag. Older browsers may use the &amp;lt;object&amp;gt; or &amp;lt;embed&amp;gt; tags.

Bill
</itunes:summary>
      <description>Currently there is no simple interface for generating pretty printed equations in a JSP page.

It is possible to combine output from MapleNet 10.5 with the publicly available MathML viewer to view generated output.
You could add something similar to the following HTML Applet snippet to your JSP.

&lt;pre&gt;
  &amp;lt;applet code=com.maplesoft.mathmlviewer
          width="500" 
          height="200"
          codebase="http://www.maplesoft.com/standards/MathML/applets/MathMLViewer/classes"&amp;gt;
    &amp;lt;param name="eq" 
           value=
        "&amp;lt;maple:statement safeHTML="false" quotes="false" &amp;gt;
          MathML[ExportContent](doInt())
         &amp;lt;/maple:statement&amp;gt;"&amp;gt;
    &amp;lt;/applet&amp;gt;
&lt;/pre&gt;

Convert the Maple expression with the MathML[ExportContent]() function into a MathML string.
The attribute &lt;b&gt;safeHTML='false'&lt;/b&gt; prevents MapleNet from converting the MathML into HTML entities such as &amp;amp;lt;, &amp;amp;gt; etc
The &lt;b&gt;quotes='false'&lt;/b&gt; attribute strips the leading and trailing double quotes from the generated MathML string.

The code for the MathML viewer is accessible using the URL shown in the codebase parameter.
Note: not all browser support the &amp;lt;applet&amp;gt; tag. Older browsers may use the &amp;lt;object&amp;gt; or &amp;lt;embed&amp;gt; tags.

Bill
</description>
      <guid>78748</guid>
      <pubDate>Fri, 15 Dec 2006 02:53:13 Z</pubDate>
      <itunes:author>Bill</itunes:author>
      <author>Bill</author>
    </item>
  </channel>
</rss>