954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Error in JSP not allowing to use my class methods

I hope that I'm posting this correctly. I have populated a vector of my resultSet from a query. I tested it on an application side code and am now trying to access a method from my web side jsp.
Here is my error page:
org.apache.jasper.JasperException: Exception in JSP: /searchResults.jsp:32 29: String colChoice = request.getParameter("colChoice"); 30: String tableChoice = request.getParameter("tableChoice"); 31: 32: resultQuery.createSearchQuery(tableChoice, colChoice, searchWord);

Here is my embedded code:

<%
      ConnectDB resultQuery = new ConnectDB();
      Vector tableResults = new Vector();
      Vector row = new Vector();
      
      String searchWord = request.getParameter("searchWord");
      String colChoice = request.getParameter("colChoice");
      String tableChoice = request.getParameter("tableChoice");
      
      resultQuery.createSearchQuery(tableChoice, colChoice, searchWord);
      //tableResults = resultQuery.storeResultSet();
       
      %> 
<table border=2>
<%
        String strData;
        for (int i=0; i<tableResults.size(); i++)
        {
            row = (Vector)tableResults.get (i);
            for (int j=0; j<row.size(); j++)
            {
                strData = (String)row.get (j);
                %><p><%out.print(strData);%></p>
          <%}
        }
    
%>



can anyone help me figure why i can't access my method?

tmv105
Newbie Poster
22 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

Don't use scriptlets, put that code in a servlet.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You