Bonjour,
J'obtiens l'erreur suivante :
lors de l'affichage de la page suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 javax.servlet.jsp.JspException: No getter method available for property 1 for bean under name null org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:382) org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:243) org.apache.jsp.applicant.commentApplicant_jsp._jspx_meth_html_options_0(commentApplicant_jsp.java:581) org.apache.jsp.applicant.commentApplicant_jsp._jspx_meth_html_select_0(commentApplicant_jsp.java:533) org.apache.jsp.applicant.commentApplicant_jsp._jspx_meth_html_form_0(commentApplicant_jsp.java:433) org.apache.jsp.applicant.commentApplicant_jsp._jspService(commentApplicant_jsp.java:184) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
le l'actionForm du formulaire contient bien les getter et setter.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> <%@ taglib uri="http://displaytag.sf.net" prefix="display"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %> <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%-- Author : Florian Guillemotte Email : fguillemotte@gmail.com --%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <logic:notPresent scope="session" name="user"> <logic:forward name="logon"/> </logic:notPresent> <logic:notPresent scope="session" name="applicant"> <logic:forward name="search"/> </logic:notPresent> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title><bean:message key="application.title"/></title> <style type="text/css" media="all"> @import url("./css/site.css"); </style> <script type="text/javascript"> <!-- window.onload=show; function show(id) { var d = document.getElementById(id); for (var i = 1; i<=10; i++) { if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';} } if (d) {d.style.display='block';} } //--> </script> </head> <body> <div id="titre"> <bean:message key="application.title"/> </div> <div id="soustitre"> <bean:write scope="session" name="user" property="login"/> </div> <div id="topRow"> <div id="menu"> <dl> <dt onmouseover="javascript:show();"><a href="/QATS/main.jsp" title="Go to Home page">Home</a></dt> </dl> <dl> <dt onmouseover="javascript:show('smenu1');">TODO List</dt> <dd id="smenu1"> <ul> <li><a href="/QATS/todoList.jsp" title="See Todo list of all users">All Todo</a></li> <li><a href="/QATS/applicant/applicant.jsp" title="Create a new applicant file">New Applicant</a></li> <li><a href="/QATS/applicant/searchApplicant.jsp" title="Search an applicant">Search</a></li> <li><a href="#" title="All applicant which are in reserve">In reserve</a></li> </ul> </dd> </dl> <dl> <dt onmouseover="javascript:show('smenu2');">Applicant</dt> <dd id="smenu2"> <ul> <li><a href="/QATS/applicant/DisplayApplicant.jsp" title="Display information about the current applicant">Details</a></li> <li><a href="/QATS/applicant/history.jsp" title="Display the historic about the current applicant">Historic</a></li> <li><a href="/QATS/applicant/commentApplicant.jsp" title="Display all comments about the current applicant">Comment</a></li> <li><a href="#" title="List all documents which concern the current applicant">Document</a></li> <li><a href="#" title="Display additional information about the current applicant">Interview</a></li> </ul> </dd> </dl> <dl> <dt onmouseover="javascript:show('smenu3');">Tools</dt> <dd id="smenu3"> <ul> <li><a href="#">Statistics</a></li> <li><a href="/QATS/about.jsp">About</a></li> <li><a href="/QATS/releaseNotes.jsp">Release Notes</a></li> </ul> </dd> </dl> <dl> <dt onmouseover="javascript:show();"><html:link action="/logout" linkName="Log me out">Logout</html:link></dt> </dl> </div> </div> <div id="bodyRow"> <fieldset> <legend>comments</legend> <html:form action="addComment" styleId="addComment"> <table> <tr> <td><bean:message key="message.comment"/></td> <td><html:textarea property="comment" title="enter your comment here" tabindex="10"/></td> </tr> <tr> <td><bean:message key="message.interest"/></td> <td> <html:select property="interest" tabindex="30"> <html:options property="1" labelName="++" labelProperty="++"/> <html:options property="2" labelName="+" labelProperty="+"/> <html:options property="3" labelName="=" labelProperty="="/> <html:options property="4" labelName="-" labelProperty="-"/> <html:options property="5" labelName="--" labelProperty="--"/> </html:select> </td> </tr> </table> <html:submit tabindex="150"><bean:message key="button.submit" /></html:submit> </html:form> </fieldset> </div> <div id="footer"> <bean:message key="application.footer" /><br><bean:message key="application.version" /> </div> </body> </html>
Je ne sais pas d'ou cela peu provenir,
Merci pour votre aide
Partager