View Full Version : Use IIS
markg
11-12-2003, 08:33 AM
Can IIS be used instead of Appache?
Thanks
antun
11-12-2003, 08:51 AM
The LPS does not need the Apache web server at all - it requires a Servlet Container (and ships with Jakarta Tomcat).
IIS and Apache are both web servers - they serve static HTML pages.
In a typical Laszlo deployment you might want to use both a servlet container and a web server, as you might have some technology (such as PHP or ASP) that requires a web server, and of course you need a servlet container for the Laszlo Presentation Server. In this kind of setup, the web server (Apache or IIS) accepts all incoming requests, and forwards the LZX ones to the servlet container.
In this case, yes you can use IIS as the web server. There's an article on that here:
http://www.laszlosystems.com/developers/download/installation-1.0.2/iis.php
-Antun
markg
11-12-2003, 09:20 AM
>it requires a Servlet Container (and ships with >Jakarta Tomcat).
What is that for?
antun
11-12-2003, 10:04 AM
The LPS is effectively a servlet. All servlets need a servlet container to run inside.
Are you asking what a servlet container is for?
-Antun
markg
11-12-2003, 10:10 AM
I really don’t understand what a servlet is.
I have my Web apps. that are using ASP.
If I want to keep my backend and middle tier but use your product for data presentation
what is a typical setup would you recommend?
antun
11-12-2003, 10:30 AM
You could install the servlet container (and LPS) on the same server that you host your ASP pages on. Or you could install it on a completely different machine.
Like I described above, you would set it up so that IIS accepted all requests and forwarded the LZX ones to your servlet container.
You might have to write a few ASP pages to return your XML data that you want to present. For example, say you have a bunch of financial data that you parse into a pretty-looking table, in ASP. To deploy a Laszlo solution, you would tweak your ASP scripts to output a single XML document (you would not need to worry about pagination or sort-by), and then have the Laszlo app layout the information.
With IIS I believe you don't have to install anything to run ASP pages. However if you wanted to have the server parse PHP pages, you'd need to install PHP itself. In short a servlet container is what's needed to run Java Servlets or JSPs. In many cases, people use servlets to do dynamic HTML pages (something that's more straightforward to do in something like ASP).
Does that help answer your question?
-Antun
markg
11-12-2003, 10:35 AM
>Like I described above, you would set it up so that >IIS accepted all requests and forwarded the LZX ones >to your servlet container.
What is a typical scenario for that?
antun
11-12-2003, 10:39 AM
I'm not sure what you mean exactly. Are you asking about the work involved?
-Antun
What is a typical scenario for that?
markg
11-12-2003, 01:05 PM
I still don’t understand how an ASP page will provide LZX application server with an xml data.
I understand what happens when I directly hit lzx file, but does it work
when I hit as asp page first?
antun
11-12-2003, 01:32 PM
Right now your ASP pages probably output HTML. You could change them to output just the XML data you need, as XML, and hit those pages from the Laszlo app.
I still don't understand how an ASP page will provide LZX application server with an xml data.
Yes - you can embed an LZX app in an HTML page, if that's what you mean, for example:
http://www.laszlosystems.com/demos/weather/
I understand what happens when I directly hit lzx file, but does it work when I hit as asp page first?
markg
11-12-2003, 01:37 PM
>and hit those pages from the Laszlo app
So you are saying that I could have an LZX page as a main comtainer that will request an xml data from ASP pages and render it into new LZX pages (controls)?
antun
11-12-2003, 01:41 PM
Yes, that's right.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.