aspose file tools*
The moose likes JSP and the fly likes Uploading a JSP into a WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Uploading a JSP into a WAR file" Watch "Uploading a JSP into a WAR file" New topic
Author

Uploading a JSP into a WAR file

rastas biggs
Ranch Hand

Joined: Sep 24, 2004
Posts: 41
Is it possible? to upload a jsp file into a web app .war file from a web interface, so i can create jsp templates and delopy from my app.

Ras
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

No, but some containers like Tomcat will run an app from either a war file or from an exploded directory structure.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
I have found WebLogic, WebSphere, and Tomcat will allow you to specify if you would like your EAR/WAR exploded or not. Most of the time our apps are deployed as exploded WAR files. I use ant via my IDE to copy over JSPs to my app servers jsp directory. If you wanted something more glamorous or production worthy, I would definitely suggest you first determine if your app is deployed as an exploded war or not. If you wanted to upload your jsp files, you could do some intermediate work, such as running the JSP through a compile test.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Uploading a JSP into a WAR file