Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Struts
The method doMarkDoneOutboundCall(null, String) is undefined for the type Done_jsp
Nikhi l Shah
Greenhorn
Posts: 12
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am trying to debug a code written by some one else and I confess, I am a true green horn. Appreciate your help!!
I feel it must be some setup issue.
Here is the error I am getting:
The method doMarkDoneOutboundCall(null, String) is undefined for the type Done_jsp
Here is the complete
jsp
code:
<%@ page language="java" buffer="none" %> <%@ page import="com.genesyslab.ail.AilLoader" %> <%@ page import="com.genesyslab.ail.AilFactory" %> <%@ page import="com.genesyslab.ail.Interaction" %> <%@ page import="com.genesyslab.ail.exception.RequestFailedException" %> <%@ page import="com.genesyslab.ail.AilFactory" %> <%@ page import="com.genesyslab.ail.Interaction" %> <%@ page import="com.genesyslab.ail.OutboundChain" %> <%@ page import="com.genesyslab.ail.OutboundRecord" %> <%@ page import="com.genesyslab.ail.OutboundService" %> <%@ page import="com.genesyslab.ail.Person" %> <%@ page import="com.genesyslab.ail.Agent" %> <%@ page import="com.lendingtree.*" %> <%@ page import="com.genesyslab.uadthin.interaction.InteractionKeyForm" %> <%@ page import="javax.servlet.http.HttpServletRequest" %> <%@ page import="org.apache.struts.action.ActionForm" %> <%@ page import="org.apache.struts.action.ActionMapping" %> <action:actions> <action:action name="markDoneOutboundCall" functionName="doMarkDoneOutboundCall" actionURL="markDoneOutboundInteractionAction.do" beanClass="com.genesyslab.uadthin.interaction.InteractionKeyForm"/> </action:actions> <% /* Get data from request */ try { String idInteraction = (String)request.getParameter( "idInteraction" ); String disposition = (String)request.getParameter( "disposition" ); System.out.println("value of idInteraction is" + idInteraction ) ; System.out.println("value of productName is" + disposition); /* Initialize AIL related data */ AilFactory factory = AilLoader.getAilFactory(); Interaction interaction = factory.getInteraction( idInteraction ); Person person = factory.getPerson( (String) interaction.getUserName()); Agent agent = (Agent) person; OutboundService outboundservice = agent.getOutboundService(); OutboundChain outboundchain = outboundservice.getChain(interaction); OutboundRecord outboundRecord = outboundchain.getActiveRecord();; outboundRecord.setCustomField("Call Disposition", disposition); interaction.setAttachedData("CallDisposition",disposition); interaction.saveAttachedData(); interaction.releaseCall(null); outboundchain.markProcessed(); doMarkDoneOutboundCall(null,idInteraction); } catch( RequestFailedException requestFailedException ) { System.out.println("Attached data update failed: " + requestFailedException); } //response.setStatus( HttpServletResponse.SC_NO_CONTENT ); %> <script language="javascript"> function onLoad() { } </script> <html> <head> <title> server time </title> </head> <body class="scrollBar backgroundRoundedPanel" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="javascript:onLoad()"> </button> </body> </html>
I have this in the WEB-INF\struts-config.xml
. . <action path="/getAutoMarkDoneOnOutboundCancel" type="com.genesyslab.uadthin.interaction.outboundchain.GetAutoMarkDoneOnCancelOptionAction" name="interactionKeyForm" scope="request"> <forward name="voiceMarkDone" path="/markDoneOutboundInteractionAction.do" /> <forward name="openMediaMarkDone" path="/markDoneOpenMediaOutboundInteractionAction.do" /> <forward name="no" path="/empty" /> </action> . .
Nikhi l Shah
Greenhorn
Posts: 12
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In web.xml I got this
<!-- Action Servlet Configuration --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-admin.xml</param-value> </init-param> <init-param> <param-name>config/supervisor</param-name> <param-value>/WEB-INF/struts-supervisor.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>validate</param-name> <param-value>true</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet>
olivier dutranoit
Ranch Hand
Posts: 81
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
maybe
you should
import the "doMarkDoneOutboundCall"
Just like the other imports.
Nikhi l Shah
Greenhorn
Posts: 12
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks for the reply @oliver, I am not sure how that would work since I am trying to call the function in that instance of the bean
look! it's a bird! it's a plane! It's .... a teeny tiny ad
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Simple jsp form
Why can't I get the Vector value in jsp(ModalDialog)?
how to change content type from multipart/form-data to text/html
showing error in jsp that data type value cannot convert to numeric
Submitting a text field along with a file?
More...