• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we access document object model of a parent JSP, from a child JSP ?

 
Tagore Noo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone. I have a question regarding the dom. It will be great if someone provides some help.

I have a jsp (Page 1) included in another jsp (Page 2) .

Can we access Page 2's DOM from Page 1's javascript? Like an alert box from page 1 if we click on page 2's body..

Appreciate any help..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP knows nothing of the DOM -- that's an HTML concept. So if both JSPs end up creating a single HTML page, then there's only one DOM.

It has nothing whatsoever to do with JSP (or whatever) that created the HTML page on the server to be sent to the browser. Only the HTML send to the browser matters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic