creating files from javascript interface | jeckels | 2013-07-25 14:33 |
Status: Closed | ||
Hello, I think you're on the right track here - you want to have some Java code running on the server that the JavaScript can poke via a HTTP request. I'd recommend creating a small Java module with a single controller class and a single action class that handles the request. I think this will be easier to maintain compared to a standalone servlet because you won't need to modify the core deployment descriptors to register the servlet and map it to a URL. It also makes it easier to do security checks and other validation because you'll be handed context about the current user, container, etc. Thanks, Josh |
||