|
My previous jsp page can still be opened. Why did I add an error after adding <html: form>?
The page code is as follows:
(Page header omitted)
<html: html>
<head>
<title> :::: Online examination system :::: </ title>
<meta http-equiv = "Content-Type" content = "text / html; charset = gb2312">
<link href = "/ exam / css / Style.css" rel = "stylesheet" type = "text / css">
<META content = CnSohoW design name = description>
<META content = "firekinger@163.com" name = author>
</ head>
<body>
<p> </ p>
<table width = "506" border = "0" align = "center" cellpadding = "2" cellspacing = "1" bgcolor = "# d2ebff" class = "Xsmall">
<tr bgcolor = "# FFFFFF">
<td height = "28" colspan = "4">
<TABLE cellSpacing = 0 cellPadding = 0 width = "100%"
border = 0>
<TBODY>
<TR>
<TD
height = 25 background = / exam / img / backt.gif class = "Xsmall"> <strong> Examination questions </ strong> </ TD>
</ TR>
</ TBODY>
</ TABLE>
</ td>
</ tr>
<html: form action = "/ questionSearch">
<tr bgcolor = "# FFFFFF">
<td height = "30" colspan = "4"> <div align = "center">
<font color = "# 0000FF"> </ font> </ div>
</ td>
</ tr>
<tr bgcolor = "# FFFFFF">
<td height = "30" colspan = "4"> <div align = "center">
<table width = "490" border = "0" cellpadding = "0" cellspacing = "0" class = "Xsmall">
<tr>
<td width = "126"> <div align = "center"> <img src = "/ exam / img / query_1.gif" width = "12" height = "13" align = "absmiddle"> Quick search
-> </ div>
<div align = "center"> </ div> </ td>
<td width = "221"> Keyword:
<html: text property = "keyText" styleClass = "Sborder" styleId = "keyText" size = "18" maxlength = "20"> </ html: text>
<td width = "51">
<div align = "left">
<html: submit property = "enter" styleClass = "Sborder" styleId = "enter" value = "OK"> </ html: submit>
</ div> </ td>
<td width = "92"> <div align = "center"> </ div> </ td>
</ tr>
</ table>
</ div> </ td>
</ tr>
<tr bgcolor = "# FFFFFF">
<td width = "100" height = "25"> <div align = "center"> title </ div> </ td>
<td width = "350"> <div align = "center"> Options </ div> </ td>
<td width = "200"> <div align = "center"> type </ div> </ td>
<td width = "50"> <div align = "center"> remove no </ div> </ td>
<td width = "50"> <div align = "center"> Update </ div> </ td>
</ tr>
<logic: iterate id = "e" name = "coll">
<tr bgcolor = '# FFFFFF'>
<td height = '25 '>
⊙ <bean: write name = "e" property = "detail" />
</ td>
<td>
<div align = 'center'> <bean: write name = "e" property = "choices" /> </ div>
</ td>
Ranch
<td>
<div align = 'center'> <bean: write name = "e" property = "note" /> </ div>
</ td>
Ranch
<td>
<div align = 'center'> <html: link page = "/ questionDel.do" paramId = "id" paramName = "e" paramProperty = "id"> Remove </ html: link> </ div>
</ td>
<td>
<div align = 'center'> <html: link page = "/ questionPreUpdate.do" paramId = "id" paramName = "e" paramProperty = "id"> Update </ html: link> </ div>
</ td>
</ tr>
<tr>
</ tr>
</ logic: iterate>
<tr bgcolor = "# FFFFFF">
<td height = "30" colspan = "4">
<div align = "center">
</ div> </ td>
</ tr>
</ html: form>
</ TABLE>
</ html: html>
The following error occurred:
javax.servlet.ServletException: Cannot retrieve definition for form bean null
org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:800)
org.apache.jsp.WEB_002dINF.admin.question_005flist_jsp._jspService (question_005flist_jsp.java:256)
org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service (HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service (JspServlet.java:248)
javax.servlet.http.HttpServlet.service (HttpServlet.java:856)
org.apache.struts.action.RequestProcessor.doForward (RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig (RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process (ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet (ActionServlet.java:507)
javax.servlet.http.HttpServlet.service (HttpServlet.java:743)
javax.servlet.http.HttpServlet.service (HttpServlet.java:856)
Please help me, thanks! |
|