File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes function overloading problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "function overloading problem" Watch "function overloading problem" New topic
Author

function overloading problem

Karan Agnihotree
Greenhorn

Joined: Feb 26, 2008
Posts: 11
Hi all
I have a Controller from where i am calling two functions with same name and different defnitions. I am overloading the fuction in the service class. But even after building I am getting a error saying the class does not have a method with the definition of the function which was added newly.

Please find the code snippet below.

ReturnStatusBase rtBase = serviceTenderImpl.getServiceHistoryDetails(emailId,location+ticket);


ActionErrors errors = new ActionErrors();
int transactionStatus = rtBase.getReturnStatus();
if (transactionStatus < Constants.TRANSACTION_SUCCESS)
{
// transaction failed
handleErrors(errors, rtBase, pageLabels, getRequest());
logger.log(Level.DEBUG, "submitServiceHistory", 0, "submitServiceHistory(): Exiting.");
return new Forward("failure");
}

errors.add("Mail Sent", new ActionError("success",location+ticket,emailId));
this.saveErrors(getRequest(), errors);

logger.log(Level.DEBUG, "submitServiceHistory", 0, "submitServiceHistory(): Exiting.");
//return new Forward("success", form);
returnString="SHSTsuccess";
}
else if(requestType=="WAFG")
{
ReturnStatusBase rtBase = serviceTenderImpl.getServiceHistoryDetails(emailId);
ActionErrors errors = new ActionErrors();
int transactionStatus = rtBase.getReturnStatus();

Functions i have italisezed.

Please help in this regard.

Thanks

Karan
Karan Agnihotree
Greenhorn

Joined: Feb 26, 2008
Posts: 11
I am using the weblogic workshop for the same
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: function overloading problem
 
Similar Threads
Struts Message resources
How to Validate duplicate entries in database using struts1
Problem in displaying multiple search results
Struts 1.1 upload multiple files with multiple input elements
DynaValidatorForm question: