|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Envoking a void method
I want to envoke a method (from a javabean)from a .jsp page.
This is the header of the method: public void read_ini_file(String[] args) throws IOException { Envoking the method using <%ID.read_ini_file();%> doesn't work. What is the correct way? |
|
#2
|
|||
|
|||
|
Well, your method definition says that it requires a String parameter be passed to it and you are not passing one. The void is the return value.
This is fundamental Java. I would strongly suggest that you learn Java basics before trying to do JSP's. Visit Suns site and do some of the tutorials there. http://developer.java.sun.com/developer/onlineTraining/ I would start with "The Java Tutorial" |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Envoking a void method |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|