2.0 | 1 rating Rate this file 35 Downloads (last 30 days) File Size: 19.8 KB File ID: #22476
image thumbnail

Java Web Example Guide End To End Chapter



This is the source files for the example discussed in the Java Web Example Guide End To End Chapter

| Watch this File

File Information

This is an end to end example of how to use Builder JA (Java Builder) to create a full web application that utilizes data and WebFigures to display MATLAB Figurues on the Web in an interactive way.

This example shows the "Magic Square" function in MATLAB where a user can specify the size of the square and we display it along with a surface plot of that matrix.

WebFigures is an AJAX application that enables end users to interact with the graphic to rotate/zoom/pan as they would from within MATLAB.

This example has been tested in Tomcat, please follow all of the build instructions either in the web example guide or in the build steps included with this file.

For more web examples please visit the Web Example Guide at: http://www.mathworks.com/access/helpdesk/help/pdf_doc/compiler/example_guide.pdf

Required Products MATLAB Builder JA
MATLAB Compiler
MATLAB release MATLAB 7.7 (R2008b)
Other requirements Some J2EE compliant web server that uses a Java JRE (WebSphere uses a custom JRE and there will be additional steps to get that running) The Java JDK to compile the components and build the war file.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
31 Aug 2009 mark  
17 Feb 2009 daniel k1

on unix based system the mcc command as described in the documentation gives an error; you should use the command instead (replace " with ' and, \ with / ):
-begin code
mcc -W 'java:examples,MagicCalc' -d ./scratch -T 'link:lib' -v 'class{MagicCalc:./webapp/WEB-INF/mcode/getMagic.m,./webapp/WEB-INF/mcode/getMagicWebFigure.m}'
-end code
to compile.

Contact us