cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
264
Views
0
Helpful
1
Replies

Send JSP Java Bean Issue?? help please!

jfrelin
Cisco Employee
Cisco Employee

Hello. I'm using send jsp to gather some variables and assign them to a keyword. When I call the application via a HTTP trigger, I get the following:

Location: /receptstats.jsp

Internal Servlet Error:

javax.servlet.ServletException: bean parameters not found within scope

at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)

at _0002freceptstats_0002ejspreceptstats_jsp_1._jspService(_0002freceptstats_0002ejspreceptstats_jsp_1.java:126)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)

My Jsp looks like the following:

<%@ page language="java" import="java.util.*" %>

<%

response.addHeader("Refresh","10; url=http://192.168.0.16:8080/receptstats.jsp");

response.setContentType("text/xml");

%>

<jsp:useBean id="parameters" type="java.util.Dictionary"

scope="request"/>

<CiscoIPPhoneText>

<Title>RBMS Reception CSQ RealTime Stats</Title>

<Text>Agents Logged In: <%= parameters.get("LoggedUser") %>

Agents Ready: <%= parameters.get("AgentReady") %>

Agents Talking: <%= parameters.get("AgentWork") %>

Calls in Queue: <%= parameters.get("CallsQueued") %>

Oldest Call in Queue (sec): <%= parameters.get("OldestInQueue") %>

Total Calls Handled: <%= parameters.get("TotalCalls") %>

</Text>

</CiscoIPPhoneText>

Any idea why the bean can't find parameters function I've defined? Am I missing something in my install or a bean class or something? This is a fresh v3.5.2 IPCC install. Any help would be appreciated.

1 Reply 1

Sascha Monteiro
Level 6
Level 6

I think you need to create local variables in the application that you trigger.

You polulate these local variables with the stats you want.

Then reference to these variables in your jsp

http://www.cisco.com/en/US/products/sw/custcosw/ps1846/products_technical_reference_chapter09186a00801912f9.html#1068014

HTH