11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

webMathematica User Guide 113A drawback to this technique is that the code, MyFile.m, is available to be downloaded directlyfrom the web server by a direct request. If it contained private information, this might beconsidered a security risk.$TopDirectoryIt is possible to install packages and applications inside the Mathematica layout. This makesthem only available to that particular installation of Mathematica. Generally this is notrecommended.Absolute FilenameA last way of installing code is to use an absolute pathname. An example is the following.Get[ "d:\\MyWork\\LastOneThatWorked\\MyFile.m"]This type of loading is very common and is nearly always a very bad idea. It leads to fragilecode that requires a significant amount of maintenance. For very little extra effort, one of theother methods that have been described should be used.Extended Page LanguagewebMathematica provides a number of extended ways for a server computation to direct thecontents of the resulting web page. These are in addition to the basic tags such as evaluate.Expression LanguagewebMathematica support for the expression language gives a more concise way to call to Mathematicathan typically done in the evaluate tag. It is also much more suitable to be nestedinside another tag or an attribute.An example is shown below.The expression language form of evaluate is more concise and neater than the alternativeversion that relies on nesting an evaluate tag.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!