You are viewing outdated content for BUG. If you have a BUG Y.T. edition or 2.0 series device, please visit our updated wiki: http://wiki.buglabs.net



WebTechnologies

From BUG Wiki

Revision as of 01:58, 3 March 2011 by GNUtoo (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Introduction

The OSGI java framework include a web server, and so we can make web pages printing html and javascript in java.

How to wrapp javascript in Java

cat "$@" |sed 's#\\#\\\\#g' | sed 's#"#\\"#g'|sed 's/^/page.println("/' | sed 's/$/");/';echo ""