PDA

View Full Version : reloading problem


mallesh
03-19-2004, 09:02 PM
Hi,

I am calling jsp pages from laszlo application using LzBrowser.loadURL() method that is working fine But if i want to come back from the jsp (or it may be html also)to laszlo appln it will reload the laszlo application again.But i dont want to reload the appln becouse i going to lost the what i done previously.
So is there any solution for this?

Thanks
Mallesh.

antun
03-22-2004, 09:20 AM
There is a solution, but you have to build it into your application. What you have to do is to record user actions in the Laszlo app, and save them to either a JSP that recognizes the user's session, or to a cookie.

Then whenever the Laszlo app starts up, you read the cookie/JSP and go through those actions.

In general it's best to avoid navigating away from and back to the app. One way of getting around the problem is to pop up new browser windows from the Laszlo app.

-Antun

vfunshteyn
03-22-2004, 12:37 PM
When developing Laszlo apps, my preference would be to avoid mixing traditional HTML UI into the application workflow. If you are using JSPs to return some data to the user, it would make more sense to use them as a back end data source that returns XML to LPS, and to let the LZX application handle the rendering of the data.