• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

trying to use nested tags

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 531
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic