PDA

View Full Version : how to get data in jsp page from lzx


jcarlosmissias
09-19-2005, 05:18 PM
example how to get data in jsp page from lzx

shankara
09-21-2005, 05:44 AM
Hi,

You need to convert the data in the jsp page into xml datasets and access them using the <dataset>tag into the laszlo application.

negttid
09-21-2005, 06:49 AM
I think, jcarlosmissias means the way around (vice versa). I guess, he wants to know how one can send data FROM lzx TO jsp.

Retrieving data FROM jsp TO lzx as XML Dataset is described in the documentation well:
http://www.openlaszlo.org/lps-latest/docs/guide/data-structures.html#data-structures.http

I would like to know more about the other direction, too. :-)

shankara
09-21-2005, 09:47 AM
Hi,

1.XML datasets can be dynamically generated by the jsp and laszlo app can access it using it
<dataset name="data" src="..jsp file name" autorequest="true" type="http"/>

Data path should be defined binding it to the view.
<view datapath="datapath">
text can be displayed using
<text datapath="@name"/>

2.To send data to a jsp file create a new <dataset>
and write a method to send the data using setQueryString(); and access them using request.getParemeter(); in the jsp file.

for more info take a look at:
http://www.laszlosystems.com/lps-3.0/docs/guide/data_app.html