I'm new to the web development arena. My background is traditional C/C++ type stuff, so I apologize if this question is stupidly simple...
I have a group of pages. Each page calls Header.jsp to load header information. However, some pages are loaded inside a parent sometimes (but not every time), which causes Header.jsp to be inserted two times - once for the main page and once inside the frame.
I would like to be able to detect if the page is inside a frame. If it's in the frame, it wouldn't call Header.jsp. If it wasn't inside a frame, it would call Header.jsp.
Does that make sense? Is this possible? Is there a different, better way to accomplish the end goal that I'm not thinking of?
Thanks so much for your help,