I'm coding a program in java that take a few information from a graph (X axis and Y axis), and then I need to take this information and pass to a JSP page.
this is the java
package view;
public class Axis{
       double[] axisX;
       double[] axisY;
       int test;
       public Axis(){
       }
       public void setAxisX(double[] axisX){
           this.axisX = axisX;
       }
       public void setAxisY(double[] axisY){
           this.axisY = axisY;
       }
       public double[] getAxisX(){
           return axisX;
       }
       public double[] getAxisY(){
           return axisY;
       }
}
Then in the JSP is this what I have to do?
<jsp:useBean id="view" class="view.Axis" scope="session"/>
Test: <%= view.getAxisX() %>
 
     
     
    