Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

trying to use nested tags

 
Masha Klimenko
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anton Golovin
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic