View Full Version : In memory Datasets
knuckleswanny
12-24-2003, 01:51 AM
I am wondering if I can create a representation of an xml document and reference it at runtime as a dataset. Instead of a jsp that acts like an xml document. Something along the lines of a java class that, when instantiated goes and gets some data from a database and creates an xml document. But instead of writing that xml document to the hard drive, it just leaves it in memory. Then have the dataset reference the instantiated class as the src.
Does this make sense to anyone? I'm just trying to find different ways around creating jsp's.
antun
12-24-2003, 01:30 PM
I'm not completely sure I understand the question. Are you asking if you can create XML nodes at run-time through script? If so, yes:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=351
Something along the lines of a java class that, when instantiated goes and gets some data from a database and creates an xml document.
A frequently used model in Laszlo application development is to have a server-side script like a JSP or a Java servlet (or any other server side script for that matter) that returns XML to the LPS over HTTP.
-Antun
knuckleswanny
12-25-2003, 02:26 PM
I answered my own question. From the MVC point of view, the view seems to have a lot of information that it doesn't need but that doesn't have to be the case. I can create an access layer of Servlets. So instead of a model layer full of beans and helper classes, the model can be made of Servlets and helper classes.
I was trying to figure out how to get the model to pass up a populated xml document to the view without the view knowing how it was getting the document.
Thanks.
k07032
04-14-2005, 06:12 AM
Do you have any example source code that can demonostrate how to use laszlo with MVC?
Thanks.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.