I'm a building a web application in java. I have to create an applet for displaying some charts to the clients. The problem is that I don't want the applet to connect directly to the database for security reasons.
Which is the best way to get the data without connection to the database? I was thinking of creating a servlet which sends the ResultSet or a list of Strings to the applet with URLConnection. But I'm not sure this is the correct way!