CLEANACCESS Archives

February 2007

CLEANACCESS@LISTSERV.MIAMIOH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mike Diggins <[log in to unmask]>
Reply To:
Cisco Clean Access Users and Administrators <[log in to unmask]>
Date:
Sat, 24 Feb 2007 20:32:24 -0500
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (82 lines)
On Fri, 19 Jan 2007, Lanstein, Alex C wrote:

> I wrote some extensions to the actual api (cisco_api.jsp) to access the reports:


I attempted to apply the code referenced above to my own cisco_api.jsp 
file. Actually I just took the 'getreportlist' as that's all I needed.

// Custom report
         else if(fDel && oper.equals("getreportlist"))
         {
         String usr = request.getParameter("usr");
         if(usr == null) usr = "";

         String usrip = request.getParameter("usrip");
         if(usrip == null) usrip = "";

         String usrmac = request.getParameter("usrmac");
         if(usrmac == null) usrmac = "";
         DMReportManager dmrm = DMReportManager.getInstance();
         String whereClause = dmrm.getWhereClause(-1, "", "", usr, "", usrip, usrmac);
         String orderClause = " ORDER BY report_time DESC";
         ArrayList reports = dmrm.getDMReportList(whereClause + orderClause);
         String report_ids = "";
         for(int i = 0; reports != null && i < reports.size(); i++)
         {
             DMReport dmr = (DMReport)reports.get(i);
                 if (report_ids != "")
                         report_ids = report_ids + "," + dmr.getId();
                 else
                         report_ids = report_ids + dmr.getId();
         }
%>      <!--report_ids=<%=report_ids %>--> <%
         return;
         }


Now, when I go to https://cca/admin/cisco_api.jsp, I get the following 500 
(Server error):

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 1,024 in the jsp file: /cisco_api.jsp

Generated servlet error:
     [javac] Compiling 1 source file
     [javac] 
/perfigo/control/tomcat/work/Standalone/localhost/admin/cisco_api_jsp.java:1300: 
getDMReportList(java.lang.String,boolean) in 
com.perfigo.wlan.web.admin.DMReportManager cannot be applied to 
(java.lang.String)
     [javac] 	ArrayList reports = dmrm.getDMReportList(whereClause + 
orderClause);
     [javac]                                 ^
     [javac] 1 error


Any idea what might be wrong? I'm lost here as I don't know JSP at all.

-Mike

>
>
> -----Original Message-----
> From: Cisco Clean Access Users and Administrators on behalf of Mike Diggins
> Sent: Fri 1/19/2007 3:36 PM
> To: [log in to unmask]
> Subject: API Interface to REPORTS
>
> I know some of you are using scripts to remotely access features of the
> CCA administrative interface. I'm interested in building a simple
> interface to allow our administrative support staff quick access to a
> users report as shown in the CAM. I'd simply like them to enter the userid
> in question into a Web Page form, and have it return the latest report.
> Has anyone attempted this? Is it even possible to do?
>
> -Mike
>
> P.S. I know I can create read-only admin accounts for access to the CAM, I
> just don't like that everything in the configuration is revealed to them.
>

ATOM RSS1 RSS2