JSP, XSD, XML

Hi,
i am generating JSP form page from a custom java control that binds data from xml file to that form. the code snippets is like this:
private controls.MissionFileCtrl fc;
public MT103IMDocument getMT103()
MT103IMDocument doc = null;
try {
XmlObject xmlObject = fc.read();
doc = (MT103IMDocument)fc.read();
} catch (Exception ex) {
System.out.println("error " + ex.toString());
ex.printStackTrace();
return doc;
the form is generated nicely... but, i need it to be dynamic JSP tag from particular XML file hence it can generate combo box with options, etc...
does anyone have idea ? how can i do that ??
any ideas are appreciated.. thanks a lot...

Hi,
i am generating JSP form page from a custom java control that binds data from xml file to that form. the code snippets is like this:
private controls.MissionFileCtrl fc;
public MT103IMDocument getMT103()
MT103IMDocument doc = null;
try {
XmlObject xmlObject = fc.read();
doc = (MT103IMDocument)fc.read();
} catch (Exception ex) {
System.out.println("error " + ex.toString());
ex.printStackTrace();
return doc;
the form is generated nicely... but, i need it to be dynamic JSP tag from particular XML file hence it can generate combo box with options, etc...
does anyone have idea ? how can i do that ??
any ideas are appreciated.. thanks a lot...

Similar Messages

  • JSP/JSTL & XML

    I am trying to have JSP pages parse and read an XML file and then return some data in an HTML table. I'm using the JSTL libraries and have a basic understanding of them, but I apparently need help.
    My first page just gets the value and passes it to the second page. The second page handles all of the processing. Here is my JSP page:
    <%@page contentType="text/html" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@include file="index.jsp" %>
    <% String clientID = request.getParameter("enteredID"); %>
    <c:import url="npiXMLTest5.xml" var="doc" />
    <x:parse varDom="dom" doc="${doc}"/>
    <x:set var="srcCID" select="string($dom/npiNumbers/client/clientNum)" />
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>NPI XJTL Test</title></head>
    <body>
    <c:set var="CID" value="<%= clientID %>" />
    <h2>NPI XJTL Test Page</h2>
    <table border="1">
    <tr><th>NPI Number</th><th>Description</th></tr>
    <c:choose>
    <c:when test="${CID}=${srcCID}">
    <x:forEach select="$dom/npiNumbers/client/npiNum" var="$n">
    <tr><td><x:out select="$n/npi" /></td><td><x:out select="$n/desc" /></td></tr>
    </x:forEach>
    </c:when>
    <c:otherwise>
    There is an error with your coding
    </c:otherwise>
    </c:choose>
    </table></body></html>My XML structure is as follows:
    <npiNumbers xsi:schemaLocation="http://localhost/namespace NPI_XSD5.xsd" xmlns="http://localhost/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <client>
    <clientNum/>
    <clientName/>
    <npiNum>
    <npi/>
    <desc/>
    </npiNum>
    </client>
    </npiNumbers>I am trying to return the results of the <npiNum> element (which can have multiple values) - <npi> and <desc> - in a table based on the <clientNum> element. I try to evaluate the page variable with the xml element. If it matches, I will return a table. A client can have multiple <npiNum> elements, so the construction of the table is in the x:forEach loop.
    I think my problem is getting the variable from JSP to compare against the <clientNum> element in the XML file.
    Any ideas?

    I think your problem is less JSP/JSTL and more querying the XML.
    You are trying to "select all <npinum> elements from a client based on clientnum"
    I am far from an expert on XPath, but I think the following query is what you are after: "/npinumbers/client[clientNum=????]/npiNum"
    To do that with JSTL you would replace ???? with $param:enteredId or $CID (equivalent in your example)
    Here is the resulting JSP page.
    <%@page contentType="text/html" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <c:import url="npiXMLTest5.xml" var="doc" />
    <x:parse varDom="dom" doc="${doc}"/>
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>NPI XJTL Test</title></head>
    <body>
    <c:set var="CID" value="${param.enteredId}" />
    <h2>NPI XJTL Test Page</h2>
    <table border="1">
    <tr><th>NPI Number</th><th>Description</th></tr>
    <x:forEach select="$dom/npiNumbers/client[clientNum=$CID]/npiNum" var="n">
      <tr><td><x:out select="npi" /></td><td><x:out select="desc" /></td></tr>
    </x:forEach>
    </table>
    <hr>
    <form>
    <input type="text" name="enteredId"/>
    <input type="submit">
    </form>
    </body></html>I made up the following test file to use with it. I don't know if it was exactly what your requirements are, but it was a best guess based on your info.
    <npiNumbers>
         <client>
              <clientNum>42</clientNum>
              <clientName>Ford Prefect</clientName>
              <npiNum>
                   <npi>123</npi>
                   <desc>life</desc>
              </npiNum>
              <npiNum>
                   <npi>234</npi>
                   <desc>universe</desc>
              </npiNum>
              <npiNum>
                   <npi>456</npi>
                   <desc>everything</desc>
              </npiNum>          
         </client>
         <client>
              <clientNum>666</clientNum>
              <clientName>Satan</clientName>
              <npiNum>
                   <npi>333</npi>
                   <desc>Baby Devil</desc>
              </npiNum>
         </client>
    </npiNumbers>Cheers,
    evnafets

  • Char into balise jsp:scriptlet in jsp with xml syntax

    hello,
    i met a trouble with coding jsp with xml syntax,
    i use wsad to develop the jsp, and it's not allowed to put characters < or > into the balise scriptlet
    for example i cant do a loop (as i did easily with html syntax <% %> ) :
    this his the header of my jsp:
    <jsp:directive.page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
    <jsp:text>
    <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
    </jsp:text>
    <jsp:text>
    <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> ]]>
    </jsp:text>
    and the code which dont work:
    <jsp:scriptlet>
    for (int i=0;i<10;i++){
    System.out.println(i);
    </jsp:scriptlet>
    i get a compilation error, did someone could help me to code dynamic content jsp ?
    ps: excuse me for my english.

    I don't use xml, so I may be way off the wall, but did you try using the CDATA sections again?
    <jsp:scriptlet>
    <![CDATA[
    for (int i=0;i<10;i++){
    System.out.println(i);
    ]]>
    </jsp:scriptlet>

  • Diff. between JSP format & XML based syntax

    i like to know the diff. between 2 types of jsp syntax,
    JSP - 1 - ordinary
    <% code %>
    JSP - 2 - XML based syntax
    <jsp:expression> code </jsp:expression>
    what is best to use for jsp development.,

    Haven't u finished fresher course yet?

  • Jsp+xslt+xml

    hi,
    I want to display the xml file which is as following:
    <item>
    <title>title1</title>
    <content>content1</content>
    </item>
    <item>
    <title>title2</title>
    <content>content2</content>
    </item>
    I want to display all titles in a table. When clicking a title, then displaying the corresponding content.
    So I wrote code:
    <xsl:for-each select="title">
    <a>
    <xsl:attribute name="href">content.jsp</xsl:text></xsl:attribute>
    <xsl:apply-templates />
    </a>
    </xsl:for-each>
    How can i transfer the title name to the content.jsp so that the corresponding content can be handled in content.jsp?
    Any suggestion is helpful.

    Hi jacky_chenp,
    I am facing a problem in JSP + XSLT + XML, just see whether you can help as I am new to it.
    I am getting the following error message while try to compile JSP_Book_Inventory.jsp
    Error: java.security.PrivilegedActionException <<java.lang.ClassNotFoundException: org.apache.xalan.xslt.XSLTInputSource>>
    JSP_Book_Inventory.jsp
    <%@ taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0" prefix="xsl" %>
    <html>
    <head><title>Book Inventory</title></head>
    <body>
    <xsl:apply xml="XML_Book_Inventory" xsl="XSL_Book_Inventory.xsl" />
    </body>
    </html>
    XML_Book_Inventory.xml
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <books>
    <book isbn="123">
    <title>Web Servers for Fun and Profit</title>
    <quantity>10</quantity>
    <price>$17.95</price>
    </book>
    <book isbn="456">
    <title>Web Programming for Mobile Devices</title>
    <quantity>2</quantity>
    <price>$38.95</price>
    </book>
    <book isbn="789">
    <title>Duke: A Biography of the Java Evangelist</title>
    <quantity>25</quantity>
    <price>$15.00</price>
    </book>
    </books>
    XSL_Book_Inventory.xsl
    <?xml version='1.0' encoding='windows-1252'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!-- Root template -->
    <xsl:template match="books">
    <table border="1" width="100%">
    <th>ISBN</th>
    <th>Title</th>
    <th>Quantity</th>
    <th>Price</th>
    <xsl:for-each select="book">
    <tr>
    <td><xsl:value-of select="@isbn" /></td>
    <td><xsl:value-of select="title" /></td>
    <td><xsl:value-of select="quantity" /></td>
    <td><xsl:value-of select="price" /></td>
    </tr>
    </xsl:for-each>
    </table>
    </xsl:template>
    </xsl:stylesheet>
    Thank you.

  • Converter XSD-XML  &  XML-XSD

    Hi,
    I am looking for a piece of code for
    a) creating an XML file by given an XSD schema
    b) creating an XSD file by given an XML document
    The given files are dynamically.
    The exported files can be good as possible.
    There are many discussions on internet, unfortunatelly without usefull code fragment.
    Is a simple converting of xsd->xml and xml->xsd a big problem?
    (Of course user needs to modify the converted file, so that it makes also semantically sense. )
    Thanks
    Aykut

    Originally posted by: alexm.xxx.yyy
    The Agent Controller is configured with Java 1.5 (I assume, the Window >
    Preferences is the place to do it.) Java 1.6 is not used in my Eclipse
    setup at all.
    Still, the "Java 1.5-" data collector is nowhere to be found.
    For now, I am using The Java Heap Analysis Tool (HAT), which provides
    the object allocation and retention stats, but getting TPTP to work
    would be a much more preferred choice.
    Thanks,
    Alex
    Asaf Yaffe wrote:
    > Alex,
    >> Asaf,
    >>
    >> Thank you for the response. For some reason, my profiler dialog only
    >> shows "Java Profiling - JRE 1.5 or newer..." option in the Monitor tab.
    >>
    >> Do I need to tweak something in my environment to get the JRE 1.5-
    >> entry in the list?
    >
    > Make sure that the Agent Controller (integrated or standalone, depending
    > on your configuration) is configured with a Java 1.5 or 1.4 JVM. If your
    > default environment (Eclipse) is using Java 1.6, then the "Java 1.5-"
    > data collector will not be available.
    >
    >
    >>
    >> Also, how can one get the object references in Java 1.5+?
    >>
    >
    > Sorry, but this capability is not currently supported in our Java 1.5+
    > collector.
    >
    > HTH,
    > Asaf
    >

  • Problems with JSP Documents (XML Mode)

    Hi --
    Have been following the spec for JSP as XML documents because I want to produce JSPs using XSLT. Two problems which I've yet to find anything but workarounds for:
    1. (Most pressing) JSP Documents do not allow this <%= blah %>. This creates problems when I want to dynamically create an attribute value. The spec recommends this: 'value = "%=var%"', but I've tried this in Tomcat 4.1.12 and the expression gets reproduced literally at run-time. I've searched these forums and not found an answer.
    2. Transformer wigs out on colons in "jsp:root" or "c:out" because it signifies a namespace with which it is unfamiliar. It doesn't need to recognize the namespace. Right now I'm putting in placeholders (jsp999root, for example) and replacing them after processing. Is there a better way?
    These problems are really getting in the way. Any help would be most appreciated.

    Have been following the spec for JSP as XML documents because I want to
    produce JSPs using XSLT. Two problems which I've yet to find anything but
    workarounds for:
    1. (Most pressing) JSP Documents do not allow this <%= blah %>. This creates
    problems when I want to dynamically create an attribute value. The spec
    recommends this: 'value = "%=var%"', but I've tried this in Tomcat 4.1.12 and
    the expression gets reproduced literally at run-time. I've searched these
    forums and not found an answer. I am stuck on this also and desperately searching for an answer. Has anyone found anything yet?
    2. Transformer wigs out on colons in "jsp:root" or "c:out" because it
    signifies a namespace with which it is unfamiliar. It doesn't need to
    recognize the namespace. Right now I'm putting in placeholders (jsp999root,
    for example) and replacing them after processing. Is there a better way?You can (and should) put multiple namespace declarations in the xsl:stylesheet tag. that will let it know about jsp:* and pass it through appropriately. Try something like:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:jsp="http://java.sun.com/JSP/Page">

  • Include new feature where user can get JSP as XML model or normal HTML

    Hi Creator Team,
    I request you guys to include the below specified feature in future updates.
    Currently, creator is supporting to generate JSPS in XML formats. No doubt this is good feature.
    But some times we may require JSP in which we may not in need of well formed HTML page.
    Because all Designeres and developers are may not aware of XML features and nodoubt they will face the problem in coding or designing.
    It is not necessary that a developer/designer need to accustom the features currently supported. He/She may expect more easier access in studio creator.
    I understand that we can include JSPs into project taht are not well formed. But at the same time it is almost difficult to him/her to design the page (drag/drop process which is main feature of Studio Creator)
    I request and suggest to include both options so that it will become easy for developers/designers to use this good product

    Has this feature been incorporated in the latest SJSC 2 release? I too think that this will be more easier to adapt to as a newbie. Moreover, I haven't found anything on this front anywhere else in the forums or in the technical documentations. Other way around could be to provide decent tutorials on using JSP in XML syntax. I am currently using J2EE tutorial (June 2005 release) to learn this technology.
    I would be glad if someone could point out a decent resource on this front.
    Thanks in advance,
    Dev

  • JSPs as XML Documents -- Problems

    Hi --
    Have been following the spec for JSP as XML documents because I want to produce JSPs using XSLT. Two problems which I've yet to find anything but workarounds for:
    1. (Most pressing) JSP Documents do not allow this <%= blah %>. This creates problems when I want to dynamically create an attribute value. The spec recommends this: 'value = "%=var%"', but I've tried this in Tomcat 4.1.12 and the expression gets reproduced literally at run-time. I've searched these forums and not found an answer.
    2. Transformer wigs out on colons in "jsp:root" or "c:out" because it signifies a namespace with which it is unfamiliar. It doesn't need to recognize the namespace. Right now I'm putting in placeholders (jsp999root, for example) and replacing them after processing. Is there a better way?
    These problems are really getting in the way. Any help would be most appreciated.

    Hi,
    It looks from No. 2 that you are using JSLT since you have a fragment of a <c:out tag. I believe the syntax for getting the value out of one of these tags is actually almost identical to that in XSLT:
    value="${var}" instead of what you got from the spec,
    The spec recommends this: 'value = "%=var%"'The name spaces do have to be declared for JSLT to work, declared in the <jsp:root> tag:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:c="http://java.sun.com/jstl/core"
    version="1.2">
    Here's a very simple jsp that uses it:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:c="http://java.sun.com/jstl/core"
    version="1.2">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <html>
         <head>
         <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"/>
         <title>Hello World</title>
         </head>
         <body>
         <c:set var="nameString" value="John"></c:set>
         <h2>The name is: <c:out value="${nameString}"/></h2>
         </body>
    </html>
    </jsp:root>
    Of course, you have to have the tlds set up and the JSLT jars available for the compiler.
    I haven't yet tried this with transforms, but there are tags in the JSLT for that as well. If you've tried all this already, my apologies.
    Edward

  • Transforming jsp into xml

    Hi,
    I have some *.jsp files wich I have to transform into xml and xsl pages.
    Can anyone help me with his advice?
    And maybe someone knows a handy tool to transform jsp into xml?

    Refer to
    http://developer.java.sun.com/developer/technicalArticles/xml/WebAppDev2/

  • Which Web Client Framework? BC4J-JSP, UIX-JSP, UIX-XML, etc

    Trying to determine which, if any of the JDeveloper frameworks, to use for do web browser (HTML) clients.
    What are the pros/cons of BC4J-JSP, UIX-JSP, UIX-XML, etc?
    What are some common things you might rule out using one or more of the frameworks?
    I plan to be using BC4J, updating, inserting data (currently MS-SQL) and the apps will run on WebLogic 7 or Caucho Resin (webapps no EJB) in a cluster. I would like to be as RAD as possible and still be able to do what I need to do. One main concern is being able to add custom HTML/JavaScript for things like client side validation. I didn't see a way to do this when doing BC4J-JSP. Is that right?
    If I define any validation in the BC4J, will UIX utilized any of this to define a JavaScript validator or must it be redudantly defined?
    One other concern is what the framework requires in terms of architecture, like do I have to have sticky sessions in my web cluster or can it work fine stateless or stateful?
    For UIX-XML, how is this architected for performance? Specifically, is the XML effectively compiled and converted into something more efficient and performant or does it do XML parsing all the time? Is there any significant performance differences between the frameworks?
    Is there any significant difference in dealing with security? Anything in the framework to make it easier to handle certain users being able to see/edit different set of data?
    I have things like some groups can edit only certain entities (product info but not pricing), others only certain types of products (possibly subclass entities) and others situations where what fields than can edit varies. Obviously I can handle this programmatically, but I was wondering what the frameworks had to offer, especially in terms of having different views of the same data.
    Steve

    ...I am little confused then about how BC4J works and what is meant by "session" here.
    When you talk about appmodules in the plural, does this mean that there are potentially multiple instances of the same data on a single server or there is a common datastore with pending data and client specific stuff varying?
    The common datastore is the database. Each client (momentarily, during the span of their request) uses an instance of an application module from the pool. The pool can grow and shrink with load on your system and all of the various tuning parameters. Our doc on the AM Pool covers all the parameter settings and their users.
    What kind of "session" is this?
    It is an abstract notion of a session for a user. The implementation used for Web clients uses the HTTP Session Key as the session key. However, we have other session implementations (and you can provide your own to do custom stuff for more sophisticated needs). We don't store anything else in the HTTP Session to the best of my knowledge. This way in a cluster, the web container doesn't have to waste time propagating all of your serialized HTTP Session state among cluster members. This session key also include an id for the application module and together those provide the key to store your pending state in the database for the "Stateful == Managed State" feature.
    I assume that if I have a cluster which doesn't use session-to-same-server-affinity but uses JDBC for http-session persistance or distributed in-memory http-sessions then I cannot use stateful BC4J even though I can use http-sessions.
    You can use BC4J in this way because the browser will send a cookie that contains the key to your database-stored pending state. In this way, we work great in a server farm for failover and/or scalability reasons.
    Even if I use stateless BC4J, are there issues with round-robin'ng all requests to different servers in a cluster?
    As I said, both our Stateless and Stateful features are designed to be used in Server farms, no problem.
    BTW I wouldn't necessarily say you picked the wrongs terms for the modes, but I know what you mean. There's problems with these terms. I am trying to explain to my mgrs/engineers that there is some state in stateless transactions - that simply making everything "stateless" doesn't mean don't lose anything in a disastrous failure. I am arguing to get support for sessions in our cluster, that the performance gain and simplified development is worth it as long as you put intelligent limits on what you store in the session. Right now, they are insisting on randomly sending requests into two entirely different data centers, with two different clusters.
    Amen. I have seen too many developers make the mistake of trying to be totally stateless, only to completely complicate their development environment with having to peristent partially-completed transaction data to the database. I've seen this done with sets of "Shadow" tables (yuck!) or using hand-written techniques similar to what BC4J provides a robust implementation of in the box.
    We've tuned our "Stateless With Affinity for Server Farms" model over several releases of carefully studying the performance of the Web apps built by our internal Oracle Applications teams using BC4J (over 20 of them now, and growing!) so compared with a hand-written strategy for your web-tier state management, using BC4J's implementation will be much more productive for you.
    We're tuning and tweaking and enhancing it even more for the 9.0.3 release as new needs are highlighted with continued use by our customers (both Oracle internal and external).

  • How to generate WPF Xaml through XSD (xml schema definition)

    Hi Experts
    I am working on Projects where we need to generate wpf ui (xaml) at runtime as per different requirements. We are trying to generate xaml from xsd file. We are able to generate UI from xml but as size of xml can be large we are reluctant to use xml as xaml
    generation source. I am attaching a sample image what we are trying to do
    UI elements Description
    For each complex node in xsd, we need a panel which can have add or delete button depending on minoccurs and maxoccurs of the node. Inside panel we want to add different ui elements.
    Please suggest if there is any way to do this or any one have worked in this direction?
    Thanks
    Praveen

    I should think you could use xsl on xsd to generate xaml.
    I have used xsl on xml to do this sort of thing - for reporting style stuff. 
    Xsd is just an odd kind of xml so I should think that's do-able.
    Failing that.
    You could use the template approach and generate xml from that but use c# to read the xsd.
    You would have like a textbox template etc.
    Is that UI truly representative?
    You could leverage the approach I use in this:
    http://social.technet.microsoft.com/wiki/contents/articles/29777.wpf-property-list-editing.aspx
    The EditRow user control has label + editing control as a pair.
    You would add another control for that pattern thing I see in grey after some of those.
    But you could essentially iterate the fields in an xsd , decide what control to use based on field type. 
    Set the label....
    Add that to a Listbox.
    You have a big bunch of xsd and you're thinking of generating the UI?
    I suppose you could then use icustomtypeprovider to generate matching viewmodels inheriting some base vm functionality.
    I don't follow how a "supporting dll" comes into this.
    Could you explain?
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

  • XSLT, using document() to fetch a local JSP generated XML file

    All,
    I have 1 XML document that keeps track of various subsite owners of a domain I manage. The xml file doesn't hold much, something along the lines of:
    <?xml version="1.0"?>
    <sitedirectory>
         <page id="/marys_page" name="Mary's Page"">
              <content_contact ntid="smithm" />
              <technical_contact ntid="techguy" />
         </page>
    </sitedirectory>Now I also have a JSP page, that when given an NT id as a URL parameter, rifles through LDAP and spits out an xml document with all the relavent ISID fields for that person's id (first name, last name, phone number, e-mail address etc).
    I use the document() function in an XSL file to access that dynamic JSP page, fetch the contents of the resulting XML file. Using the document() function with just a regular file call like "getldap.jsp" only feeds my stylesheet the source of that JSP file, not the resulting XML file that I'm looking for when it's been processed.
    So... I have my document() function calling the full URL to that JSP file on my domain, an example <value-of /> call in my XSL file would be:
    <xsl:value-of select="document('http://my.domain.com/jsp_util/ldap_person.jsp?ntid=smithm')/person/firstname" />and I get what I want, that person's first name, drawn from LDAP into my XSL file. But it seems a little weird to me, having a server-side transformation, accessing a JSP file by making an http call to the same server the transformation resides in.
    Am I missing something? Is there a better way to do this or some directive I'm missing? I'd appreciate any help.

    That's a creative but perfectly reasonable way to use the document() function.
    There are other ways to solve the problem, such as including Java calls in your XSL and applying a customized URIResolver to your transformation, but my approach would be to use the simplest method that works acceptably. So if you don't have performance problems with your solution, I would leave it alone.

  • Problem in impelementing tree in jsp using XML

    I am trying to impelemnt "treeview.htc" to impelement tree structure in my jsp page.I am using XML file to get the elements for treenodes.Now My Problem:
    Basically i have one ASP page with me, and there they have done all this things.But when i try to impelement the same thing in JSP it is thrwing me error.
    <b>Error: It is unable to detect the namespace i have mentioned in :>
    IT is not able to detect the "TVNS" namespace..Hence showing error while saving the jsp file</b>
    <code>
    <?XML:NAMESPACE PREFIX=TVNS />
    <?IMPORT NAMESPACE=TVNS IMPLEMENTATION="C:/XMLTREE/treeview.htc" />
    <tvns:treeview id="ctlFilter_TreeFilter" class="clsTreeView"
    defaultStyle="font:normal normal normal 8pt Tahoma;" selectedNodeIndex="0" HelperID="__ctlFilter_TreeFilter_State__" systemImagesPath="C:/XMLTREE/images"
    onexpand="javascript: if (this.clickedNodeIndex != null) this.queueEvent('onexpand', this.clickedNodeIndex)" oncollapse="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncollapse', this.clickedNodeIndex)"
    oncheck="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncheck', this.clickedNodeIndex)" onselectedindexchange="javascript: if (event.oldTreeNodeIndex != event.newTreeNodeIndex) this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex)" style="height:100%;width:100%;">
         <tvns:treenode Type="And" Expanded="True" Selected="true">
              And<tvns:treenode Type="Property">
                   Buyer Name = "Abukar Hagi, Abdirashid"
              </tvns:treenode><tvns:treenode Type="Property">
                   Buyer Name > "Abukar Hagi, Abdirashid"
              </tvns:treenode><tvns:treenode Type="Property">
                   Buyer Name <= "Abukar Hagi, Abdirashid"
              </tvns:treenode>
         </tvns:treenode>
    </tvns:treeview>
    </code>
    Please help me out .its very urgent.
    Thanks in advance.

    Have you actually been able to get this to work? I tried some of the demos from the MS site and running the html file with the treeview.htc just sends my browser into a state of loading with nothing happening!?!
    This is a webcontrols component which is rather MS specific. As for finding the namespace, are you accessing this page locally or remotely? the namespace location, if run from a JSP, will resolve the C: drive to the one the web browser is running in not your server.
    If you have your htc file in the same dir as the jsp your running, then putting just "treeview.htc" as the namespace whould be fine or add the context path like so:IMPLEMENTATION="<%=request.getContextPath()%>/treeview.htc"Let me know if you actually get this running without a web server. Otherwise it may be the .Net server that renders the page.
    Anthony

  • JSP:web.xml

    Hai Friends !
    I am having one doupt regarding web.xml in Jsp . I really donot know when the web.xml is required and when it is not required.
    Actually I have developed one jsp application without web.xml ,it is running fine when i use Tomcat5.0 .
    when i try to run the same application by using Tomcat6.0 , it is not running .
    I came to know web.xml is heart of Web application when gone through Servlet/Jsp book.
    but i donot understand how it is working without web.xml when i run with tomcat5.0 , why not with Tomcat6.0
    Can any one help me please!
    Thanks
    Selvakumar

    web.xml
    ======
    <web-pp>
    </web-app>
    try this one..

Maybe you are looking for

  • PC iCloud Mail and 'Parent Approval' on child purchases.

    Hi, I'm running Windows 7 Premium, I've installed iCloud and I can see all the various iCloud applications in my 'Applications' window.  I attempt to login to iCloud mail, and the login page appears, I enter my login information (that works on my iPa

  • Issue in iSupplier Portal after upgrade from 12.1.1 to 12.1.3

    Hi After upgrade to 12.1.3, I am getting 'java.lang.NullPointerException' error when I navigate to Oracle iSupplier Portal -> 'Purchase Order' tab. I have pasted the error text below. I have also noted down the errors below, which were reported durin

  • ITunes 7.7 64-bit installer crashes, won't install

    I downloaded the 64-bit installer and tried to install over my 7.6 install. Part way through the installer (on the Quicktime bit I think) it crashes. I tried multiple times. So I completely uninstalled iTunes and Quicktime and tried again. Now the iT

  • I cant get acces to iTunes store from My new iPad cellulær

    I cant get acces to iTunes store from My new iPad cellulær

  • Variable in textnode

    Hi everybody! I want to print a variable of the datatyp CURR with length 11. if i place the variable in a Textnode, the Smartform canceled with a formaterror. I can handle this problem, when i define a local string, copy the variable into that string