PDA

View Full Version : LPS Request Types


Anne
01-11-2003, 11:16 AM
LPS Request Types

If you've spent any time looking at the examples, you've probably noticed
that the LPS allows you to view the source of an application in an HTML
page. This is done by appending "?lzt=source" to the same URL as the webapp.
This is a special request type that the LPS provides.

Here are some other request types. Feel free to try them on your favorite
LZX files:-

lzt=html
The default. Provides HTML wrapper page (the HTML page that presents the
SWF, and contains title and background color). If you don't append a
request type, this is what you get..

lzt=swf
Just the SWF; doesn't include the HTML. You might use this when
embedding
a small Laszlo application in a page.

lzt=source
Show the source in a <textarea> HTML element.

lzt=xml
Show the source as plain XML (for XML-aware browsers).

lzt=window
Show the application in a popup window sized to the canvas.

lzt=filter&filter=/LZViewer
Filter the application, using the LzViewer filter. Other filters can be
specified, and this is how you would also create dynamic LZX pages by
filtering though some server-side technology (e.g. PHP or JSP).


// Administrative Requests
A password is required for Administrative Requests. By default it is
'laszlo'.

lzt=log&pwd=laszlo
Show the log file.

lzt=clearcache&pwd=laszlo
Clear the server cache.

Enjoy!


-Antun Karlovac

inertia
01-31-2004, 07:39 AM
That's great, except isn't there a way to turn that off for a deployed application? I'm not comfortable with this, for example:

http://cal.deanforamerica.com:8080/lps-1.0.2/calendar/calendar.lzx?lzt=source

antun
01-31-2004, 09:00 AM
You can turn off specific request types in lps.properties. That's in:

WEB-INF/lps/config/

-Antun