File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Inline Frames in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Inline Frames in JSP" Watch "Inline Frames in JSP" New topic
Author

Inline Frames in JSP

Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
I used an inline frame in jsp but it doesnt work. But that same html coding is perfectly works in the html file. Is there anything i should do?


Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
but it doesnt work

What does this mean? How does the HTML generated by the JSP differ from the HTML you created by hand?


Ping & DNS - updated with new look and Ping home screen widget
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
For both html and jsp i used the same coding. I used yahoo sliding menu component. When i click a link in it i want to display the appripriate content in iframe. It works well in html but when i copy that to a jsp it doesnt display the content.
When i remove the "target" attribute it works perfectly. The content appears in a new page.
Garrett Smith
Ranch Hand

Joined: Jun 27, 2002
Posts: 401
Make a test case with an iframe. Simple. Make it work. Additively build up your code.

OR

Compare the source of the JSP to the source of the raw HTML. You can use examdiff for this.

Regards,

Garrett


comp.lang.javascript FAQ: http://jibbering.com/faq/
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
Thank you Garrett
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

Originally posted by Garrett Smith:
Compare the source of the JSP to the source of the raw HTML. You can use examdiff for this.


Comparing sources will not help. Compare the rendered JSP to the HTML version.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inline Frames in JSP
 
Similar Threads
Dynamic CSS
How do I include a java method in a section of jsp code
Strange Behavior of JSP
OutputStream and HTML Title
Container callback and inline methods