Stuart Rogers wrote:OK, but main() is a method of myneatapp as well as domycoolthing() so I would think this would work
main.sqlcmd = "hello world from sqlcmd";
but it does not.
I'm trying out things locally as a standalone program b4 transmorgifying it into a servlet.
Thanks to all who replied,
Still-learning Stuart
What you write there does not make any sense. sqlcmd is an instance variable. So you wouldn't access it with the class name anyway (you only do that for static variables). Then again, main isn't the class name but the name of the main() method, so that is even more strange.
I would really recommend you to google for the
java tutorial and get the basics before you try to dive into servlets/j2ee.