• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Using javascript in Struts: DOM vs. ActionForm

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic