File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problems in frame and struts!!!!" Watch "problems in frame and struts!!!!" New topic

problems in frame and struts!!!!

shark liu

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 page:
<%String path="/somepath/";
String bodyStyle = "/stylepath/"
Frameset//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<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">
<frame src="/tek/tek/home/down.jsp?path=<%=path%>&style=<%=bodyStyle%>&cgi=<%=scriptname%>" name="down" frameborder="no" scrolling="no" noresize id="down">

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:
subject: problems in frame and struts!!!!
jQuery in Action, 3rd edition