Hi, all. I have a jsp which is supposed to reflect a nested bean structure, where package object has a nested request object. The error I get is: "Null property value for 'request'". This is the jsp code: <nested:form action="/Package" focus="packageNumber"> Package Number: <nested:text property="packageNumber"/> Package Name: <nested:text property="packageName"/> <nested:nest property="request"> TR Number: <nested:text property="requestNumber"/> User Name: <nested:text property="userName"/> </nested:nest> <html:submit>Submit</html:submit> </nested:form>
The ActionForm class has property request of type Request, for which there is a setter a getter. If I take the request bean out from jsp, the jsp displays fine. With the request bean in, I get the above mentioned error. Can anyone help? Thanks in advance.
posted 11 years ago
I am not a specialist in JSP, except for some dabbling, but generally this might happen if your reference is pointing to null, that is, if it has not been pointed to a request object. Since you mention nested tags, could it be that there is a valid request object, but it just isn't passed or assigned into the context of the nested tag you are calling it from?
P.S. Do you check your private messages? [ July 19, 2004: Message edited by: Anton Golovin ]
Anton Golovin (firstname.lastname@example.org) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]