JSP:Include not rendering the page correctly
Posted
by sreekanth
on Stack Overflow
See other posts from Stack Overflow
or by sreekanth
Published on 2010-06-16T17:46:00Z
Indexed on
2010/06/16
17:52 UTC
Read the original article
Hit count: 251
jspinclude
am having trouble with including a jsp page with tag. This is what is happening.
I making changes to a portlet application running on Websphere 7 server. This is the hierarchy of the jsp pages.
blankPage.jsp -->bookingViewTabs.jsp --> availableRooms.jsp
meaning blankPage is included in bookingViewTabs which is inturn included in availableRooms.jsp
I have 2 problems with this.
(1). The blankPage.jsp does not render correctly on the screen. It gets cutoff
(2). The other is in blankPage.jsp there is a form called "guestProfileSearchResultsFormId". this form has several hidden fields for data. example, "guestId" which is a child of that form and can be accessed formname.fieldname, but when i include that page into another jsp as the first include(there are several includes on the page) under the another form tag, the form field is not being rendered as a child of the form, but as a sibling of the form. If i change the order and include some other page and include this, it is working as it is supposed to have. meaning with children intact. I don't understand this behavior.
I HAVE ATTACHED A GIF IMAGE OF WHAT I SEE ON THE BROWSER
Any help is greatly appreciated. Thanks in advance
© Stack Overflow or respective owner