Example JSP and XML code inside that allows update of attributes

<?xml version="1.0" encoding="UTF-8"?>
<MATT_DOCUMENT>
<NAME>Test MATT Document</NAME>
<DESCRIPTION>An example MATT Document</DESCRIPTION>
<TITLE>Matt Australia</TITLE>
<INCLUDEME>TRUE</INCLUDEME>
<KEYWORDS>Australia Brisbane Sydney</KEYWORDS>
<content><![CDATA[<HTML><BODY>Example Document Content</BODY></HTML>]]></content>
</MATT_DOCUMENT>
<?xml version="1.0" standalone="yes"?>
<ClassObject>
<Name>MATT_Document</Name>
<Description>A MATT Document.</Description>
<Superclass RefType="name">Document</Superclass>
<BeanClassPath>qut.MATT.MATT_Document</BeanClassPath>
<Attributes>
<Attribute>
<Name>TITLE</Name>
<DataType>STRING</DataType>
<DataLength>100</DataLength>
<Required>true</Required>
</Attribute>
<Attribute>
<Name>INCLUDEME</Name>
<DataType>BOOLEAN</DataType>
<Required>true</Required>
</Attribute>
<Attribute>
<Name>KEYWORDS</Name>
<DataType>STRING</DataType>
<DataLength>500</DataLength>
<Required>false</Required>
</Attribute>
</Attributes>
</ClassObject>
/* For information on deploying an instance class bean see iFS Developer's Guide 1.1 Section 4-14 */
package qut.MATT;
import oracle.ifs.server.S_LibraryObjectData;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.beans.Document;
import oracle.ifs.beans.TieDocument;
import oracle.ifs.common.IfsException;
import oracle.ifs.common.AttributeValue;
public class MATT_Document extends TieDocument
private static final boolean DEBUG = true;
public static final String CLASS_NAME = "MATT_DOCUMENT";
public static final String TITLE_ATTRIBUTE = "TITLE";
public static final String INCLUDEME_ATTRIBUTE = "INCLUDEME";
public static final String KEYWORDS_ATTRIBUTE = "KEYWORDS";
public MATT_Document(LibrarySession ifsSession, java.lang.Long id, java.lang.Long classId, S_LibraryObjectData data)
throws IfsException
// Construct a Document object - standard variant.
super(ifsSession,id,classId,data);
public void setTitle(String newValue)
throws IfsException
AttributeValue av = AttributeValue.newAttributeValue(newValue);
setAttribute(TITLE_ATTRIBUTE,av);
public String getTitle()
throws IfsException
AttributeValue av = getAttribute(TITLE_ATTRIBUTE);
return av.getString(getSession());
public void setIncludeMe(boolean newValue)
throws IfsException
AttributeValue av = AttributeValue.newAttributeValue(newValue);
setAttribute(INCLUDEME_ATTRIBUTE,av);
public boolean getIncludeMe()
throws IfsException
AttributeValue av = getAttribute(INCLUDEME_ATTRIBUTE);
return av.getBoolean(getSession());
public void setKeywords(String newValue)
throws IfsException
AttributeValue av = AttributeValue.newAttributeValue(newValue);
setAttribute(KEYWORDS_ATTRIBUTE,av);
public String getKeywords()
throws IfsException
AttributeValue av = getAttribute(KEYWORDS_ATTRIBUTE);
return av.getString(getSession());
<%-- Copyright 2000 Matt Shannon / Oracle Corporation --%>
<%-- This page is used for the modification of MATT Document Properties --%>
<%-- Page Directives --%>
<%@ page language = "java"
errorPage=""
import = "java.util.*, java.text.SimpleDateFormat"
contentType="text/html;charset=UTF-8"
info="MATT Document Properties Screen"%>
<%@ page import = "oracle.ifs.clients.webui.WebUILogin"%>
<%@ page import = "oracle.ifs.clients.webui.WebUIUtils"%>
<%@ page import = "oracle.ifs.clients.webui.resources.WebUIResources"%>
<%@ page import = "oracle.ifs.clients.webui.resources.JspResourcesID"%>
<%@ page import = "oracle.ifs.clients.webui.FileUtils"%>
<%@ page i mport = "oracle.ifs.beans.LibrarySession"%>
<%@ page import = "oracle.ifs.beans.PublicObject"%>
<%@ page import = "oracle.ifs.beans.Attribute"%>
<%@ page import = "oracle.ifs.common.AttributeValue"%>
<%@ page import = "qut.MATT.MATT_Document"%>
<HEAD>
<META http-equiv="pragma" content="no-cache">
<META http-equiv="expires" content="0">
<%-- Declarations --%>
<%! final String headingTitle = "MATT Document Properties";
%>
<%-- Scriptlet --%>
<%
WebUILogin login = WebUILogin.getWebUILogin(request);
if (login.isTimedOut())
String msg = "" + WebUIUtils.getResourceString(WebUIResources.WEBUI_SESSION_TIMEOUT_ERROR_CODE);
msg = msg.replace('\"','\'');
%>
<script language="JavaScript">
alert("<%=msg%>");
top.close();
</script>
<%
else // if logged in
String path = WebUIUtils.getBasePathFromServletPath(request,
WebUIUtils.getUTF8Parameter(request,"path"));
String container = WebUIUtils.getUTF8Parameter(request,"container");
String Title = WebUIUtils.getUTF8Parameter(request,"Title");
String IncludeMe = WebUIUtils.getUTF8Parameter(request,"IncludeMe");
String Keywords = WebUIUtils.getUTF8Parameter(request,"Keywords");
String actn = WebUIUtils.getUTF8Parameter(request,"actn");
LibrarySession sess = login.getSession();
if (actn == null)
actn = "";
if (Title == null)
Title = "";
if (IncludeMe == null)
IncludeMe = "";
if (Keywords == null)
Keywords = "";
if (path.indexOf(":") != -1)
// path is fine no change
else if (container.equals("null"))
path = ":" + path;
else if (container.endsWith("/"))
path = container + path;
else if (path.indexOf(container) == 0)
// leave path alone
else
path = container + "/" + path;
path = FileUtils.convertPath(path, sess);
PublicObject pObject = null;
String displayName = path;
pObject = WebUIUtils.findPublicObjectByPathOrId(login.getResolver(), login.getSession(),path);
if (pObject != null)
pObject = pObject.getResolvedPublicObject();
if (pObject != null)
String name = pObject.getName();
if (name != null && !name.equals(""))
displayName = name;
%>
<title>
<%= "QUT - " + displayName + " - " + headingTitle%>
</title>
<link rel=STYLESHEET type="text/css" href="../webui/css/NewStyles.css">
</head>
<body bgcolor="#FFFFFF" link="#FF0000" vlink="#FF0000" alink="#FF0000" onload="store_initial_values()">
<%
if (pObject == null)
%>
<h3><%=login.getJspResourceString(JspResourcesID.SHOWDOCPROPS_NOT_FOUND_TEXT)%></h3>
<table>
<tr>
<td width="31" height="10" align=left>
<form>
<input type="button" name="Button"
value="<%=login.getJspResourceString(JspResourcesID.WEBUI_OK_BUTTON)%>"
onclick="top.close();">
</form>
</td>
</tr>
</table>
<%
else // pObject != null
try
if (!(pObject instanceof MATT_Document))
%>
<h3>Error - Object not an instance of MATT_Document</h3>
<table>
<tr>
<td width="31" height="10" align=left>
<form>
<input type="button" name="Button"
value="<%=login.getJspResourceString(JspResourcesID.WEBUI_OK_BUTTON)%>"
onclick="top.close();">
</form>
</td>
</tr>
</table>
<%
else
%>
<script language="JavaScript1.2">
var success = true;
var oldTitle = "";
var oldIncludeMe = "";
var oldKeywords = "";
function store_initial_values()
oldTitle = document.forms.docPropertiesForm.Title.value;
oldIncludeMe = document.forms.docPropertiesForm.IncludeMe.selectedIndex;
oldKeywords = document.forms.docPropertiesForm.Keywords.value;
function validate_form()
if (hasChanges())
document.forms.docPropertiesForm.submit();
else
top.close();
function hasChanges()
var hasChanged = false;
var newTitle = " ";
var newIncludeMe = "";
var newKeywords = "";
newTitle = document.forms.docPropertiesForm.Title.value;
newIncludeMe = document.forms.docPropertiesForm.IncludeMe.selectedIndex;
newKeywords = document.forms.docPropertiesForm.Keywords.value;
if (oldTitle != newTitle)
hasChanged = true;
else if (oldIncludeMe != newIncludeMe)
hasChanged = true;
else if (oldKeywords != newKeywords)
hasChanged = true;
return hasChanged;
</script>
<%
if (actn.equals("save_values"))
try
// set Title if changed
if (Title != null && !Title.equals(((MATT_Document)pObject).getTitle()))
((MATT_Document)pObject).setTitle(Title);
// set Keywords if changed
if (Keywords != null && !Keywords.equals(((MATT_Document)pObject).getKeywords()))
((MATT_Document)pObject).setKeywords(Keywords);
// set IncludeMe if changed
if (IncludeMe != null)
boolean l_includeMe = IncludeMe.equals("1");
if ( ((MATT_Document)pObject).getIncludeMe() != l_includeMe )
((MATT_Document)pObject).setIncludeMe(l_includeMe);
catch (Exception e)
String msg = "" + login.getErrorResolver().getMessage(e);
msg = msg.replace('\"','\'');
%>
<script language="JavaScript">
alert("<%=msg%>");
var success = false;
history.back();
</script>
<%
} // end catch block
%>
<script language="JavaScript">
if (success)
document.write("<h2><%=login.getJspResourceString(JspResourcesID.SHOWDOCPROPS_PROPERTIES_SAVED_TEXT)%></h2><form><input type=button value='<%=login.getJspResourceString(JspResourcesID.WEBUI_OK_BUTTON)%>' onclick='top.close();'></form>");
</script>
<%
else // if !actn.equals("save_values")
%>
<center>
<form name="docPropertiesForm" method="POST" action="MATTproperties.jsp">
<table border="1" width="90%">
<tr>
<td width="100%" colspan="3" class="DH">
MATT Document Class Properties <br>
</td>
</tr>
<tr>
<td width="20%" class="required" align="left">
Class Name:
</td>
<td width="80%">
<%=pObject.getClassObject().getName()%>
</td>
</tr>
<tr>
<td width="20%" class="required" align="left">
Bean Path:
</td>
<td width="80%">
<%=pObject.getClassObject().getBeanClasspath()%>
</td>
</tr>
<tr>
<td width="20%" class="required" align="left">
Description:
</td>
<td width="80%">
<%=pObject.getClassObject().getDescription()%>
</td>
</tr>
<tr>
<td width="100%" colspan="3" class="DH">
MATT Document Properties <br>
</td>
</tr>
<tr>
<td width="15%" class="required">
Path:
</td>
<td width="85%" colspan="2">
<%=path%>
</td>
</tr>
<tr>
<td width="20%" class="required" align="left">
Title:
</td>
<td width="80%">
<input type=text name="Title" value="<%=((MATT_Document)pObject).getTitle()%>" size=100>
</td>
</tr>
<tr>
<td width="20%" class="required" align="left">
Keywords:
</td>
<td width="80%">
<input type=text name="Keywords" value="<%=pObject.getAttribute("Keywords").getString(sess)%>" size=100>
</td>
</tr>
<tr>
<td width="20%" class="required" align="left">
IncludeMe:
</td>
<td width="80%">
<select class="listbox" size="1" name="IncludeMe">
<%
if (((MATT_Document)pObject).getIncludeMe())
%>
<option value="1" selected>true</option>
<option value="0" selected>false</option>
<%
else
%>
<option value="1">true</option>
<option value="0" selected>false</option>
<%
%>
</SELECT>
</td>
</tr>
</table>
<table width="80%">
<tr>
<td width="58" height="10" align =left>
<input type="button" name="Button" value="<%=login.getJspResourceString(JspResourcesID.WEBUI_OK_BUTTON)%>" onclick="validate_form();">
</td>
<td width="62" height="10" align=right>
<input type="hidden" name="actn" value="save_values">
<input type="hidden" name="path" value="<%=WebUIUtils.getServletPathFromBasePath(request,path)%>">
<input type="hidden" name="container" value="<%=container%>">
<input type="button" name="Button" value="<%=login.getJspResourceString(JspResourcesID.WEBUI_CANCEL_BUTTON)%>" onclick="top.close();">
</td>
</tr>
</table>
</form>
<%
} // end - if actn.equals
%>
<%
} // end - if pObject instance of
%>
<%
catch (Exception e)
String msg = "" + login.getErrorResolver().getMessage(e);
msg = msg.replace('\"','\'');
%>
<script language="JavaScript">
alert("<%=msg%>");
var success = false;
history.back();
</script>
<%
} // end catch block
finally
out.flush();
} // if pObject
%>
<%
} // if logged in
%>
</BODY>
</HTML>
There is probably lots of better ways of doing the above. The iFS 1.1 Developer guide confused me alot particularly sections 4-10 and 4-11 where it talks about an instance class bean that extends the Tie classes, then the example shown on 4-12 is completely different!
note.. also i got most of the above code using JAD having decompiled webui.jar. Seems these JARS are not obfuscated.
webui.jar in $ORACLE_HOME/ifs1.1/lib
matt.

