Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Web Development (https://www.askmehelpdesk.com/forumdisplay.php?f=467)
-   -   Can we get Database Schema from XSD that create JSP dynamically (https://www.askmehelpdesk.com/showthread.php?t=289649)

  • Dec 8, 2008, 03:59 AM
    mona04
    Can we get Database Schema from XSD that create JSP dynamically
    Is it possible to input an XSD and read database schema from this to create JSP dynamically based on database and their relationships?
    If its possible then how?
  • Dec 12, 2008, 07:36 PM
    crigby

    Hi,
    I believe you are actually asking if you can read a databse schema into XML format; yes by parsing it into that format. And creating JSP pages on a Web browser with it; yes, through the use of Java to parse the XML int an (X)HTML format for display. Not a small topic that can be summed up in a paragraph or two. Try:
    CodeGuru: XSD Tutorial: XML Schemas For Beginners
    for a start to your understanding of the subject, and check back if you want.
    Peace,
    Clarke
  • Mar 9, 2009, 04:52 PM
    zxed
    Quote:

    Originally Posted by mona04 View Post
    Is it possible to input an XSD and read database schema from this to create JSP dynamically based on database and their relationships?
    If its possible then how?

    Yes it is possible... but you will be stuck with crap,

    You are better of breaking the solution into two parts
    1. XSD to DB
    2. DB to code

    For 1... there are a ton of create db from xsd tools. so pick any. end up with a sold database.

    For 2... use an O/R mapper such as llblgen... llblgen works with .net. there are others out there that may output to jsp... O/R mapper create "class-code" that maps to your db code...
  • Mar 9, 2009, 06:32 PM
    crigby
    Hi,
    Since XML is an SGML variant that allows a free-form tag (that would be the field name of the database) and then builds from there. I suggest MySQL since it is also Sun as Java is. You did not specify a database. There is JDBC (Java DataBase Connector) that works with other databases, as well. For a discussion of this:
    http://forums.mysql.com/read.php?39,20964
    There is another solution. It is more elegant, though more more involved. It is the use of Linux or Windows with MySQL or PostgreSQL, and Drupal (which involves PHP for full functionality.) See:
    drupal.org | Community plumbing
    It is a beautiful system, open source, lots of templates and modules. Learning curve can be a bit much, but the demand for developers is amongst the highest in the world.
    Peace,
    Clarke

  • All times are GMT -7. The time now is 04:36 PM.