50
3.8 Returning General Content: Content.jsp
If  you  installed  webMathematica  as  described  
above
,  you  should  be  able  to  connect  to  this  JSP  via
http://localhost:8080/webMathematica/Examples/Content.jsp.  (You  may  have  some  other  URL  for  accessing  your
server.)
All of the examples up to this point return HTML to the browser, but the web can work with general content involv 
ing  many  different  formats.  MSPReturn  is  provided  to  allow  an  MSP  to  return  arbitrary  content.  Here  is  an
example  that  demonstrates  how  different  formats  can  be  returned.  The  source  is  in  webMathematica/ 
Examples/Content.jsp  and  webMathematica/WEB INF/Applications/ExampleUtilities/ 
Content.m.
First, here is the source.
<%@ page language="java"  %>
<%@ taglib uri="/webMathematica taglib" prefix="msp" %>
Live 3D Plotting
 
General Content

General Content

This example takes a format type and converts a notebook into 
this format type.  It returns the converted notebook.  

 
If[ MSPValueQ[ $$button],
Get[ "ExampleUtilities Content "];
MSPReturn @@ GeneralContent[ $$button]]
 

Please select a format:

 
 
 
Here is the Mathematica source.
 .
<





New Page 1








Home : About Us : Network : Services : Support : FAQ : Control Panel : Order Online : Sitemap : Contact : Terms Of Service

 

Our web partners:  Jsp Web Hosting  Unlimited Web Hosting  Cheapest Web Hosting  Java Web Hosting  Web Templates  Best Web Templates  Web Design Templates  Interland Web Hosting  Cheap Web Hosting  Filemaker Web Hosting  Tomcat Web Hosting  Quality Web Hosting  Best Web Hosting  Mac Web Hosting

 
 

Virtualwebstudio. Business web hosting division of Vision Web Hosting Inc. All rights reserved

Comcast Web Hosting