Thanks. I have ifs 1.1 now and have modified this example to use my custom type. However, when the jsp runs and hits the code at the beginning that checks "if login.isTimedOut()", it always thinks I have timed out, even though I have just logged in via the webui.
Any ideas would be appreciated.

Similar Messages

  • How do I turn off the curvature tool in CC, I chose the selection tool to create a box and the middle selector that allows you to adjust the size has disappeared?

    How do I turn off the curvature tool in CC, I chose the selection tool to create a box and the middle selector that allows you to adjust the size has disappeared? My coworker discovered making ti a compound path by right clicking it and selecting it. All I want to do is adjust the size of a box. please advise.

    You should post questions about using applications in the specific application's forum(s).
    Here is a link to a page that has links to all Adobe forums...
    Forum links page:
    https://forums.adobe.com/welcome

  • I have redeemed my code and downloaded the Mountain Lion overnight. Now I am unable to find the download and unable to install it. And the code says that its already redeemed. What can I do? Please help.

    I have redeemed my code to download the Mountain Lion. I left it for download overnight. Now I am unable to find the download and its not installed. And the code says that its already redeemed so I cannot download the Mountain Lion again. Please help.

    Look in your Applications folder.

  • HT1338 I am attempting to update to the new os x mavericks and while completing the download it prompts me to choose a disk. I have chosen the only option I am provided and am then told that the update cannot be installed on "untitled 1" what am I suppose

    I am attempting to update to the new os x mavericks and while completing the download it prompts me to choose a disk. I have chosen the only option I am provided and am then told that the update cannot be installed on "untitled 1" what am I supposed to do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then try the installation again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name or email address, may appear in the log. Anonymize before posting.

  • How do you get rid of this pop up message: You are currently browsing the web with and it is recommended that you update your video player to the fastest version available. Please update to continue.

    I am getting this pop up message: You are currently browsing the web with and it is recommended that you update your video player to the fastest version available. Please update to continue.
    How do I get rid of it? I have tried searching the web and I have only seen solutions for chrome and firefox. Thanks.

    the link to the page is below
    http://www.viesio9q58.com/41612C472C746D6E5047462D522B3A499CE6BD0593A068E7860909 6F792C3C69D19ECDCE71575FC8DABD23D1A0E21C93?PubID=79_3527_3100&tgu_src_lp_domain= www.newallsoft.com&ClickID=7649753723

  • JSP and XML...need help

    hello i have a simple issue
    i have an xml file with various elements
    lets say and element named Uni with the values UTS, UNSW, USYD etc
    and each of the differenet element values have a attribute i.e CourseNo and ListOFSubjects
    <UNI>
         <name>UTS</name>
                <CourseNo>
                         50001
                </CourseNo>
                <ListOfSubjects>
                         <category>English</category>
                         <category>Maths</category>
                         </categories>
               <link>50001.xml</link>
          <name>UNSW</name>
            <CourseNo>
                         50102
                </CourseNo>
                <ListOfSubjects>
                         <category>Sience</category>
                         <category>Maths</category>
                         </categories>
               <link>50102.xml</link>
    </UNI>For now i am reading an xml containg the following xml code.
    BufferedReader is = new BufferedReader( new FileReader(f));          
                        String inputLine;     
                        while ((inputLine = is.readLine()) != null)
                        out.println(inputLine);
                        out.println();
                        is.close();          } but when i read the file i read the whole file.
    instead i want to know how i can read and output on certain aspects of the file.
    eg i would like to only output the words UTS and UNSW
    or only the categories for UTS i.e English and Maths
    i was hoping someone knows how to do this..
    PLEASE help its very important
    thankyou

    You can use Parsing API of Java.
    You can use DOM (Document Object Model) Parser for the same.
    So that you will get node name like <name> and also its value as UTS.
    You can refer this link to use DOM.
    http://www.developer.com/java/other/article.php/3292751
    or you can follow following steps
    1. Get instance of DocumentBuilderFactory as
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(false);
    factory.setNamespaceAware(false);
    2. Use DocumentBuilder as
    DocumentBuilder parser = factory.newDocumentBuilder();
    3. Then Parse the file as
    DocumentBuilder parser = factory.newDocumentBuilder();
    Document dom = parser.parse(file);
    4. Using element class u can get root & usingNameNodeMap you can get attributes for root follows
    Element root = dom.getDocumentElement();
    NamedNodeMap attrib = root.getAttributes();
    5. Get and process children of the current node
    NodeList children = node.getChildNodes()
    Here u can write recurssive function named traverseTree(Node node)
    Firstly, u'll pass root node as a parameter to this function
    6. Get childrens of cuurent node
    NodeList children = node.getChildNodes();
    7. Iterate this 'children' node.
    for each child do the following
    Node child = children.item(c);
    if(child.getNodeType() == Node.ELEMENT_NODE)
    NamedNodeMap attrib = child.getAttributes(); // using this , u can have Node name & Node value. Here you can get UTS & UTWS as node value for node <name>
    traverseTree(child ) // if child is ellement node again traverse the child
    Edited by: Abhijai on ?? ???, ???? ?:?? ???????

  • How to call both xacute query and xml query inside a single applet

    Hi,
    I am very new to XMII. Trying with a simple exercises now.
    1.  I have a Business Logic Transaction which will call external application using web services then it will get an output as xml and storing it in C:\.
    2. Then I created one xacute query which will call the transaction
    3. Then I created a xml query that will read the xml in c:\ and I too created a visual display template(ichart)  for it
    4. Created a html file -- created a applet , called all the 3 inside it. NOt getting any graph in IE
    5. But if I call only xml query and display query its working
    <b>following are my HTML file:</b>
    <html>
    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Order Percent Complete</title>
    </head>
    <body>
    <p>
    <APPLET NAME="MyApplet" WIDTH="640" HEIGHT="400" CODE="iChart" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
    <PARAM NAME="QueryTemplate" VALUE="UserTemplates/POTxnTemplate">
    <PARAM NAME="QueryTemplate" VALUE="UserTemplates/POTemplate">
    <PARAM NAME="DisplayTemplate" VALUE="UserTemplates/POVisual">
    </APPLET>
    </p>
    </body>
    </html>
    6. In POTxnTemplate -- calling Transaction BL
        In POTemplate -- fetching xml from c:\
        In POVisual -- displaying the ichart (using POTemplate)
    Can any one help me with this?
    I am doing in the right path?
    Thanks in Advance,
    Murugappan.

    Hello,
    You can only enter one query template into an applet.  Use the xacute query template.  In the transaction assign the output of the web services results to a transaction property of type xml making sure you select the "Output Parameter?" option.  These results will need to be in xMII format.  Then open the xacute query template and verify that the output parameter you created is selected as an Output on the transaction tab.

  • JSP and Database code

    Hi All,
    To start of I'm just a beginner to JSP.
    I've made some JSP pages that get some database info, all works fine but
    I do have the database code in the JSP page. And I know that this is not the
    ideal method.
    I've read that the database code should be seperate from the JSP code, but
    how would I do this? Are there any tutorials on the net on how?
    Thanks for any help!

    Use MVC architecture. There are lot of tutorials available. One of them are in
    http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html

  • Logical database PSJ:   How to access and link tables inside that???

    Hi,
    I have a requirement like :
    I have to write one report which will display project statuses (PSmodule) using the LDB PSJ.. I am using LDB because I neeed dynamic selection screen.
    I need to acees the data from table like 1. PROJ, prps_r and JCDS under the LDB PSJ.. but when I found the hirarchy of these table in the LDB , then all 3 tables are at same level.
    then How to access and link data from theses 3 tables using GET and LATE command.
    I did like below, but wrong number of records are coming
    START-OF-SELECTION.
    GET proj.
    GET prps_r.
    GET  elm_ps .
    GET jcds.
    can anyone tell me, what 's wrong here.
    points will be rewarded
    for proper answer.
    Regards,
    Mrunal

    hi ...get is like a loop in ldb. then if you use the 3 get statements then it will loop with in a loop with different data..

  • HT201240 I re- set my password and now apple won't allow updates

    I have re set my password and now can't get updates to load.
    Keeps asking for my password

    Hi and Welcome to the Forums!
    With only one attempt left, it is unlikely that we will be able to be of any help. The next time it is entered wrong, your BB will wipe itself clean of all of your data. There is no way to stop it. None. You must get the password correct on the next attempt. There's no way for us to know what password you used...so you must try to see if you can get it right. Don't do what you've already tried...you already know it does not work. Sorry, but it looks like you will be restoring from your most recent backup.
    Best.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My iPod now has trouble syncing and is freezing now that I updated to 6.0.1 ios software. Please fix this!

    I recently upgraded my ipod Touch (4th Gen) to the new ios 6.0.1 software. Now it has trouble syncing, freezing up while syncing and keeping music on it without deleting it. I tried restoring it, but can't even downgrade it. PLEASE APPLE!!! PLEASE FIX THIS!!!

    If you restored to factory settings/new iPod and still have the problem that indicates a hardware problem.
    Make an appointment at the Genius Bar of an Apple store..
    Apple Retail Store - Genius Bar

  • I am not getting required output after importing xml file having HTML tags, MathML and Latex code

    I created well formatted xml having html tags, MathML code and Latex code inside
    XML with sample latex
    <question>
        <p> 8. In this problem, <Image  style="vertical-align: -9pt" title="5a\frac{7b}{3}" alt="5a\frac{7b}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%5Cfrac%7B7b%7D%7B3%7D%0A"></Image> and <Image href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%207b%5Cfrac%7B5a%7D%7B3%7D" style="vertical-align: -9pt" title="7b\frac{5a}{3}" alt="7b\frac{5a}{3}"> </Image>are both mixed numbers, like <Image src="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%203%20%5Cfrac%7B1%7D%7B2%7D%20=%203.5" style="vertical-align: -9pt" title="3 \frac{1}{2} = 3.5" alt="3 \frac{1}{2} = 3.5"></Image>. The expression <Image style="vertical-align: -9pt" title="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" alt="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%20%5Cfrac%7B7b%7D%7B3%7D%20%5C%20%5Ctimes %207b%20%5Cfrac%7B5a%7D%7B3%7D"> </Image>is equal to which of the following choices? </p>
    </question>
    XML with sample html tags
    <p>4. Examine the expression 3<i>k</i><sup>2</sup> + 6<i>k</i> - 5 + 6<i>k</i><sup>2</sup> + 2.</p><p>When it is simplified, which of the following is the equivalent expression?</p>
    XML with sample MathML tags
    <p>5. Find the vertex of the parabola associated with the quadratic function <math xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo> </mo><mo>=</mo><mo> </mo><mo>-</mo><msup><mi>x</mi><mn>2</mn></msup><mo> </mo><mo>+</mo><mo> </mo><mn>10</mn><mi>x</mi><mo> </mo><mo>+</mo><mo> </mo><mn>4</mn></math></p>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math>
    None of the above works fine after importing xml to Indesign document/templete, it is not renderting equivalent out instead it is showing the same text inside tags in the Indesign document.
    I have lot of content in our database, I will export to XML, import to Indesign, Indesign should render required output like what we see in the browser and export the output to printed format.
    Import formated XML to indesign --> Export to Quality Print Format
    Can any one guide me and let me know whether it is posible to do with Indesign, if so let me know in case if I am missing anything in importing xml and get required output.
    Thanks in advance. Waiting for reply ASAP.

    Possibly your expectations are too high. ... Scratch that "possibly".
    XML, in general, cannot be "rendered". It's just an abstract data format. Compare it to common markup such as *asterisks* to indicate emphasized words -- e-mail clients will show this text in bold, but InDesign, and the vast majority of other software, does not.
    To "render" XML, HTML, MathML, or LaTeX -- you seem to freely mix these *very* different markup formats, unaware of the fact that they are vastly different from each other! -- in the format you "expect", you need to apply the appropriate software to each of  the original data files. None of these markup languages are supported natively by InDesign.

  • I need an app that allows - top notch Powerpoint accessibility.  Notetaking and audio recording.  AND a possible translator.  Is there any appl or two that are recommended for a busy traveling executive?

    My boss just purchased and IPad and needs an app that allows -
    Powerpoint Editing and graphics capability/accessibility. 
    Notetaking and audio recording. 
    Japanese Translator.
    Is there any appl or two that are recommended for this busy traveling executive?
    Mahalo Nui Loa!

    dmkimball wrote:
    Japanese Translator.
    Have a look at
    http://itunes.apple.com/us/app/google-translate/id414706506?mt=8

  • Deploying a WAR file containing .jsp and servlets (also uses JNI)

    Deploying a WAR file containing .jsp and servlets (also uses JNI) on Windows 2000
    We had problems making it initially work on Sun ONE Web Server 6.0 Service Pack 1 because of lack of good iPlanet Web
    Server documentation on deploying such files.
    This is how we went about it:
    1) Make one of the servlet and JSP (must call another Java Class) web application (.war) examples work with iPlanet Web
    Server.
    C:\iPlanet\Servers\plugins\servlets\examples\web-apps\HelloWorld\HelloWorld.war
    and
    C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    a) Go to your Web Server Administration to deploy the application using GUI Web Application Deploy.
    (We usually use command line, we experienced some issues with the GUI version, but maybe it is fixed in the new Web Server
    service packs)
    From browser, open http://yourserver:8888/
    Click on Select a Server:Manage
    Click on Virtual Server Class
    Click on https-yourserver
    Click on the Web Applications Tab
    Then, click on Deploy Web Application
    Enter the following -
    WAR File On: Local
    WAR File Path: C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    Application URI: /jakarta
    Installation Directory: c:\iPlanet\examples\jakarta-examples
    By clicking on OK it deployed the application.
    I can verify that it is deployed by selecting "Edit Web Applications" and I see the following entry:
    Edit     /jakarta     c:/iPlanet/examples/jakarta-examples
    Also, c:/iPlanet/examples/jakarta-examples should have the similar following directory structure ..
    - [images]
    - [jsp]
    - index.html
    - [servlets]
    - [META-INF]
    - [WEB-INF]
    - [classes]
    - [tlds]
    - web.xml
    - index.html
    I restarted the server and accessed it using the following URL from my IE browser:
    http://yourserver/jakarta/index.html
    Then I clicked on the JSP Examples and tried some JSP examples.
    b) Alternatively, you can also deploy the same example from the command-line.
    Make sure C:\iPlanet\Servers\bin\https\httpadmin\bin\ is in your path
    wdeploy deploy      -u /jakarta
              -i yourserver
              -v https-yourserver
              -d c:\iplanet\examples\jakarta-examples
              C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    Restart the web server (I don't think you have to restart, but .. might as well).
    2)Deploy your web-application
    My Foo.war has the following structure.
    You can use jar tf Foo.war to look at the file contents from command line (assuming you have JDK installed and the bin is
    in your PATH)
    Foo.war
    - [META-INF]
    - [WEB-INF]
    - web.xml
    - [classes]
    - Bar.class
    - MoServlet.class
    - [lib]
    - ThirdParty.jar
    - [natlib]
    - extlib.dll
    - foo.jsp
    Here is our application scenario:
    foo.jsp uses a class call Bar (it is not in any package). The Bar java class uses classes from ThirdParty.jar. The
    ThirdParty.jar in turn uses JNI to load library extlib.dll. foo.jsp also calls /servlet/Mo as well.
    Now to deploy it, do the following:
    (a) Make sure that within foo.jsp, you import the Bar class ( I don't know why you have to do it, but if you don't you get
    JSP compile error).
    <%@page language="java" import="Bar" contentType="text/html"%>
    (b) Check web.xml (for Servlets)
    Within web.xml, make sure you have the following mappings:
    <servlet>
    <servlet-name> MoLink </servlet-name>
    <servlet-class> MoServlet </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name> MoLink </servlet-name>
    <url-pattern> /servlet/Mo </url-pattern>
    </servlet-mapping>
    (c) Deploy the application
    Using command line:
    wdeploy deploy      -u /foo
              -i yourserver
              -v https-yourserver
              -d c:\iplanet\examples\foo-dir
              Foo.war
    (d) Change web-apps.xml file (for picking up ThirdParty.jar)
    It is located in
    C:\iPlanet\Servers\https-yourserver\config
    You should see something similar to following after successful deployment.
    <web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true"/>
    Change it to look like following to pick up the ThirdParty.jar
    <web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true">
    <class-loader reload-interval="300"
              classpath="C:/iPlanet/examples/foo-dir/WEB-INF/lib/ThirdParty.jar"
              delegate="false"/>
    </web-app>
    (e) Change jvm12.conf file (for JNI)
    It is located in
    C:\iPlanet\Servers\https-yourserver\config
    Add or uncomment the following lines:
    #optional - just helps with instrumenting the jsp and servlet code
    jvm.include.CLASSPATH=1
    jvm.enableDebug=1
    nes.jsp.enabledebug=1
    jvm.trace=7
    jvm.verboseMode=1
    #required for JNI
    java.compiler=NONE
    jvm.classpath=.;C:\JDK1.3.1\lib\tools.jar;C:/iPlanet/Servers/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar;
    jvm.option=-Xrs
    jvm.option=-Xnoagent
    # not sure if this is needed for iPlanet web server
    jvm.option=-Djava.library.path=C:/iPlanet/examples/foo-dir/natlib/ -Djava.compiler=NONE
    (f) Change magnus.conf file (for JNI)
    We HAD to change this file in order for ThirdParty.jar file to pick up the native C++ code using JNI. Apparently, the
    iPlanet Web Server doesn't pick the Environment Variable Path. Because when we had the directory containing the DLL just
    in Path, it didn't work.
    Change Extrapath directive:
    ExtraPath C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
    to
    ExtraPath c:/iPlanet/examples/foo-dir/natlib;C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
    (g) Apply changes from the Web Server Administration Console and Restart the web server.
    You should be able to see the behaviour that you want from your application.
    http://yourserver/foo/foo.jsp
    Hope this was helpful!!!
    Sonu

    Deploying a WAR file containing .jsp and servlets (also uses JNI) on Windows 2000
    We had problems making it initially work on Sun ONE Web Server 6.0 Service Pack 1 because of lack of good iPlanet Web
    Server documentation on deploying such files.
    This is how we went about it:
    1) Make one of the servlet and JSP (must call another Java Class) web application (.war) examples work with iPlanet Web
    Server.
    C:\iPlanet\Servers\plugins\servlets\examples\web-apps\HelloWorld\HelloWorld.war
    and
    C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    a) Go to your Web Server Administration to deploy the application using GUI Web Application Deploy.
    (We usually use command line, we experienced some issues with the GUI version, but maybe it is fixed in the new Web Server
    service packs)
    From browser, open http://yourserver:8888/
    Click on Select a Server:Manage
    Click on Virtual Server Class
    Click on https-yourserver
    Click on the Web Applications Tab
    Then, click on Deploy Web Application
    Enter the following -
    WAR File On: Local
    WAR File Path: C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    Application URI: /jakarta
    Installation Directory: c:\iPlanet\examples\jakarta-examples
    By clicking on OK it deployed the application.
    I can verify that it is deployed by selecting "Edit Web Applications" and I see the following entry:
    Edit     /jakarta     c:/iPlanet/examples/jakarta-examples
    Also, c:/iPlanet/examples/jakarta-examples should have the similar following directory structure ..
    - [images]
    - [jsp]
    - index.html
    - [servlets]
    - [META-INF]
    - [WEB-INF]
    - [classes]
    - [tlds]
    - web.xml
    - index.html
    I restarted the server and accessed it using the following URL from my IE browser:
    http://yourserver/jakarta/index.html
    Then I clicked on the JSP Examples and tried some JSP examples.
    b) Alternatively, you can also deploy the same example from the command-line.
    Make sure C:\iPlanet\Servers\bin\https\httpadmin\bin\ is in your path
    wdeploy deploy      -u /jakarta
              -i yourserver
              -v https-yourserver
              -d c:\iplanet\examples\jakarta-examples
              C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    Restart the web server (I don't think you have to restart, but .. might as well).
    2)Deploy your web-application
    My Foo.war has the following structure.
    You can use jar tf Foo.war to look at the file contents from command line (assuming you have JDK installed and the bin is
    in your PATH)
    Foo.war
    - [META-INF]
    - [WEB-INF]
    - web.xml
    - [classes]
    - Bar.class
    - MoServlet.class
    - [lib]
    - ThirdParty.jar
    - [natlib]
    - extlib.dll
    - foo.jsp
    Here is our application scenario:
    foo.jsp uses a class call Bar (it is not in any package). The Bar java class uses classes from ThirdParty.jar. The
    ThirdParty.jar in turn uses JNI to load library extlib.dll. foo.jsp also calls /servlet/Mo as well.
    Now to deploy it, do the following:
    (a) Make sure that within foo.jsp, you import the Bar class ( I don't know why you have to do it, but if you don't you get
    JSP compile error).
    <%@page language="java" import="Bar" contentType="text/html"%>
    (b) Check web.xml (for Servlets)
    Within web.xml, make sure you have the following mappings:
    <servlet>
    <servlet-name> MoLink </servlet-name>
    <servlet-class> MoServlet </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name> MoLink </servlet-name>
    <url-pattern> /servlet/Mo </url-pattern>
    </servlet-mapping>
    (c) Deploy the application
    Using command line:
    wdeploy deploy      -u /foo
              -i yourserver
              -v https-yourserver
              -d c:\iplanet\examples\foo-dir
              Foo.war
    (d) Change web-apps.xml file (for picking up ThirdParty.jar)
    It is located in
    C:\iPlanet\Servers\https-yourserver\config
    You should see something similar to following after successful deployment.
    <web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true"/>
    Change it to look like following to pick up the ThirdParty.jar
    <web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true">
    <class-loader reload-interval="300"
              classpath="C:/iPlanet/examples/foo-dir/WEB-INF/lib/ThirdParty.jar"
              delegate="false"/>
    </web-app>
    (e) Change jvm12.conf file (for JNI)
    It is located in
    C:\iPlanet\Servers\https-yourserver\config
    Add or uncomment the following lines:
    #optional - just helps with instrumenting the jsp and servlet code
    jvm.include.CLASSPATH=1
    jvm.enableDebug=1
    nes.jsp.enabledebug=1
    jvm.trace=7
    jvm.verboseMode=1
    #required for JNI
    java.compiler=NONE
    jvm.classpath=.;C:\JDK1.3.1\lib\tools.jar;C:/iPlanet/Servers/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar;
    jvm.option=-Xrs
    jvm.option=-Xnoagent
    # not sure if this is needed for iPlanet web server
    jvm.option=-Djava.library.path=C:/iPlanet/examples/foo-dir/natlib/ -Djava.compiler=NONE
    (f) Change magnus.conf file (for JNI)
    We HAD to change this file in order for ThirdParty.jar file to pick up the native C++ code using JNI. Apparently, the
    iPlanet Web Server doesn't pick the Environment Variable Path. Because when we had the directory containing the DLL just
    in Path, it didn't work.
    Change Extrapath directive:
    ExtraPath C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
    to
    ExtraPath c:/iPlanet/examples/foo-dir/natlib;C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
    (g) Apply changes from the Web Server Administration Console and Restart the web server.
    You should be able to see the behaviour that you want from your application.
    http://yourserver/foo/foo.jsp
    Hope this was helpful!!!
    Sonu

  • Flash Components and XML Binding

    I just ran through the XML binding Bike Trails tutorial about
    a hundred times. I can get that to work just fine. But when I try
    to work with my XML file, it keeps falling apart. I just don't get
    it! I've been working on it for 2 days and it's still not working
    right.
    For one, the bindings are not showing up right. I have 2
    combo boxes and then a final one I'd like to use to list the
    stores. Here's a link to basically what I'm trying to do:
    http://www.thinkseed.com/test/stores.html
    My bindings keep falling apart. I get null values all the
    time for the second drop box that's supposed to house the States
    (the one on the site is a fluke...I accidentally had the
    <store> node on a separate line instead of nested in the
    <state> node. No idea why that one sort of worked.)
    Here's an example of the XML code:

    The flashComponents are standard AS2 components, and you can look up their APIs in the Flash documentation.  Here is the button docs:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001977.html#3654189
    Looking at that, there is a getStyle() method, and I just tested it out:
    put sprite(1).getStyle("borderStyle")
    -- "inset"
    put sprite(1).getStyle("fontFamily")
    -- "_sans"
    put sprite(1).getStyle("color")
    -- 734012.0000
    I'm not real sure what that means (probably the hex color converted to a float), but you can change the color like this:
    sprite(1).setStyle("color","red")
    And here is a page that lists all the styles that are defined:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001973.html#3136306

