• 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

Advise on Model

 
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a doubt on designing model using XML & XSL. I get a XML file from server and need to display particular elements & attributes to the user in a web page and user can inturn update elements so again i need to compose an XML file with updated elements and send it across to server.
IMO, first i parse the incoming XML file and retrieve reqd. elements in collections and display to the user in JSP here i dont touch XSL at all.
So my question, is there any efficient way to do this process. How XML & XSL can be used in this scenario.
Thanks,
Anil
[This message has been edited by Anil Vupputuri (edited November 01, 2001).]
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is Some food for thought
Keep the XML document on the server and this way you can keep your client really thin. Use XSLT transfromation on the server, generate a HTML/JSP page with ALL the elements and serve it to the client. Also display a form where the user can select the node that he/she wants to change. Once the form is submitted with new values, get the changed value(s) from request parameters and change the XML on the server.
Advantages -
Thin client, all processing isolated on the server.
Design considerations -
What if two clients change the same node at the same time? What if the document has changed on the server after it was served to the client?

------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
Co-author of Java 2 Certification Passport
 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Clark's XSL transformer is the best.Thx Ajith.
Anil
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic