wood burning stoves
The moose likes Struts and the fly likes problem with tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with tiles" Watch "problem with tiles" New topic

problem with tiles

gan lin

Joined: Mar 20, 2003
Posts: 1
I am using struts and tiles , I have a home as following:
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<tiles:insert definition="SBLogon" flush="false"/>
The segment of the tiles-defs.xml :
<definition name="SBMainHC" path="/WEB-INF/pages/layout/SBMainHC.jsp">
<put name="title" value="storyboard"/>
<put name="header" value="/WEB-INF/pages/content/blank.jsp"/>
<put name="content" value="/WEB-INF/pages/content/blank.jsp"/>
<definition name="SBLogon" extends="SBMainHC" >
<put name="header" value="/WEB-INF/pages/content/header.jsp"/>
<put name="content" value="/WEB-INF/pages/content/logon.jsp"/>
The content of the /WEB-INF/pages/content/logon.jsp :
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<html:html locale="true">
<body bgcolor="#006699">
<html:form action="/Logon.do" focus="logonID" method="post">
<table width="50%" align="center">
<td width="50%" align="right">
<bean:message key="prompt.logonID"/>
<td width="*">
<html:text property="logonID" size="6" maxlength="6" />
<td width="50%" align="right">
<bean:message key="prompt.password"/>
<td width="*">
<html assword property="password" size="6" maxlength="6" />
<td colspan="2"><html:errors/><td>
<td width="50%" align="right"><html:submit property="submit" value="Sign In" /></td>
<td width="50%" align="left"><html:reset property="reset" value="Reset"/></td>
when I submit the logon , the client will open a new browser window to display the logon result ,
but I don't want to open a new window ,How can I do
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

I doubt the new browser window is happening because of struts or tiles. Search your JSPs for
That's probably what's causing the new window to open.

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link: http://aspose.com/file-tools
subject: problem with tiles
jQuery in Action, 3rd edition