#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    Amersfoort, The Netherlands
    Posts
    10
    Rep Power
    0

    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. #2
  3. No Profile Picture
    Clueless llama
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2001
    Location
    Lincoln, NE. USA
    Posts
    2,353
    Rep Power
    117
    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"

IMN logo majestic logo threadwatch logo seochat tools logo