• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with tiles

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic