Struts didn't reach to you action yet. It couldn't resolve the URL "vvm/vvm.action". Are you sure you have "vvm" action within "vvm" package? May be you need to post the struts.xml
If you are looking for algorithm take a look at wiki. Look at the section "Fractions with prime denominators". This explains how we can easily look for the pattern.
I can think of two options (1) Search for all the drives to find the winword.exe and use the path. (2) Make use of windows file type association without bothering where the exe is located.
The above snippet opens new command window and from there winword or any office suite app is launched and shell is destroyed immediately. You can try cmd.exe /? to find more options.
You must be using unwar or unjar ant tasks. jar with compress options will determine whether the files should be compressed and zip/jar'ed and will not extract the files.