-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Manriquez wrote:

> I have a method 
> 
> public String[] getColumns(HSSFSheet hssfsheet, boolean flag)
>  and inside this.
> 
>       Query query = Response.addQuery("output",mycolumns);
> 
> And the complier says that addquery isn't static, but I didn't defined the
> method as Static..

Request is an interface. When you did

    Query query = Response.addQuery("output", mycolumns);

Java assumes that you are looking for a class method (although
interfaces can't have them) on the Response interface.

What you need to do is pass the response object passed into
processRequest() to getColumns(). Your method signature for that method
would become:

    public String[] getColumns(Request request,
        HSSFSheet hssfsheet, boolean flag)

And you'd call addQuery() as follows:

    Query query = response.addQuery("output", mycolumns);

When you call getColumns(), it'd look something like this:

    public void processRequest(Request request, Response response)
    {
        // ...

        columns = getColumns(request, sheet, flag);

        // ...
    }

K.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCttvjmSWF0pzlQ04RAtZDAJsGRD/khGrlVQiGOyOMIh7kzEfDPQCbBRQ6
OzpRStmBUhsc5hmKzyjEL/Q=
=1Qei
-----END PGP SIGNATURE-----

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209983
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to