• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java authoring with XML

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I saw this type of post somewhere. I wonder under what circumstances it is applied. Can somebody give me a concrete example and how it work. Simple example will be sufficient. Thanks alot.
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Give us more details about what U want.
I know it's very easy to authorize with LDAP hierarchy.
I think It is possible to have LDAP data under XML format.
*A specification about authoring in XML is AuthXML ( go to http://www.w3c.org)
*Oasis has got a language to describe security assertion :
SAML Security Assertion Markup Language ) http://www.oasis-open.org/committees/security

------------------
---------
Guillaume
 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let say if i read an article describing how to use Java Language to create website from the data store in an xml file. If the xml file describes the organization of a company, like president, vice president, secretary so on and so. Then how could i use Java to process this xml file to transform it into a web browser so that viewer can see the organization of the company. Later on, i only have to edit my xml file to add or remove information without touching my Java code. How could this happen? Thanks alot.
 
Guillaume Compagnon
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I have understood, sounds to be a COntent Management system, is it right ?
You ve got your data in a DataBase, and the java program will extract data from DB tables (with SQL) and create XML data sheet , then the XML data sheet will be processed (Transformed) with XSL to HTML (your website!!)
The API for using XML in Java is JAXP (Java API for XML Parsing) http://java.sun.com/xml/xml_jaxp.html
The API for using SQL in Relational DB is JDBC http://java.sun.com/products/jdbc/
a tutorial about using JAXP is http://java.sun.com/xml/tutorial_intro.html

some example of Content Management Framework in Java & XML are www.openmarket.com www.jahia.com
 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, it is very like what i am looking for. Thanks a lot. I will look at those website.
 
Guillaume Compagnon
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All these products use the MVC model pattern
(Model View Controller)
the View is the XML sheet template (just the structure)
the controller will see what is asked by the client (the all company employee list or just the name of the prettiest secretary )
the Model will execute the SQL statement in the DB and populate the View (the template)
if U understand how MVC works , U will improve your knowledge on general content management architecture
A old but very good article about the MVC : http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
 
Guillaume Compagnon
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I forget :
apache org has implemented a MVC framework : the STRUTS
http://jakarta.apache.org/struts/
A another very interesting product is jetspeed that is a XML Java framework ... http://jakarta.apache.org/jetspeed/site/index.html
 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems like many new things to pick up. What a scary and wonder IT field. Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic