Running VL Web applications from iSeries

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Running VL Web applications from iSeries

Post by soa » Thu Mar 24, 2016 5:16 pm

We've checked in a simple hello world application and can see its (js & html) in /IASPDEV/LANSA_dc@pgmlib/x_lansa/x_V40/web/vl but we can't work out how to call it from the browser command line. We've tried adding an alias to our apache configuration (which is in't the same as the now standard lansa one) and can call hello_world.html but all we get is blank screen and the following source

<!DOCTYPE html>
<html lang="en" style="height:100%">
<meta charset="utf-8" />
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<body style="height:100%; margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0px">
<script src="/%{lansa_webalias}%/lansa_14_0_1_0/lansa.js"></script>
if(!LANSA){document.write("Failed to load lansa.js");return}
<noscript>This page requires JavaScript.</noscript>

We're obviously missing something but I can't find any documentation about how this is configured (I can't find anything except a handful of tutorials).

What do we need to do to get this working?

Posts: 176
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: Running VL Web applications from iSeries

Post by dannyoorburg » Fri Mar 25, 2016 9:03 am


Your URL should probably be


Did you try that?


User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Running VL Web applications from iSeries

Post by Stewart Marshall » Fri Mar 25, 2016 12:38 pm

LANSA installs a plugin that is used to interpret the URL provided and to convert some of the content of the HTML. Clearly, this is not being executed as the HTML you've retrieved still contains references to %{lansa_webalias}%.

There should be no need to modify the Apache config, so you should restore it back to the default.

This thread contains a sample http config.

Then format the URL as indicated in the documentation ... a_0060.htm

If you're still having issues, contact your local support

Stewart Marshall

Independent IT Consultant

Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Running VL Web applications from iSeries

Post by soa » Fri Mar 25, 2016 6:44 pm

Since its Easter Friday afternoon both of us need to get a life!

Thanks for the advice. I have a question about the documentation, The link you sent me I have seen before in this forum but it is not the same as the onefrom the public documentation site. The Visual Lansa Developer Guide is dated 22 December 2015 yet what you have sent is dated January 21 2016.

Post Reply