What kind of error message do you get??

WIth a quick look at your code there is one thing that I can think of. 
The variable str has package visibility so if the servlet that gets generated by 
Tomcat is not part of the anonymouse package (or the package you specifiy) it has no 
right to access str in test. 
Try making str public and see what happens.

STefan

Reply via email to