I have worked with Java applications before; but you have to select a "main" for them, and the jsp does not have a main. I do not know where to specify a jdk so that the import statement would compile.
I hope I have given enough information. I have been using Google and this site; but I'm just not finding the information.
Thank you so much. [ August 14, 2008: Message edited by: Mary Taylor ]
I want to have my user upload a file to a MySql database. What is the best approach? I thought HTML was just for display, but jsp could be used for code segments. I wanted to display a JFileChooser for the user to select the file to upload.
I saw code on the web to import JFileChooser in a jsp so that is why I tried it.
Thank you very much; if this needs to be in another forum, please let me know then.
The reason it wouldn't work is because any Swing component you might add would be displayed on the server where the Java is running. That's not going to be of much use to your clients sitting in front of their browsers remotely.