iscobol.mobile.license.2021=<your license code> iscobol.exception.message=2 |
iscobol.mobile.license.2021=<your license code> iscobol.exception.message=2 |
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>testHTML</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <filter> <filter-name>isCOBOL filter</filter-name> <filter-class>com.iscobol.web.IscobolFilter</filter-class> </filter> <filter-mapping> <filter-name>isCOBOL filter</filter-name> <url-pattern>/servlet/*</url-pattern> </filter-mapping> <servlet> <servlet-name>isCobol</servlet-name> <servlet-class>com.iscobol.web.IscobolServletCall</servlet-class> </servlet> <servlet-mapping> <servlet-name>isCobol</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> <listener> <listener-class>com.iscobol.web.IscobolSessionListener</listener-class> </listener> </web-app> |
<html> <head> <title>Test Mobile </title> <link href="jquery.mobile-1.3.0.min.css" rel="stylesheet" type="text/css" /> <script src="jquery-1.8.2.min.js"></script> <script src="jquery.mobile-1.3.0.min.js"></script> <script> function handleError (jqXHR, textStatus, errorThrown) { alert (textStatus +" "+ jqXHR.status + " "+jqXHR.statusText + "\n" + jqXHR.responseText); } function handleSuccess (data, textStatus, jqXHR) { response = jqXHR.responseText; try { xmlDoc = jQuery.parseXML (response); } catch (err) { alert (response); return false; } xml = jQuery (xmlDoc); _status = xml.find ("_status"); _message = xml.find( "_message" ); _hello = xml.find( "hellotext" ); jQuery("#hello_div").html(_hello.text()); return true; } function callServer (cobolProg) { var url = "servlet/isCobol(" + cobolProg + ")"; jQuery.ajax(url, { success: handleSuccess, error: handleError }); return false; } window.onload = callServer("HELLO"); </script> |
</head> <body> <div data-role="page"> <div data-role="header" data-theme="a"> <h1>isCOBOL MOBILE</h1> </div><!-- /header --> <div data-role="content" data-fullscreen="true"> <div id="hello_div" align="center"></div> </div><!-- /content --> </div><!-- /page --> </body> </html> |
File | Web Site | Direct URL |
---|---|---|
jquery-1.8.2.min.js | ||
jquery.mobile-1.3.0.min.css | ||
jquery.mobile-1.3.0.min.js |