struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Ventura <vent...@cit.com.br>
Subject Properties named "id" under WAS 4.0.1
Date Wed, 09 Jul 2003 18:53:52 GMT
Hi,

Has anyone had any issues with properties named "id" under Websphere 4.0.1?

I have a JSP page wich outputs some data from a bean. That bean has
getId(), setId(), getTitle() and setTitle(), among others, all expecting
and returning Strings. I write these out using the following:

<bean:write name="theme" property="id"> - 
<bean:write name="theme" property="title"/>

When the generated servlet reaches the "id" one, it dies complaining
that it didn't find a getter for property id (stack trace at bottom).
Everything works fine if I comment that tag. 

I even tried replicating that field using another method:
public String getIde() { returns getId(); }
<bean:write name="theme" property="ide"/>

and it works!

And, as luck would have it, the same war works perfectly under Tomcat.

Is this a bug in the reflection mechanism of IBM's virtual machine? Or 
are "id" properties discouraged? Anyone has any ideas?

TIA

[]'s
- ventura

[03.07.09 16:02:26:043 GMT-03:00] 397616da WebGroup      X Servlet Error: No getter method
for property id of bean theme: javax.servlet.jsp.JspException: No getter method for property
id of bean theme
        at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
        at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
        at jsp.mai_00025taintheme.themes_jsp_1._jspService(themes_jsp_1.java:395)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
        at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
        at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
        at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
        at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
        at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
        at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
        at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
        at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
        at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
        at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
        at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
        at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
        at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
        at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
        at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
        at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
        at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
        at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
        at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
        at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
        at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
        at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:123)
        at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
        at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
        at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
        at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
        at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
        at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message