Sending info from java in HTML to a separate java class
I'm hoping that someone can help me with this problem.
I have made a java program which basically makes some calculations, plots a graph of the results and saves this as a jpeg.
I have also made an html form with various dropdown menus and text boxes in which a user can enter their information. I want them to be able to click a 'calculate' button, which will send the information they have entered into the java application. The java will then make the required calculations, and the output graph should be displayed back on the html page so that the user can see their results. Hope this makes sense.
I have tried the following in the html:
This seems to work when I am sending variable between two java classes in pure java, but not when half of the java is embedded in the html header.
CalcClass Class2Object = new CalcClass();
Any ideas where I might be going wrong?
The html and class files are saved in the same folder so that shouldn't be an issue should it?