This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
The post you found on the web is not viable.
Joined: Sep 11, 2000
Would it make sense from a design perspective to use the JFileChooser in a servlet? I guess not since that would be on the server ...