This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes trying to use nested tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "trying to use nested tags" Watch "trying to use nested tags" New topic
Author

trying to use nested tags

Masha Klimenko
Ranch Hand

Joined: Feb 04, 2004
Posts: 31
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.


SCJP
Anton Golovin
Ranch Hand

Joined: Jul 02, 2004
Posts: 476
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 (anton.golovin@gmail.com) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: trying to use nested tags
 
Similar Threads
nested indexed property
nested dynamic properties in an ActionForm
Writting Nested Properties
How to get an inner property using tags?
nexted Iterate Tag syntax