File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Calling a function with 2 arguments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Calling a function with 2 arguments" Watch "Calling a function with 2 arguments" New topic

Calling a function with 2 arguments

Chanpreet Julka
Ranch Hand

Joined: Nov 09, 2001
Posts: 40
I have a JSP which calls a function that passes 2 arguments. The function is defined in bean.
The function is defined like this
public void getNextAntenna(String antType , String antName) {
I call the function like this antBean.getNextAntenna(antType, antName);
(ant Bean is my Bean ID).
When i run the JSP, it tells me that I have the wrong number of arguments. Am I allowed to call a function like this in a JSP? Thanks
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I don't see anything wrong with what you are doing. The function is expecting two parametsrs and you are passing the appropriate parameters right?

So much trouble in the world -- Bob Marley
Michal Bienek

Joined: Jun 17, 2002
Posts: 29
Try posting the trace you're getting. Is it from your webserver? At which point you may want to double check your compilation, make sure you have the most recent version of this jsp file deployed.
I agree with the previous posting in that nothing seems wrong in your description, so I have to assume that we don't have all the relevant info.
I agree. Here's the link:
subject: Calling a function with 2 arguments
jQuery in Action, 3rd edition