OKay after much work, I have written a data translator that translate the
struts bean message tag, and extracts the key and then looks at my properties
file and finds the property and displays the actual text in the properties file.

So bean:message key="index.password" becomes Password in Design View.

This works some of the time, but I have noticed that other times it fails
completely and dreamweaver does not display the design view right. It suddenly
fails to include files and it fails to build the MM:BeginLock code for its own
stuff.

What I have done is created a counter var count = 0; in my translate html
page. Then each time translateMarkup is called, I output a file with the count
in the filename and increate the counter. I see that this function gets called
several time, usually 3. However some times it looks like the 3 time in ( file
foo_2.txt ) is correclty translated, but then a 4th call is made to
translateMarkup and the output of that file ( foo_3.txt ) is the original jsp
page with no MM:BeginLocks.

How can I find out what's happening this 4th time in? I'm printing the input
data ( 3rd param to translateMarkup() ) and my translated code.

Could the javascript interpreter be failing because of javascipt in my page?
Could it just be running out of memory?

Thanks,