simple static method question...

Hi,

I'm still learning jsp, so I'm still trying to figure out whats possible.

I currently have a servlet which I call, it accesses a database, creates an array, sets the array as an attribute and then forwards the user to a jsp file.

From the jsp file I can access the parameter, and print the contents of the array.

What I would like to know is it possible from a jsp file, to write some code that would call a static method in a servlet which would return a list. i.e so instead of the user having to browse to the servlet and be forwarded, could the uesr browse to a jsp page which would call teh servlets getList method?

Cheers

[670 byte] By [devdaveja] at [2007-10-2 15:38:09]
# 1
It is, and if you'd actually tried some code you would have seen that. Then your servlet would not be used as a servlet any more but rather a helper class. Why do you want to do it this way?
MichaelW13a at 2007-7-13 15:18:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...