SueP
11-10-2004, 11:41 AM
I wrote a very simple .lzx file with a "hello world" button and a simple tree. When I access the page directly it works fine. I then tried to include the file inside of a jsp application and now it only displays the button, the tree doesn't appear at all.
Could this be because it can't find the <include href="lz/tree.lzx"/> in my laszlo file? But, it also has trouble recognizing other laszlo tags.
Here are all the different ways I tried to include my .lzx file into my .jsp page:
Attempt #1
<script src="/includes/embed.js"></script>
<script>
lzEmbed({url: 'test.lzx?lzt=swf', bgcolor: '#eaeaea', width: '640', height: '540'}, true);
</script>
Attempt #2
<div>
<script type="text/javascript" language="JavaScript" src="http://localhost:8840/lps-2.2/test.lzx?lzt=embed">
</script>
</div>
Attempt #3
<div>
<%@include file="/test.lzx" %>
</div>
Attempt #4
<div>
<jsp:include page="test.lzx" flush="true"/>
</div>
My ultimate goal is to try to get a laszlo tree component to communicate w/ my jsp app so that selecting an item in the tree will cause it to be displayed in my application. I'll probably have more questions about this later. For now I'm just frustrated trying to get it to display "Hello World"!.
Any help would be much appreciated!!
Thanks, Sue
Could this be because it can't find the <include href="lz/tree.lzx"/> in my laszlo file? But, it also has trouble recognizing other laszlo tags.
Here are all the different ways I tried to include my .lzx file into my .jsp page:
Attempt #1
<script src="/includes/embed.js"></script>
<script>
lzEmbed({url: 'test.lzx?lzt=swf', bgcolor: '#eaeaea', width: '640', height: '540'}, true);
</script>
Attempt #2
<div>
<script type="text/javascript" language="JavaScript" src="http://localhost:8840/lps-2.2/test.lzx?lzt=embed">
</script>
</div>
Attempt #3
<div>
<%@include file="/test.lzx" %>
</div>
Attempt #4
<div>
<jsp:include page="test.lzx" flush="true"/>
</div>
My ultimate goal is to try to get a laszlo tree component to communicate w/ my jsp app so that selecting an item in the tree will cause it to be displayed in my application. I'll probably have more questions about this later. For now I'm just frustrated trying to get it to display "Hello World"!.
Any help would be much appreciated!!
Thanks, Sue