com.bristle.javalib.bean
Class MathBean

java.lang.Object
  extended by com.bristle.javalib.bean.MathBean

public class MathBean
extends Object

This class encapsulates mathematical functions in a Java Bean so they can be accessed as beans from JSP/JSTL EL expressions. Usage: - The typical scenario for using this class is:

<jsp:useBean id='myMathBean' class='com.bristle.javalib.bean.MathBean' /> <img src='getImage?name='image1.jpg&forceReload=${myMathBean.randomInt}'> Assumptions: Effects: - None. Anticipated Changes: Notes: Implementation Notes: Portability Issues: Revision History: $Log$


Constructor Summary
MathBean()
           
 
Method Summary
 int getMaxRandomInt()
          Get the max random int.
 int getMinRandomInt()
          Get the min random int.
 int getRandomInt()
          Get a random int.
 void setMaxRandomInt(int intVal)
          Set the max random int.
 void setMinRandomInt(int intVal)
          Set the min random int.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathBean

public MathBean()
Method Detail

getRandomInt

public int getRandomInt()
Get a random int.

Returns:
The random int

getMinRandomInt

public int getMinRandomInt()
Get the min random int.


setMinRandomInt

public void setMinRandomInt(int intVal)
Set the min random int.


getMaxRandomInt

public int getMaxRandomInt()
Get the max random int.


setMaxRandomInt

public void setMaxRandomInt(int intVal)
Set the max random int.