Apache Struts - Mac OS X

Hey, does anyone have the relevance to return Apache Struts version on Mac OS X ?

If the application is installed as an app the following relevance should return it:

(names of it, versions of it) of regapps 

You can then filter by app name by appending:

whose ( name of it equals "App Name")

If it’s not listed among the regapps then you have to look for a file in the Struts directories which give you the current version.

Unfortunatley not as simple as regapps.

How would you do it from MacOS Terminal?