Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

JSP Struts/JSTL Form problem

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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="http://struts.apache.org/tags-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %>
<%@ taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic-el" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles-el" prefix="tiles-el" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

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

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

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

<c:forEach var="killQuestion" items="${killQueBean}">
<tr>
<td>
<c ut value="${killQuestion.insuranceQuestion.text}" escapeXml="false" />
</td>
<td>
<c:set var="htmltype" value="${killQuestion.insuranceQuestion.HTMLType}" scope="page" />
<c:choose>
<c:when test="${htmltype =='Radio'}">
<html-el:radio property="killQuestionValue(${killQuestion.id})" 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(${killQuestion.id})" 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>
<c:when test="${htmltype =='Listbox'}">
<html-el:select property="killQuestionValue(${killQuestion.id})" >
<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>
<c:if test="${killQuestion.killResponse != questionValue.killValue}">
<html-el ption value="${questionValue.value}">
<c ut value="${questionValue.description}" />
</html-el ption>
</c:if>
</c:if>
</c:forEach>
</html-el:select>
</c:when>
</c:choose>
</td>
</tr>
</c:forEach>

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

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

</table>

</html-el:form>
 
Sheriff
Posts: 67497
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the Struts forum where the Struts-savvy hang out.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the file you copy/pasted the generalInfoForm.jsp?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic