This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 26148 - jsp:setProperty fails for a specific attribute name in Tomcat
Summary: jsp:setProperty fails for a specific attribute name in Tomcat
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-31 13:57 UTC by Magnus Hammargren
Modified: 2006-06-05 00:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Hammargren 2002-07-31 13:57:15 UTC
Plattform:
NetBeans 3.3.2 (latest updates)
Java SDK 1.4.0_01
HW HP Omnibbok 6100 running XP (latest service packs from 
MS installed)

Summary:
Giving a HTML textfield the exact name and id 
of "channelized", causes a run-time error in the built in 
Tomcat webserver when executing the <jsp:setProperty 
name="connpointBean" property="channelized" />
It appears to be a reserved-word-bug but the problem does 
not occur if a war-file is exported to a Solaris 
environment running Enhydra.

Details:
At the top of jsp code:
<jsp:setProperty name="connpointBean" 
property="channelized" />

Form element:
<td class="table4p"><input type="text" class="textbox_n" 
size="1" maxlength="1" tabindex="8" id="channelized" 
name="channelized" value="<%=connpointBean.getChannelized
()%>" onChange="performRedraw('channelized', 'NEXT')"></td>

Connpoint(beanclass) method:
public void setChannelized(String channelized) {
this.channelized = channelized.toUpperCase();
}

Results in runtime error on self submit:
org.apache.jasper.JasperException: Can't find a method to 
write property 'channelized' in a bean of 
type 'uniossWeb.data.Connpoint'

Question:
This works good for ALL OTHER attributes throughout the 
application. Is it a reserved word, or what causes this to 
happen?

Priority:
Low, I just changed the name of the field and method to 
get it work.

BR,
Magnus Hammargren
magnus.hammargren@persistent.se
Comment 1 Milan Kuchtiak 2002-09-02 10:06:53 UTC
Could you test your application on standalone Tomcat(4.0.4) 
please ? 
Could you attach your war file to this issue ?
Comment 2 Jaroslav Pospisil 2006-05-25 09:16:45 UTC
Issue no longer valid.