This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problems in frame and struts!!!!  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!