Hi
I have a problem that is driving me crazy.
I have a fairly simple struts web app with a jsp form that submits to a
form bean, with an action set up and a display page. I have built a few
struts apps and never had such a basic problem:
The jsp submits the data and the form bean recieves it. It then
processes it correctly when the appropriate method is called from the
action (with the form cast in). I have debugged up to this point and so
know that everything is correct.
What should happen next is that my display page is shown and accesses my
form bean using the getters to retrieve the appropriate data values.
However when the action calls findforward, and the display page is
called, it seems to create a new instance of my form bean and so all
data values are null.
Any ideas?
My code on the display jsp is:
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/taglibs-datetime.tld" prefix="dt" %>
<%@ taglib uri="/WEB-INF/displaytag_1_0.tld" prefix="display" %>
<jsp:useBean id="apacheConnectionStats" scope="session"
class="com.ftid.mis.form.apache_connection_stats" />
<html>
<head><title>JSP Page</title></head>
<body>
Well done
<br>
<%= apacheConnectionStats.getSql_stmt() %>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]