{"id":165,"date":"2015-06-19T14:53:06","date_gmt":"2015-06-19T14:53:06","guid":{"rendered":"http:\/\/carleton.ca\/nmai\/?page_id=165"},"modified":"2026-02-10T10:24:56","modified_gmt":"2026-02-10T15:24:56","slug":"magenta-web-interface","status":"publish","type":"page","link":"https:\/\/carleton.ca\/nmai\/research-projects\/magenta-2\/magenta-web-interface\/","title":{"rendered":"Magenta Web Interface"},"content":{"rendered":"\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n            <div class=\"cu-textmedia flex flex-col lg:flex-row mx-auto gap-6 md:gap-10 my-6 md:my-12 first:mt-0 max-w-5xl\">\n        <div class=\"justify-start cu-textmedia-content cu-prose-first-last\" style=\"flex: 0 0 100%;\">\n            <header class=\"font-light prose-xl cu-pageheader md:prose-2xl cu-component-updated cu-prose-first-last\">\n                                    <h1 class=\"cu-prose-first-last font-semibold !mt-2 mb-4 md:mb-6 relative after:absolute after:h-px after:bottom-0 after:bg-cu-red after:left-px text-3xl md:text-4xl lg:text-5xl lg:leading-[3.5rem] pb-5 after:w-10 text-cu-black-700 not-prose\">\n                        Magenta Web Interface\n                    <\/h1>\n                \n                                \n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n<p><strong>[<a href=\"http:\/\/www.employees.org\/~alokem\/code\/MagentaQuery.jsp\">source<\/a>]&nbsp;MagentaQuery.jsp<\/strong><\/p>\n\n\n\n<p>A Java Server Page that serves a simple form for dispatching messages to a magenta (or any other socket-based application). It can be run on any webserver that supports JSP. The instructions below apply to<a href=\"http:\/\/jakarta.apache.org\" target=\"_blank\"> Jakarta Tomcat<\/a> &#8211; an Apache based applications server with a servlet engine for serving JSPs and servlets.<\/p>\n\n\n\n<p>This code can serve as a template for writing more intelligent magenta query forms (i.e. drop down boxes to choose the action, etc.)<\/p>\n\n\n\n<p>Jakarta is an umbrella term for a group of open source software projects based on the Java platform. Tomcat is one of those projects &#8211; a servlet + JSP engine. At the time of writing the latest Tomcat version was 3.2.2.<\/p>\n\n\n\n<p>Here&#8217;s the &#8220;minimalistic&#8221; how-to for installing <a href=\"http:\/\/tomcat.apache.org\/tomcat-3.2-doc\/uguide\/tomcat_ug.html\" target=\"_blank\">Tomcat 3.2<\/a> (this is one of the documents in the <a href=\"http:\/\/tomcat.apache.org\/tomcat-3.2-doc\/\" target=\"_blank\">Tomcat documentation set<\/a>)<\/p>\n\n\n\n<p>Some hints for installing jakarta-tomcat under linux: <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/index.html\">Install Java SDK<\/a> &#8211; followed RPM version button. Downloads a binary , source it to produce an RPM. Install the RPM using &#8220;rpm -iv rpm-file-name&#8221;. Set TOMCAT_HOME and JAVA_HOME in your .cshrc file (for convenience). You might need to unblock port 8080 in your firewall rules (or whatever port you run the server on).<\/p>\n\n\n\n<p>Start up a Magenta&nbsp;Agent&nbsp;or derived object on any accessible host (although localhost will do nicely). You should be able to pass queries to the Magenta using the web interface! [removed wiki spam]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[source]&nbsp;MagentaQuery.jsp A Java Server Page that serves a simple form for dispatching messages to a magenta (or any other socket-based application). It can be run on any webserver that supports JSP. The instructions below apply to Jakarta Tomcat &#8211; an Apache based applications server with a servlet engine for serving JSPs and servlets. This code [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":145,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_cu_dining_location_slug":"","footnotes":"","_links_to":"","_links_to_target":""},"cu_page_type":[],"class_list":["post-165","page","type-page","status-publish","hentry"],"acf":{"cu_post_thumbnail":false},"_links":{"self":[{"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/pages\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":1,"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/pages\/165\/revisions"}],"predecessor-version":[{"id":166,"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/pages\/165\/revisions\/166"}],"up":[{"embeddable":true,"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/pages\/145"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"cu_page_type","embeddable":true,"href":"https:\/\/carleton.ca\/nmai\/wp-json\/wp\/v2\/cu_page_type?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}