-
reading and updating a file inside WAR file
Hi,
I want to read a file which is inside a WAR file. Say the file is a properties file. I want to read it and have to do some modification and after doing those modification i need to place the file again inside the war file. Can u suggest someone the way to do it?
-Jim
Viren
-
I'm pretty sure that war files are the same as jar file. You can probably use the jar utility to do all your extracting and adding stuff.
-
Hi John,
Yes war is again a zip of all resources. but i need to read with in from the war file. I need to read a file with in a WAR file without extracting and after updating that one i need to put that again in the WAR file. I know i can extract it ...do the modification and again compress all...but there must be someother way too.
Viren
-
nope.. believe it or not.. the AR in wAR, means ARchive.. archived things arent changed. Long term persistence for WAR applications is the same as any other app.. writing to file or database.. if necessary you can re-pack the file in the war but what youre asking at the moment is akin to a Windows program using random-access to write bytes to its own exe as a method of storing settings, while it is running. this behaviour is only found in morphing viruses, as an aid to escape detection. other windows programs store info in the registry, or ini files etc..
-
Hi Cjar
Thanx a lot for the information u gave.
Regards
-Viren
Viren
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks