Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'WebMathematica: Separating Functions and JSP pa...' topicStudent Support Forum > General > "WebMathematica: Separating Functions and JSP pa..."

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Richard
12/17/12 12:18pm

In Response To 'Re: WebMathematica: Separating Functions and JS...'
---------
I have experimented with 'get' but may be incorrect in my application of the method.

Within the JSP file I use get as follows:

<msp:evaluate>
Get[ "BasicModel`"];
</msp:evaluate>

<Some html>

<msp:evaluate>
GetVarsB["x+y-z==0"]
GetVarsA["x+y-z==0"]
</msp:evaluate>

------------------------
In the same directory folder I have a file called 'BasicModel.m', this contains the following text:

BeginPackage["BasicEqMuncher`"]

GetVarsB[thisconstraintlist_] :=
DeleteDuplicates[
<snipped for clarity>
]

Begin["`Private`"]

GetVarsA[thisconstraintlist_] :=
DeleteDuplicates[
<snipped for clarity>
]

End[]

EndPackage[]

------------------------

Do you see a problem with the above use of 'get' or WebMathematica? Neither GetVarsA or GetVarsB appear to be understood as functions within the JSP file.

Thanks.

URL: ,

Subject (listing for 'WebMathematica: Separating Functions and JSP pa...')
Author Date Posted
WebMathematica: Separating Functions and JSP pa... Richard 12/13/12 3:17pm
Re: WebMathematica: Separating Functions and JS... jf 12/13/12 7:06pm
Re: Re: WebMathematica: Separating Functions an... Richard 12/17/12 12:18pm
< Previous CommentHelp | Reply To Comment | Reply To Topic