Hello all,
I want to build up a dynamic start-page by using HTML-tables with
jsp:include directives.
But I get more and more internal errors (Response already has been commited)
or the included jsp-files would not been updated automatically.
I�ve tried this by using <jsp:include lf_page="..."> and
request.setAttribute("lf_page","...") or
response.sendRedirect(..). My problem is to pass parameters between the
included jsp-files and to update the start-page.
Does anyone knows a good documentation about the theme? Or can someone gives
me a hint on the following "sources"?
#############ERROR-MESSAGE#####################
Included Servlet Error: 500
....Response already has been commited
#############start jsp#########################
...
<tr>
<td width="100%" height="80" colspan="2">
.....
<jsp:include page="<%= hf_page %>" flush="true"/>
</td>
</tr>
<tr>
<td width="20%" height="444">
<%
if ( lf_page == null || lf_page.length() == 0)
lf_page = "lf_task_disabled_tbl.jsp";
else
lf_page = (String) request.getAttribute("lf_page");
lf_page = "lf_task_disabled_tbl.jsp";
%>
<jsp:include page="<%= lf_page %>" flush="true"/>
</td>
<tr>
<td width="80%" height="444">
.....
<jsp:include page="<%= mf_page %>" flush="true"/>
</td>
</tr>
...
#################lf_task_disabled_tbl.jsp####### update works
....
<ul>
<li><a href="webedi_table.jsp?mf_page=mf_login_tbl.jsp" >Anmelden
</a></li>
</ul>
#################mf_login_tbl.jsp################ update works
...
<form action="webedi_table.jsp?mf_page=mf_checklogin_tbl.jsp" method="post"
>
...
#################attempts to update #################### causes problems
request.setAttribute("hf_text","Workbench");
request.setAttribute("lf_page","lf_task_enabled_tbl.jsp");
responde.sendRedirect("start.jsp","lf_page=lf_task_enabled_tbl.jsp");
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets