Note that there are some explanatory texts on larger screens.

plurals
  1. POJava Bean not being recognised
    primarykey
    data
    text
    <p>I have created a java bean with the following information:</p> <p>package: com.mysite</p> <p>class: Folders</p> <p>The file is located in ROOT/WEB-INF/classes/com/mysite/Folders.class</p> <p>and the call is: </p> <pre><code>&lt;jsp:useBean id="folders" scope="session" class="com.mysite.Folders" /&gt; </code></pre> <p>Here's the class if it helps it'a just simple because I want to get it up and running before I do anything more complicated.</p> <pre><code>public class Folders implements Serializable { public Folders(String accountNumber, String folderName, String groupName, ArrayList&lt;String&gt; folderNames, ArrayList&lt;String&gt; groupNames) { this.accountNumber = accountNumber; this.folderName = folderName; this.groupName = groupName; this.folderNames = folderNames; this.groupNames = groupNames; } public String getAccountNumber() { return accountNumber; } public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } public String getFolderName() { return folderName; } public void setFolderName(String folderName) { this.folderName = folderName; } public ArrayList&lt;String&gt; getFolderNames() { return folderNames; } public void setFolderNames(ArrayList&lt;String&gt; folderNames) { this.folderNames = folderNames; } public String getGroupName() { return groupName; } public void setGroupName(String groupName) { this.groupName = groupName; } public ArrayList&lt;String&gt; getGroupNames() { return groupNames; } public void setGroupNames(ArrayList&lt;String&gt; groupNames) { this.groupNames = groupNames; } private String accountNumber; private String folderName; private String groupName; private ArrayList&lt;String&gt; folderNames; private ArrayList&lt;String&gt; groupNames; } </code></pre> <p>with the same results each time.</p> <p>The error being: </p> <pre><code>SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /custom/folders.jsp(13,0) The value for the useBean class attribute com.mysite.Folders is invalid. </code></pre> <p>I've restarted both Tomcat and the server itself and neither have helped. Any insight to this issue is much appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload