I'm use turbogears 1.0.2.2 for a web application, and as part of it i
want to serve a simple page that conains a java applet. (the tightvnc
java applet, actually).  I'm new to web programming so it's probably
something obvious.  Any pointers on how to serve up a java applet as
part of a .kid template?

I have a controller method that just fills in the display number and
the hostname.  The .kid template looks like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:py="http://purl.org/
kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"
py:replace="''"/>
<title>Welcome to TurboGears</title>
</head>
<body>
        <APPLET CODE='vncviewer.class' ARCHIVE='/static/vncviewer.jar'
WIDTH='800' HEIGHT='600'>
        <PARAM name=PORT value=${display}>
        <PARAM name=HOST value=${host}>
        <PARAM name=ENCODING value=Hextile>
        </APPLET>
</body>
</html>

when loading, this fails with:

...
File "/usr/lib/python2.5/site-packages/kid-0.9.5-py2.5.egg/kid/
parser.py", line 432, in feed
    raise expat.ExpatError(e)
ExpatError: Error parsing XML file '/home/john/phoenix-kvm/www/www/
templates/console.kid':
        <PARAM name=PORT value=${display}>
             ^
not well-formed (invalid token): line 10, column 13


Any pointers?
john.c


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to