XML Feeds

.

[java-dev] Re: Announce: embedded web server for MaxMSP (beta)

Adam Murray adamjmurray at gmail.com
Thu Jan 17 00:14:52 MST 2008


I got JSPs to work. Just needed to add the jars from Jetty's lib/jsp directory (I used jsp-2.1), and then add the following handler in the handlers.setHandlers() call:

new WebAppContext(directory.toURL().toString(), "/")

This seems to break the DefaultHandler's behavior for favicon though (who cares?)

I also have some other changes that let me send messages like "set attrName attrValue" to the WebServer object in Max, and then I can access the value in the JSP with the ${attrName} syntax. So 2-way communication between the web browser and the Max patch is easily possible. Let me know if you would like to see the code.

-Adam


More information about the java-dev mailing list