Maybe you are looking for

  • MacBook Pro Can't Find RV Park Router's IP Address

    I was using the RV park's wifi, which does not require a password.  Now my MBP won't connect because it can't find the router's IP address.  I used IP Scanner and found the IP address.  Is there some way I can "tell" my MBP what the IP address is?  I

  • Case statement problems in oracle forms 6i

    Hello, Any one can help me that how to use case statment in Oracle forms 6i. i have read one thread and there was no proper solution so could any one please let me know to use case statement. Please also let me know which category i should search for

  • How to create customized skins in RoboHelp 9?

    Hello, I want to know, how can I remove the default Contents, Index, Search, Print and Glossary buttons from their default position and relocated them in the TOC box just below the toolbar or anywhere else in the skin of the generated output. I would

  • Adobe/Dragon compatibility

    The newer versions of Adobe Flash Player and Adobe Acrobat Reader cause Dragon Voice recognition software to crash. (You often get the following error message: "Com returned an unexpected error code: Details are HOOKERR_NONOTIFYWINDOW".) I was able t

  • Replace Buisness Intelligence with Business Analytics in 11G pages.

    Hi, I have a somewhat unusual request from business, they would like to remove the words 'Business Intelligence' and replace it with 'Business Analytics'. This is the text that appears next to the Oracle Logo. Im sure it requires editing of some css