Generate JFaces jsp from xsd

Hi all,
I have an XML schema file, I'm able to generate all classes with sdo EMF project and now I want to generate jsp faces automaticaly .
It'is possible to do that? If yes, why?
Thank you in advance
Mj

Thanks dvohra_09.
Now my problem is if I have to generate HTML form by xsd file and after user input the form completely I have to generate xml file also.
So for now I have to do 2 step are :
- Generate HTML form by xsd file
- Get data from form to generate xml file
Have anyone can suggest me? I much appreciate it.
Thanks.

Similar Messages

  • About generating Java classes from XSD Schema ???

    I need a powerfull tool to generate Java classes from XML Schema. I want that generated classes to have the option to validate XML(to be JAXP1.2 compliant).
    I used XML Spy 5.4 but the generated classes can't validate an XML file.
    Can you help me with other tools that:
    - generate Java classes from XSD
    - generate sample XML from XSD
    - are JAXP1.2 compliant(validate a XML file with a schema)
    Thanks.

    You can also use Castor: http://www.castor.org
    It generates classes from XML Schemas and enables data
    binding without writing any line of a fuckin SAX
    parser :-)I evaluated Castor and JAXB and while JAXB isn't perfect, it's got some things over Castor. Castor almost looks abandonded when I go to the site. The documentation just sort of trails off.

  • Generating the JSP from the Servlet source file

    Hi,
    Does anyone out there know if there is any utility/class/program which will generate a JSP from the Servlet Source file (.java file) or indeed from the compiled Servlet file (.class file)
    If its possible to decompile a .class file into a .java file, surely it must be possible to convert the .java souce file into the .jsp file that created it.
    any comments would be appreciated
    Richard

    I am the author of the original JSP!
    But I want to run a script on the generated Servlet source file,
    changing its contents, and then generate the JSP that would have created the new Servlet source file.
    but I need to know if theres anything that will reverse engineer a Servlet source into the generating JSP.
    its a kind of of Jeopardy type thing!

  • Generating XML instance from XSD

    Hi,
    I want to know ( java program etc ) to generate XML instance from XSD. How tools ( XML Spy, Oxygen ) generate sample XML file from XSD. What APIs can be used for generating XML from XSD and what APIs are used for checking If XML instance conforms to a XSD? Is it big deal to implement it?
    Thanks in advance
    Sandeep

    To validate xml against XSD , I found I can use the existing parsers( using JAXP which has SAX and DOM APIs ) in current JDKs and validate. I still did not find the best way to generate xml from XSD and how tools like xml spy and oxygen generates sample xml file from xsd.
    Thanks
    Sandeep

  • Generating JAXB classes from XSD

    I am generating java classes using JAXB binding from XSDs. I organized the classes into 2 packages say package1 and package2
    The XSD to create the package2 is dependent on package1. So I do an include package1.xsd in package2.xsd. With this I am running into an issue with JDeveloper while generating the classes. When I generate classes using package2.xsd, all package1.xsd classes are also generated in the same package. So, I have to manually delete these classes from package1.xsd and add import statements from package1 where required.
    Is there a solutiion/work around available for suppressing duplicate class generation? Any help would be greatly appreciated.

    Try here as well
    https://jaxb.dev.java.net/

  • Error when generating Java Classes from XSD

    I'm getting the following error when using oragc to generate Java classes from a schema:
    Error: Schema Class Generator failed to generate classes. oracle.xml.parser.schema.XSDException: Invalid facet 'pattern' in element 'simpleType'
    Any thoughts?
    Here's the part where it is getting the error:
    +111 <!-- Timestamp Type - Timezone portion is required and fractional seconds are prohibited -->
    +112 <xsd:simpleType name="TimestampType">
    +113 <xsd:annotation>
    +114 <xsd:documentation>Base type for a date and time stamp</xsd:documentation>
    +115 </xsd:annotation>
    +116 <xsd:restriction base="xsd:dateTime">
    +117 <xsd:pattern value="[1-9][0-9]{3}\-.+T[^\.]+(Z|[\+\-].+)" />
    +118 </xsd:restriction>
    +119 </xsd:simpleType>

    I would recommend using JAXB instead of the Oracle class generator. This will give a standards based object-to-XML platform.
    Oracle provides two JAXB implementations: one in the TopLink product, and the other in the XDK.
    For an example of using TopLink JAXB see:
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/jaxb/index.htm
    TopLink also provides the ability to map existing Java objects to an existing XML Schema, for an example of this see:
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/ox/index.htm
    -Blaise

  • Generate XSL from XSD ?

    Please let me know the steps involved .
    I need to generate XSL's from XSD's created in my application where am using IBM RSA 7.0 .
    After generating XSD am converting the same into XML but i could be wrong doing so as it shows errors in my xml file.
    My approach is to generate XML file from XSD and then using XSLT feature of RSA create xsl files. But it's not working as am getting errors.
    Any inputs or example or different approach would help greatly.
    My Thanks in advance for tips.

    Have a look at the topic XML Schema Evolution in the XML DB Development Guide that is the same version as your database. Use inplace Schema evolution if your on 11gRx

  • Generate JSPs from SQL query

    Hello all,
    I am currently creating a web application that will allow a user to create a homepage from a template that is displayed to them. If the user is logging into the system for the first time, the template to create their homepage is displayed to them. However, if the user is logging in and has already used the template to set their homepage options, they are then forwarded to their homepage.
    The users options for their homepage are stored in a database. The problem I am having is trying to generate the jsp page ( with HTML inside also ) using SQL statements that query the table that store the users options.
    Eg. an SQL query queries the DB to see wht options the user has selected. Can anyone help me / advise me how to use these queries to generate the homepage. Thanks in advance!

    Hi aniseed,
    Thanks for a prompt reply.
    So for example can you tell me if the following sample approach is ok.
    <html>
    <head>
    <body>
    <sql:query name="query">
    SELECT * FROM SettingsTable WHERE links == "yes"
    </sql:query>
    <%-- Then to use this query result to insert selected hyperlinks that the user wants in their homepage, I would do the following ....... ? --%>
    <% if (query.size() == 0)
    <table>
    <td>
    <tr>
    </tr>
    </td>
    </table>
    %>
    Thanks again

  • How to generate the BPEL interface from XSD?

    I am new to the BPEL. How to generate the BPEL interface from XSD because I need the inputed payload to have a complex type instead the simple string?
    Thank you

    I made the following change to the xsd file, however when the input type change to emailDataType, it is underline by red color. and the bpm process, activity guide, organization become the unknown project object.
    <?xml version="1.0" encoding="UTF-8"?>
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/SampleBPM/SampleEmailNotification/SendEmail"
         xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="process">
              <complexType>
                   <sequence>
                        <element name="input" type="emailDataType"/>
                   </sequence>
              </complexType>
         </element>
         <element name="processResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="emailDataType" >
    <sequence>
    <element name="toEmailAddress" type="string" />
    <element name="ccEmailAddress" type="string" />
    <element name="emailSubject" type="string" />
    <element name="emailContent" type="string" />
    </sequence>
    </complexType>
    </schema>
    The XSD file is viewed by the design mode is fine on JDeveloper. Please help!

  • How to generate Word document from JSP ?

    Hi,
    I want to generate Word documnet from JSP. I am using Neva objects to generate Word document. Now my problem is Word doc generation code works alright as a Java application but when I place that piece of code in a JSP bean it throws an exception. The reason seems to be unavailibility of DLLs and other files of Neva in Tomcat environment. I do not want to use other complex packages like JIntegra, I would prefer any freeware solution. There is not much info. about Word document generation on POI project in Jakarta site.
    Could anyone suggest way out ? Any Java examples doing the same would be of great help.
    Thanks,
    Akash

    Hi Saurabh,
    Thanks for the reply.
    I have tried that too. Problem with that solution is that if you have used CSS in your JSP code MS word does not understand it and generates word doc which is not the same as HTML which JSP otherwise would have generated.
    Akash

  • Generate table/view automatically from xsd

    Hello all,
    following requirement: I receive xml files and appropriate xsd. I don't want to parse the xml by hand (e.g. I know of the possibility to create views from xml with extract - extracting elements manually). Is it any possibility to achieve this:
    input: xml file with xsd -> automatical processing: something what I don't know -> output: view. How I already mentioned I just know of the possibility to extract the values manually. After a brief search I found DBMS_XMLSCHEMA.registerSchema but I don't know if it helps me. Registering xsd makes the DB know how the xml look like.
    Do you have any ideas?
    Thank you in advance for your answers. I appreciate any hint.
    Kind regards,
    Anton

    >
    But you don't have to program element 1 in column 1, element 2 in column 2 etc. It handles it automatically. You just say insert into <your table 1> ds.Tables["table1 from xml"].
    >
    it's look as
    insert into <table_name>
    select *
       from <some table or view>but
    what if table will be altered, say add column
    or
    what if
    select *
       from <some table or view>will be return more columns than in <table_name>
    you get errors
    as for
    >
    ds.Tables["table1 from xml"]
    >
    not sure what is work correctly on complex schema with complex type
    if you have simple xml
    you can try to parse it dynamically:
    - parse xml to find list of tags with path
    - create script which will be generate script for xml like
    select <columns>
    from <table>
    , xmltable (
    <columns>
    )then create view on the above script
    if your xml structure will be often changing then you must be recreate your script and recreate view
    for xml sample from xsd
    http://www.codeproject.com/Articles/400016/Generate-Sample-XML-from-XSD

  • Generate xml from xsd file

    i would like to make my java application automaticaly convert a given .xsd file to an .xml one.
    i know that with jdev you can generate an xml file from xsd one, and i want my application do the same thing.
    i know also that i can use JAXB: first i bind the xsd file then i marshall the java class created to obtain xml. But i dont know how to do it.
    is there a simple way to use the "things" behind the jdev xml generation from xsd.

    Please refer
    http://www.developer.com/java/web/article.php/3722211/Using-JAXB-in-JDeveloper-1013.htm
    JDeveloepr 11g includes JAXB 2.0.

  • How to generate a file from JSP form

    Hi,
    I want to generate a file from the informations of a form(JSP).
    Which classes do I have to use ?
    Thanks.

    Of course you have to use the standard servlet classes to retrieve the request parameters from the form.
    ie request.getParameter();
    package "java.io" gives you File input/output ability.
    If you are generating a text file, thats probably the BufferedWriter and FileWriter classes.
    Cheers,
    evnafets

  • Package issue for the generated types from XSD

    Hi,
    We are using top-down approach to generate the webservices using JDeveloper. All our wsdl we are including common XSD which defines a type to store the error information to be sent to the client when webservice fault occurs.
    <FaultType>
    <Errorcode/>
    </FaultType>
    While generating the webservice from WSDL which includes above xsd, A java class is created in the package which is specified in the wizard. For example com.example.FaultType
    Every module is specifying their own package which is resulting in this class being generated in different package though Class definition is same.
    How can we solve this problem. Should we use the namespace to generate the package where this class will be generated always in the same pacakge.
    It is suggested from the documentation that we should explicitly specify the package instead of relying on the namespace.
    Regards
    Ashwani

    Hi Shweta,
    Most likely, you are having an issue with the message format used. The DII sample code that you are using may have been written for RPC/encoded service while the WSDL you are using advertize a service that is using documet/literal message format.
    When you have issues like you have here, the best is to look at the raw payload exchanged between the clients and the service endpoint, and compare them to figure out what differs.
    Payload captured with your DII code:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://addr.webservices.samples.websphere.ibm.com">
    <env:Body>
    <ns0:getAddressFromName>
    <name>hello</name>
    </ns0:getAddressFromName>
    </env:Body>
    </env:Envelope>
    Payload captured with Jdev generated proxy:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://addr.webservices.samples.websphere.ibm.com">
    <env:Body>
    <ns0:getAddressFromName>
    <ns0:name>hello</ns0:name>
    </ns0:getAddressFromName>
    </env:Body>
    </env:Envelope>
    You can see that 'name' uses a prefix in the second sample. You should be able to find your answer on the documentation (http://download-west.oracle.com/docs/cd/B31017_01/web.htm).
    Using DII code requires a much dipper understanding on way XML need to be formated, based on the WSDL. Using the classes generated by JDeveloper will also have the advantage of making it easier to use WS-Security and other advanced features, once you get to the point were you want to consume more complex services.
    Hope this helps,
    Eric

  • Generating JAXB classes from an XSD

    Hi All,
    Can anyone please tell me how to generate Jaxb classes for xsd in eclipse , or in ant .
    Thanks and Regards

    Try here as well
    https://jaxb.dev.java.net/

Maybe you are looking for

  • Personas- what are the settings required to make them display

    I have an XP machine where personas only show as a solid color. I have a WIN 7 machine with multiple users - some users work fine and some switch off and on between working and showing only a solid color. I want to know the config settings to look at

  • UTFDataFormatException on Serialized File

    I'm trying to update a sequential-access file (created with ObjectOutputStream and the like). To update an object, I'm copying the whole file to a temporary file, then copying back 1 object at a time, replacing the one to be updated with the updated

  • A  line a day - new colour today

    todays new vertical line is a lovely bright red. first one like that. looks nice with the yellow, magenta and cyan ones, but its very lonely in the middle of the display, so, hopefully tomorrow it will have another new line right next to it. also hav

  • Error installing Oracle9i Forms Demos

    I have downloaded full demo of Oracle9i Forms (forms9iDemos9_0_0_1.zip) and installed it in 9iDS home. Everytime I click on every link in the sample page, it shows forms error message: FRM-92610: WEB Client Version too old. My jinitiator version is 1

  • ICloudPages check spelling for a non-English

    Hi. In the iCloudPages - how to change SpellChecker from English to non-English? I thought it should work automatic but it doesn't. Couldn find a Dictionary selector or any other possabilities. Only ON & OFF button. P.S. I'm interested with Russian l