webproject

How to add web project module in existing java project in eclipse

杀马特。学长 韩版系。学妹 提交于 2019-12-11 12:34:35
问题 I have existing Java project and want to add web module to it. Is there any way to add dynamic web project as a module in a Java project using Eclipse? 回答1: Yes, you can. You need to go to your project settings, find "Project Facets" on the left. Then you can check "Dynamic Web Project" checkbox. Make sure to set up the facet before you hit "Apply" because it will be hard to do later on. There will be "additional configuration" button somewhere once you check the facet. Adding the web

How to secure the war file deployed in tomcat server?

懵懂的女人 提交于 2019-12-02 07:49:17
问题 I am developing web application and i host the application as a .war file in tomcat server. it was located in webapps folder of tomcat server.but i need to secure my hosted file.in webapps folder i found .war file and extracted folder of my application how can i product those files.Can any one help me to solve this issue ? Thanks in advance 回答1: If your 'users' have access to your server, then there's very little you can do to protect the .war file. If you make sure that the user who runs

publish empty directories to a web application in VS2010 web project

孤者浪人 提交于 2019-11-29 00:56:31
Often I need to publish a web project preserving a directory tree even if the directories are empty, for example, directories to hold uploaded files. If I publish my app using the VS2010 publish command, the empty directories are not created on the remote filesystem, on the web server. Is there a way to force VS to create certain folders, albeit empty, on the target directory? thanks! Exitos No this is not possible I'm afraid we had the same problem. You need to create a placeholder.txt file in each empty directory if you want the precompilation tool to generate these empty folders. Failing