org.symbian.tools.wrttools.previewer/http-content/wrtdebugger/connectionTest.jsp
author paulb
Mon, 29 Mar 2010 16:56:24 -0700
changeset 289 75070492d7b2
parent 41 fc4a1d68260a
permissions -rw-r--r--
Fix debug connection startup message
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41
fc4a1d68260a Preview is now feeded from the embedded HTML server
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 2
diff changeset
     1
<%@ page import="org.symbian.tools.wrttools.previewer.http.WebAppInterface, javax.servlet.http.HttpServletResponse" %>
2
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     2
<%
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     3
	String widget = WebAppInterface.decode(request.getParameter("widget"));
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     4
	String id = request.getParameter("session");
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     5
	
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     6
	if (WebAppInterface.isConnected(widget, id)) {
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     7
		response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     8
	}
e4420d2515f1 Initial version of WRT Debugger.
TasneemS@US-TASNEEMS
parents:
diff changeset
     9
%>