I never tried it.  But I don't think so.  Even still, wouldn't an
onsubmit="return func() ;" better serve you?  Just make sure you return
false from func() or the submit *will* take place.


Anthony
-----Original Message-----
From: Michael Skariah [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 2:41 PM
To: [EMAIL PROTECTED]
Subject: RE: ServletException....


Thanks a lot Anthony. I have another question that accompanies it. Instead
of using action="result.do" , could I call a JavaScript function, ex:
action="func()" ?
-Michael.

-----Original Message-----
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 2:35 PM
To: '[EMAIL PROTECTED]'
Subject: RE: ServletException....


I got messages like this when I started using Struts.  This happened to me
because I made the mistake of overloading my getters and setters which
breaks introspection.  Don't do it.  Make getters and setters with different
names instead of overloading.


Anthony
-----Original Message-----
From: Michael Skariah [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 2:28 PM
To: [EMAIL PROTECTED]
Subject: ServletException....


Hello all,
Below is the code I am trying to execute and I get the error
"javax.servlet.ServletException: No getter method available for property
singleSelect for bean under name org.apache.struts.taglib.html.BEAN". I have
the get and set methos for singleSelect in my resultAction class.

Any ideas anyone??
Thanks,
-Michael.

-------------------------------------------------------
<html:form action="result.do" method="post">
<html:select property="singleSelect">
<html:option value="Single 0">Single 0</html:option>
<html:option value="Single 1">Single 1</html:option>
<html:option value="Single 2">Single 2</html:option>
<html:option value="Single 3">Single 3</html:option>
<html:option value="Single 4">Single 4</html:option>
<html:option value="Single 5">Single 5</html:option>
<html:option value="Single 6">Single 6</html:option>
<html:option value="Single 7">Single 7</html:option>
<html:option value="Single 8">Single 8</html:option>
<html:option value="Single 9">Single 9</html:option>
</html:select>

Reply via email to