I have servlet deployed in JBoss. I want to read/write data into a text file based on the client input. Where should this text file be put in the JBoss directory structure?
相关问题
- how to create files under /WEB-INF/
- tomcat websocket servlet listening port
- How to get Spring to wire my JmsComponent
- Browser cache files not getting updated after a ne
- Using regular expressions for filter-mapping
相关文章
- Intermittent “sslv3 alert handshake failure” under
- java.lang.NoClassDefFoundError: javax/servlet/http
- Forward request from servlet to jsp
- Intercept @RequestHeader exception for missing hea
- Integrating Jetty with RESTEasy
- How to abort Tomcat startup upon exception in Serv
- XML Parsing Error in Firefox developer console
- What versions of Jackson are allowed in JBoss 6.4.
There the
/data
directory is for.Its absolute path is available by the
jboss.server.data.dir
system property.See also:
Note that you're this way tight-coupling the web application code to a specific server. If you ever want to change servers, keep in mind to change the above code as well to whatever the new server supports (or not).