aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with tiles" Watch "problem with tiles" New topic
Author

problem with tiles

gan lin
Greenhorn

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>
<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"/>
</definition>
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">
<br>
<br>
<br>
<html:form action="/Logon.do" focus="logonID" method="post">
<table width="50%" align="center">
<tr>
<td width="50%" align="right">
<bean:message key="prompt.logonID"/>
</td>
<td width="*">
<html:text property="logonID" size="6" maxlength="6" />
</td>
</tr>
<tr>
<td width="50%" align="right">
<bean:message key="prompt.password"/>
</td>
<td width="*">
<html assword property="password" size="6" maxlength="6" />
</td>
</tr>
<tr></tr>
<tr>
<td colspan="2"><html:errors/><td>
</tr>
<tr>
<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>
</tr>
</table>
</html:form>
</body>
</html:html>
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
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

I doubt the new browser window is happening because of struts or tiles. Search your JSPs for
target="_blank"
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
 
Similar Threads
Tiels tags are not processing
Tiles in struts?
Struts error
Interesting tiles/struts making a menu question
Struts Tiles Inheritance problem