I am trying to pass a String[] from a java class to a jsp file, i manage to pass a simple String, but i am stuck on this one for few days now. Can someone help me, i wold like the answer to be more detailed since i am new at this.

**Java class:**

```
public class UserArray extends Applet {

public String  javaArray [] =
        { "array 1", "array 2" , "array 3" };

public String [] getJavaArray() {
    return javaArray;
}
}

```

**JSP** 

```
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags" %>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <jsp:useBean id ="array" class="eu.xyx.ztr.applet.UserArray"/>
</head>
<body>
   <h4>

  <jsp:getProperty name ="array" property="javaArray"/> 

 </h4>

</body>

```

So far i have maage to obtain the address of String[]. I just want to obtain the values of javaArray and if it is posible to obtain them in a form like this:

```
<script>

    function addrow(tableID){

        var numeuser=document.numeuser;

        var nume=["adrian","cristi","levi",numeuser];
        var prenume=["ric","dre","asd"];
        var email=["rew@td","qq@eqwq","ee@ew"];

```