my dog learned polymorphism*
The moose likes Struts and the fly likes problems in frame and struts!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problems in frame and struts!!!!" Watch "problems in frame and struts!!!!" New topic
Author

problems in frame and struts!!!!

shark liu
Greenhorn

Joined: Mar 26, 2003
Posts: 1
for some reason, i have to use frameset in template ,and i only have one meaningful tag "body". so i write them like below:
one jsp page:
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<template:insert template="/tek/common/template.jsp" >
<template ut name="header" content="header.jsp" />
<template ut name="menu" content="menu.jsp" />
<template ut name="body" content="/tek/tek/home/main.jsp" direct="true"/>
</template:insert>

template page:
<%String path="/somepath/";
String bodyStyle = "/stylepath/"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>?夹?ゅン</title>
</head>
<frameset rows="28,84,27,*,28" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="/tek/tek/home/top.jsp?path=<%=path%>&style=<%=bodyStyle%>" name="top" frameborder="no" scrolling="no" noresize id="top">
<frame src="/tek/tek/home/tittle.jsp?path=<%=path%>&style=<%=bodyStyle%>" name="tittle" frameborder="no" scrolling="no" noresize id="tittle">
<frame src="/tek/tek/home/menu_01.jsp?path=<%=path%>&style=<%=menuStyle%>" name="menu_01" frameborder="no" scrolling="no" noresize id="menu_01">
<frameset cols="119,*">
<frame src="/tek/tek/home/menu_02.jsp?path=<%=path%>&style=<%=menuStyle%>" frameborder="no" noresize>
<frame src="<template:get name='body' flush='true'/>" name="main" frameborder="no" scrolling="auto" id="main">
</frameset>
<frame src="/tek/tek/home/down.jsp?path=<%=path%>&style=<%=bodyStyle%>&cgi=<%=scriptname%>" name="down" frameborder="no" scrolling="no" noresize id="down">
</frameset>
<noframes><body>
</body></noframes>

but my application server told me:
ServletContextContainer::getServletContainer unable to map servlet name for /<template:get name='body' flush='true'/>

so is there anyone can tell me the solution?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems in frame and struts!!!!