java - How to add external resources to dynamic web project eclipse? -
i'm creating dynamic web project in eclipse using jsps , java servlets, want add external files edited using app. put them such can open them app , save edited version - , provide link download of edited file?
thanks
where put them
nobody cares. really. long it's not in deploy folder, of course.
if concrete problem avoiding hardcode exact external location in java source code, provide vm argument, environment variable, properties file setting, or whatever externally configurable. detail, see recommended way save uploaded files in servlet application.
and/or if concrete problem serving files web, either tell server publish external location web well, or create servlet reads external location , writes response. detail, see load images outside of webapps / webcontext / deploy folder using <h:graphicimage> or <img> tag.
Comments
Post a Comment