Howdy,
I am converting an existing WebSphere 5.1 FrontController
servlet application to
Struts. The infrastructure is very simple and just receives requests, wraps the request in an MQ message and sends it to a mainframe. The mainframe sends back an XML message that is associated with an XSLT to render the screen.
Here's the problem: all of these stylesheets have been created by mainframers and contain pages and pages of nasty looking javascript. Whenever you click on a link you get all sorts of js errors even though we haven't changed anything in the XSLT or the XML message.
I have noticed that changing document references from document.main.fieldname.value to document.HomePageForm.fieldname.value works very well, but I am assuming that that means that every variable declared in these scripts and stylesheets must have a field in the appropriate form bean.
So, the questions is:
Can js developed explicity for DOM be converted to Struts without any changes?
If I'm being stupid and missed some basic
doc, please let me know.
Thanks.
Brian