- This topic has 5 replies, 2 voices, and was last updated 14 years, 9 months ago by support-joy.
-
AuthorPosts
-
mike nastavParticipantI am a tiles n00b and this is probably a real stupid question. I am working on a new project on myeclipse 6 (and 7). I load the initial layout with 3 tiles (body, header and menu) successfully. When I select one of the buttons from the menu and try to get it to load the new body tile it loads it into a new I.E. window/session. The button use this code:
HREF=”createTicket.do”>
I am hitting the createTicket action class ok and the desired JSP does load ok it just loads in a new window rather than in the target body. Any idea what rookie mistake I am making?Thanx for any help,
-Mike
support-joyMemberMike,
Not sure what is the issue you are facing. Are you referring to an anchor tag, whose onclick event opens a new window? If yes, please check the target attribute. Please refer http://www.developingwebs.net/html/targetattribute.php
mike nastavParticipantJoy:
I think the anchor and target stuff is for frames. I thought with tiles we did not need frames and that with tiles the screen layout was determined on the server side so the problem with different browsers interpreting he frames data differently was not an issue. Here is what i am trying to do. Here is my layout. I am trying to assign a new jsp to the “body” portion of this layout:<form method=”post” >
<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”95%” align=”center”
bordercolor=”#000000″ bgcolor=”lightsteelblue”>
<tr>
<td width=”100%” colspan=”3″ valign=”top” align=”center” height=”15%”>
<div id=”header”> <tiles:insert attribute=”header” /></div>
</td>
</tr>
<tr>
<td valign=”top” align=”left” id=”menu” >
<tiles:insert attribute=”menu” />
</td>
<td valign=”top” align=”left”><tiles:insert attribute=”body” />
</td>
<td valign=”top” align=”left”></td>
</tr>
</table>
</form>
support-joyMemberMike,
The above code looks good. I don’t see any issues. Can you try to run your app in debug mode? This might point you to the exact cause of opening in a new window.
Best.
mike nastavParticipantJoy:
I think I figured it out. You were right in your first assumption. I was assuming that using the “body” insert with tiles would free me from using frames. I think I was wrong. I basically use the above layout but added a iframe with a welcome.jsp I names the iframe “context” and then use “context” as my target for my buttons on the menu. Thanx for your help. Tiles is pretty odd thing to learn!
-MN
support-joyMemberMike,
Good to hear you are all set.
-
AuthorPosts