It's not a secret anymore!
The moose likes Struts and the fly likes JSP Struts/JSTL Form problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSP Struts/JSTL Form problem" Watch "JSP Struts/JSTL Form problem" New topic

JSP Struts/JSTL Form problem

Wally Christoff

Joined: Oct 22, 2004
Posts: 7
We are using Hibernate and Struts on Weblogic 8.1 with JSTL in our JSP pages. I have the following code (below) in a JSP page with an HTML Form where the form elements are generated dynamically in a JSTL loop.

The page is generating the following error when it is run:
"javax.servlet.jsp.JspException: ServletException in '/jsp/application/generalinfo.jsp': No form found under 'generalInfoForm' in locale 'en_US'"

Does anyone have any idea why I would be getting this error? Thank You!

<%@ taglib uri="" prefix="bean-el" %>
<%@ taglib uri="" prefix="html-el" %>
<%@ taglib uri="" prefix="logic-el" %>
<%@ taglib uri="" prefix="tiles-el" %>
<%@ taglib uri="" prefix="c" %>

<html-el:javascript formName="killQuestionsForm" staticJavascript="false" scriptLanguage="false" />

<html-el:form action="/" onsubmit="return validateKillQuestionsForm(this);">

<table border="0" width="100%">

<c:forEach var="killQuestion" items="${killQueBean}">
<c ut value="${killQuestion.insuranceQuestion.text}" escapeXml="false" />
<c:set var="htmltype" value="${killQuestion.insuranceQuestion.HTMLType}" scope="page" />
<c:when test="${htmltype =='Radio'}">
<html-el:radio property="killQuestionValue(${})" value="1"/>
<c:if test="${killQuestion.killResponse == 1}"><font color=red>Yes</font></c:if>
<c:if test="${killQuestion.killResponse != 1}">Yes</c:if>
<html-el:radio property="killQuestionValue(${})" value="0"/>
<c:if test="${killQuestion.killResponse == 0}"><font color=red>No</font></c:if>
<c:if test="${killQuestion.killResponse != 0}">No</c:if>
<c:when test="${htmltype =='Listbox'}">
<html-el:select property="killQuestionValue(${})" >
<c:forEach var="questionValue" items="${killQuestion.questionValues}" >
<!--write list value only if for all states or current state-->

<c:if test="${sessionScope.application.location.state == questionValue.state or questionValue.state == '*'}">
<c:if test="${killQuestion.killResponse == questionValue.killValue}">
<html-el ption value="${questionValue.value}" style="color: red">
<c ut value="${questionValue.description}" />
</html-el ption>
<c:if test="${killQuestion.killResponse != questionValue.killValue}">
<html-el ption value="${questionValue.value}">
<c ut value="${questionValue.description}" />
</html-el ption>

<td align="right">
<html-el:submit value="Submit"/>
<td align="left">

<td colspan="2">
<font color=red>Red values indicate a response that will kill one of more of the selected LOBs.</font>


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Moving this to the Struts forum where the Struts-savvy hang out.

[Asking smart questions] [About Bear] [Books by Bear]
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Is the file you copy/pasted the generalInfoForm.jsp?

A good workman is known by his tools.
Don't get me started about those stupid light bulbs.
subject: JSP Struts/JSTL Form problem
jQuery in Action, 3rd edition