I'm terribly sorry for in effect spamming the group with a noddy question,
but I'm trying to get Struts working so the team can start trying it out for
some internal projects. I can't find much in the way of FAQ or "Questions
For Idiots" - I'm not complaining, but I did try to RTFM first, honest.
I have a pretty simple form, which seems to be causing the servlet to sit
forever consuming 100% CPU while processing a <form:text> tag. I am using
Tomcat as the servlet container on Solaris, and have tried a number of
Struts builds up to 2000-12-04.
Using a number of printf statements, I can see that the following steps are
occurring:
- general initialisation e.g. instance of my Action subtype (FooAction) is
created, setServlet() called
- the perform() method is called on my FooAction object, which calls some
business logic
- the perform() method returns a valid mapping
- my JSP is run (great so far !)
- an instance of my Form subtype is instantiated (ZingContextForm)
- the JSP hangs at a <form:text> tag (between P1 and P2 below in the JSP
source below)
If I comment out the <form:text> tag then everything works fine, but the
form isn't very useful !
My JSP is as follows:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<form:html>
<%@ include file = "nocache.jsp" %>
<head>
<title> page name FOO.JSP </title>
</head>
<body bgcolor="green" text="white" link="white" vlink="white" alink="white">
<basefont size=3>
<form:form action="bar" name="dialogue_context" type="ZingContextForm"
scope="session" >
<table border="0" width="100%">
<tr>
<td> Digest Name </td>
<% System.out.println("FOO AT P1"); System.out.flush(); %>
<td> <form:text property="digestname" size="20" /> </td>
<% System.out.println("FOO AT P2"); System.out.flush(); %>
</tr>
</table>
<form:submit property="submit" value="Bonza!" />
<form:reset/>
</form:form>
<hr>
<form:link forward="bar">
Next window
</form:link>
</body>
</html>
If anyone has some ideas about where I can start debugging this problem,
please let me know and I will be very grateful.
Cheers
Andris