• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using a JSP as source for an iframe

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,

I wonder if anyone could help me with a problem with JSPs in iframes.

I've got a Struts web app where one JSP contains an iframe whose source comes from some raw XML data, representing a report, processed into HTML with XSLT.

Currently everytime the page is accessed I write the processed XML to HTML files which are then used to provide the source for the iframe.

All well and good except that this leads to a build-up of HTML files on the server-side and I'm worried that there maybe concurrency issues when 2 or more users access the same report at the same time.

So ideally I'd like to use a JSP as the source for the iframe, so that when the XML is returned by the Struts action class the JSP can process the XML with XSLT and write it out with pageContext().getOut().

However when I've tried this I find that the actionForward object takes you to the iframe source JSP but the iframe itself is gone, so I can't scroll the content.

I apologise for the rather convoluted description, I'd be glad to hear any ideas you might have,

thanks a lot

JT
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic