Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Using a JSP as source for an iframe

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic