|
From: =?iso-8859-1?Q?<jp....@ti...> - 2003-08-13 11:14:50
|
Hi,=0D=0A=0D=0AI have logged the existence of the command.getPerson().get=
Name() in the controller:=0D=0A2003-08-13 13:09:06,250 INFO [org.sis.sir=
ene.web.CallingoutController] person.name =3D null=0D=0A=0D=0AIn both syn=
taxes, the behaviour is the same if "name" is initialized with an empty S=
tring.=0D=0A=0D=0AIf I use the Jstl syntax instead:=0D=0A<spring:bind pat=
h=3D"${command.person.name}">=0D=0A=0D=0AI have the following log:=0D=0A=0D=
=0A2003-08-13 13:09:06,531 DEBUG [com.interface21.beans.BeanWrapperImpl] =
Navigating to property path 'name' of nested property 'person'=0D=0A2003-=
08-13 13:09:06,531 DEBUG [com.interface21.beans.BeanWrapperImpl] About to=
invoke read method [public org.sis.sirene.appli.object.callingout.IPerso=
n org.sis.sirene.command.CallingoutCommand.getPerson()] on object of clas=
s 'org.sis.sirene.command.CallingoutCommand'=0D=0A2003-08-13 13:09:06,531=
DEBUG [com.interface21.beans.BeanWrapperImpl] Creating new nested BeanWr=
apper for property 'person'=0D=0A2003-08-13 13:09:06,531 DEBUG [com.inter=
face21.beans.CachedIntrospectionResults] Using cached introspection resul=
ts for class class org.sis.sirene.appli.object.callingout.Person=0D=0A200=
3-08-13 13:09:06,531 DEBUG [com.interface21.beans.BeanWrapperImpl] Final =
path in nested property value 'person.name' is 'name'=0D=0A2003-08-13 13:=
09:06,531 DEBUG [com.interface21.beans.BeanWrapperImpl] About to invoke r=
ead method [public java.lang.String org.sis.sirene.appli.object.callingou=
t.Person.getName()] on object of class 'org.sis.sirene.appli.object.calli=
ngout.Person'=0D=0A2003-08-13 13:09:06,531 ERROR [org.jboss.web.localhost=
.Engine] ApplicationDispatcher[/sirene] "Servlet.service()" pour la servl=
et jsp.WEB_0002dINF.vues.jsp.applis.sirene.interp.saisie.champs.personne.=
nom_jsp a lanc=E9 une exceptionjavax.servlet.ServletException: Invalid bi=
nd name []: Errors instance not found in request=0D=0A at org.apache.jasp=
er.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)=0D=
=0A at jsp.WEB_0002dINF.vues.jsp.applis.sirene.interp.saisie.champs.perso=
nne.nom_jsp._jspService(Unknown Source)=0D=0A at org.apache.jasper.runtim=
e.HttpJspBase.service(HttpJspBase.java:137)=0D=0A at javax.servlet.http.H=
ttpServlet.service(HttpServlet.java:853)=0D=0A at org.apache.catalina.cor=
e.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)=0D=0A at o=
rg.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispat=
cher.java:575)=0D=0A at org.apache.catalina.core.ApplicationDispatcher.in=
clude(ApplicationDispatcher.java:498)=0D=0A at org.apache.jasper.runtime.=
JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)=0D=0A at jsp.WEB_00=
02dINF.vues.jsp.applis.sirene.interp.saisie.personne_jsp._jspService(Unkn=
own Source)=0D=0A at org.apache.jasper.runtime.HttpJspBase.service(HttpJs=
pBase.java:137)=0D=0A at javax.servlet.http.HttpServlet.service(HttpServl=
et.java:853)=0D=0A at org.apache.catalina.core.ApplicationDispatcher.invo=
ke(ApplicationDispatcher.java:684)=0D=0A at org.apache.catalina.core.Appl=
icationDispatcher.doInclude(ApplicationDispatcher.java:575)=0D=0A at org.=
apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.=
java:498)=0D=0A at org.apache.taglibs.standard.tag.common.core.ImportSupp=
ort.acquireString(ImportSupport.java:314)=0D=0A at org.apache.taglibs.sta=
ndard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:179)=0D=0A=
at jsp.WEB_0002dINF.vues.jsp.applis.sirene.modele_jsp._jspService(Unknow=
n Source)=0D=0A at org.apache.jasper.runtime.HttpJspBase.service(HttpJspB=
ase.java:137)=0D=0A at javax.servlet.http.HttpServlet.service(HttpServlet=
.java:853)=0D=0A at org.apache.catalina.core.ApplicationDispatcher.invoke=
(ApplicationDispatcher.java:684)=0D=0A at org.apache.catalina.core.Applic=
ationDispatcher.doForward(ApplicationDispatcher.java:432)=0D=0A at org.ap=
ache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.ja=
va:356)=0D=0A at com.interface21.web.servlet.view.InternalResourceView.re=
nderMergedOutputModel(InternalResourceView.java:88)=0D=0A at com.interfac=
e21.web.servlet.view.AbstractView.render(AbstractView.java:197)=0D=0A at =
com.interface21.web.servlet.DispatcherServlet.render(DispatcherServlet.ja=
va:503)=0D=0A at com.interface21.web.servlet.DispatcherServlet.doService(=
DispatcherServlet.java:392)=0D=0A at com.interface21.web.servlet.Framewor=
kServlet.serviceWrapper(FrameworkServlet.java:237)=0D=0A at com.interface=
21.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:225)=0D=0A a=
t javax.servlet.http.HttpServlet.service(HttpServlet.java:760)=0D=0A ...=0D=
=0A=0D=0AJean-Pierre=0D=0A=0D=0A---------- Initial Header -----------=0D=0A=
=0D=0AFrom : spr...@li...=0D=
=0ATo : spr...@li...=0D=0ACc =
: =0D=0ADate : Wed, 13 Aug 2003 12:18:44 +0200=0D=0ASubject=
: [Springframework-developer] Tags issue=0D=0A=0D=0AHi Juergen,=0D=0A=0D=
=0AI have an issue with the new tags. This worked before yesterday's chan=
ges. It's about the "bind" tag. In case of subelements, it doesn't more s=
earch in the objects tree and searches for the "dotted" property instead.=
In the below example the command contains a "person" property which has =
a "name" property. The log tell me that the property "person.name" doesn'=
t exist. But even if it is null at this point of the application, the "na=
me" of "person" still exists.=0D=0A=0D=0ARegards,=0D=0AJean-Pierre=0D=0A=0D=
=0AThe jsp involved is=0D=0A=0D=0A<%@ include file=3D"/WEB-INF/vues/jsp/c=
ommun/includes.jsp" %>=0D=0A<p>=0D=0A <spring:bind path=3D"command.perso=
n.name">=0D=0A <span class=3D"error"><c:out value=3D"${status.errorMes=
sage}"/></span>=0D=0A <p class=3D"label"><fmt:message key=3D"champ.nom"/>=
</p>=0D=0A <input type=3D"text" size=3D"32" maxlength=3D"63" name=3D"pers=
on.name" value=3D"<c:out value=3D"${status.value}"/>">=0D=0A </spring:bi=
nd>=0D=0A</p>=0D=0A=0D=0AFYI, I use precompiled JSPs. Here is a snippet o=
f the log:=0D=0A=0D=0Ajavax.servlet.ServletException: No property [person=
.name] in class [class org.sis.sirene.command.CallingoutCommand]=0D=0A at=
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex=
tImpl.java:533)=0D=0A at jsp.WEB_0002dINF.vues.jsp.applis.sirene.interp.s=
aisie.champs.personne.nom_jsp._jspService(Unknown Source)=0D=0A at org.ap=
ache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)=0D=0A at ja=
vax.servlet.http.HttpServlet.service(HttpServlet.java:853)=0D=0A at org.a=
pache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.ja=
va:684)=0D=0A at org.apache.catalina.core.ApplicationDispatcher.doInclude=
(ApplicationDispatcher.java:575)=0D=0A at org.apache.catalina.core.Applic=
ationDispatcher.include(ApplicationDispatcher.java:498)=0D=0A at org.apac=
he.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)=0D=
=0A at jsp.WEB_0002dINF.vues.jsp.applis.sirene.interp.saisie.personne_jsp=
._jspService(Unknown Source)=0D=0A at org.apache.jasper.runtime.HttpJspBa=
se.service(HttpJspBase.java:137)=0D=0A at javax.servlet.http.HttpServlet.=
service(HttpServlet.java:853)=0D=0A at org.apache.catalina.core.Applicati=
onDispatcher.invoke(ApplicationDispatcher.java:684)=0D=0A at org.apache.c=
atalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:5=
75)=0D=0A at org.apache.catalina.core.ApplicationDispatcher.include(Appli=
cationDispatcher.java:498)=0D=0A at org.apache.taglibs.standard.tag.commo=
n.core.ImportSupport.acquireString(ImportSupport.java:314)=0D=0A at org.a=
pache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSuppo=
rt.java:179)=0D=0A at jsp.WEB_0002dINF.vues.jsp.applis.sirene.modele_jsp.=
_jspService(Unknown Source)=0D=0A at org.apache.jasper.runtime.HttpJspBas=
e.service(HttpJspBase.java:137)=0D=0A at javax.servlet.http.HttpServlet.s=
ervice(HttpServlet.java:853)=0D=0A at org.apache.catalina.core.Applicatio=
nDispatcher.invoke(ApplicationDispatcher.java:684)=0D=0A at org.apache.ca=
talina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:43=
2)=0D=0A at org.apache.catalina.core.ApplicationDispatcher.forward(Applic=
ationDispatcher.java:356)=0D=0A at com.interface21.web.servlet.view.Inter=
nalResourceView.renderMergedOutputModel(InternalResourceView.java:88)=0D=0A=
at com.interface21.web.servlet.view.AbstractView.render(AbstractView.jav=
a:197)=0D=0A at com.interface21.web.servlet.DispatcherServlet.render(Disp=
atcherServlet.java:503)=0D=0A at com.interface21.web.servlet.DispatcherSe=
rvlet.doService(DispatcherServlet.java:392)=0D=0A at com.interface21.web.=
servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:237)=0D=0A =
at com.interface21.web.servlet.FrameworkServlet.doPost(FrameworkServlet.j=
ava:225)=0D=0A at javax.servlet.http.HttpServlet.service(HttpServlet.java=
:760)=0D=0A at javax.servlet.http.HttpServlet.service(HttpServlet.java:85=
3)=0D=0A ...=0D=0A=0D=0A=0D=0A********** L'ADSL A 20 EUR/MOIS**********=0D=
=0ATiscali propose l'ADSL le moins cher du march=E9 : 20 EUR/mois et le m=
odem ADSL offert ! =0D=0APour profiter de cette offre exceptionnelle, cli=
quez ici : http://register.tiscali.fr/adsl/=0D=0AOffre soumise =E0 condit=
ions.=0D=0A=0D=0A=0D=0A=0D=0A=0D=0A--------------------------------------=
-----------------=0D=0AThis SF.Net email sponsored by: Free pre-built ASP=
.NET sites including=0D=0AData Reports, E-commerce, Portals, and Forums a=
re available now.=0D=0ADownload today and enter to win an XBOX or Visual =
Studio .NET.=0D=0Ahttp://aspnet.click-url.com/go/psa00100003ave/direct;at=
.aspnet_072303_01/01=0D=0A_______________________________________________=
=0D=0ASpringframework-developer mailing list=0D=0ASpringframework-develop=
er...@li...=0D=0Ahttps://lists.sourceforge.net/lists/listinf=
o/springframework-developer=0D=0A=0A=0A********** L'ADSL A 20 EUR/MOIS***=
*******=0ATiscali propose l'ADSL le moins cher du march=E9 : 20 EUR/mois =
et le modem ADSL offert ! =0APour profiter de cette offre exceptionnelle,=
cliquez ici : http://register.tiscali.fr/adsl/=0AOffre soumise =E0 condi=
tions.=0A
|