You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by kiuma <ki...@usa.net> on 2002/11/26 10:39:19 UTC
Struts-el strange behav.
hello,
I'm having the following problem (Furtunately I've found the solution).
if i use
<html-el:hidden property='selectedCode'/>
The container reply with an error
WARNING: Exception for /webappointments/secure/specialitylistview.jsp
javax.servlet.jsp.JspException: No getter method for property
selectedCode of bean org.apache.struts.taglib.html.BEAN
at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:161)
at
precompiled.secure.specialitylistview._jspService(specialitylistview.java:164)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
If I use this form
<html-el:hidden property='selectedCode' value=''/>
No error is shown and I can access the page.
Do you have any comment? What's that?
=======================================================================================
Here it is a pice of my ActionForm (nothing special)
public class ListedSpecialityViewForm extends ActionForm {
private String specialitiesChecked[];
private Collection specialitiesFound;
private String selectedCode;
private String selectedDescription;
/** Creates a new instance of ListedSpecialitiesForm */
public ListedSpecialityViewForm() {
super();
specialitiesFound = new Vector();
resetFields();
}
/**
* Restets all fields
*/
public void resetFields ()
{
selectedCode = "";
selectedDescription = "";
specialitiesChecked = new String[0];
specialitiesFound.clear();
}
//Getters
public String getSelectedCode() {
return this.selectedCode;
}
public String getSelectedDescription() {
return this.selectedDescription;
}
.........
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>