fMath for Java is a FREE solution to display and edit mathematics on web pages using Java components.

How to install the fMath taglib 1.0 - Standaloane example


	Download the java taglib from here. Also you have the test project.
	
	1. Copy the file fmath-taglib.jar in WEB-INF/lib folder.
		This will automatically load the tags.

	2. Copy the folder fmath in your web application;

	3. In your JSP you must add:
		<%@ taglib uri="http://www.fmath.info/plugins/taglib" prefix="fmath" %>

		and 

		<script language="JavaScript" src="fmath/fmath.js"></script>

		and now you can add the tag

		<fmath:formula id="FormulaId1">
			<mathml>
			...
			</mathml>
		</fmath:formula>


	4. Example how to use in jsp pages:

		<%@ taglib uri="http://www.fmath.info/java/taglib" prefix="fmath" %>
		<HTML>
		<HEAD>
		<TITLE>FMath Formula Tag</TITLE>
		<script language="JavaScript" src="fmath/fmath.js"></script>
		</HEAD>

		<BODY>

		<center>
		<h2>Test page for fmath taglib - Formula tag</h2>
		<h3>Display a mathml equation on html pages</h3>
		<fmath:formula id="FormulaId1">
				<mathml>
				<mrow>	<mrow mathsize='40'><mrow>
						<msup>
							<mn>2</mn>
							<mrow>
								<msup>
									<mi>x</mi>
									<mn>2</mn>
								</msup>
								<mo>+</mo>
								<mrow>
									<mn>4</mn>
									<mi>x</mi>
								</mrow>
								<mo>+</mo>
								<mn>4</mn>
							</mrow>
						</msup>
						<mo>+</mo>
						<mrow>
							<mn>4</mn>
							<mi>x</mi>
						</mrow>
						<mo>+</mo>
						<mn>45</mn>
					</mrow>
					<mo>=</mo>
					<mn>0</mn>
				</mrow></mrow>
				</mathml>
		</fmath:formula>
		<br>
		...
		</center>

		</body>
		</html>
	
	

`


www.learn-math.info | www.apprendre-math.info | www.aprender-mat.info | www.invata-mate.info
Designed by Diana Alexandru
free components MathML flex GWT LaTeX Web Editor free plugin MathML flash math Mathematics Equation Widget MathML flash LaTeX Mathematics FREE Editor Java