• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts iFrame security workaround - problems

 
Chris Boldon
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you cannot access the properties of an iFrame if the content does not come from the same domain I was trying to find a workaround.

So I'm referencing an action in the iframe instead of a page:


Using the following action:


It's like it is not escaping all the characters properly. At the top of my iframe I see "html>" and some other scattered characters. Can any of you see a major flaw in my logic? Obviously I'm going to have to parse out all the local variables and define their entire path, but my first step is to figure out why it is hosing the html.
 
Chris Boldon
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nm, I got it. had to use BufferedStreams.
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a little tip. Don't use IFrames. works well in IE but a mess in safari on mac. Use Layer/div if you can.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic