Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form property values becomes NULL

 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have two pages :

PersonalProfile.jsp
PreviousNameAddress.jsp

Problem: My statement "<bean:write name="tmpPersonalProfileForm" property="currentAddress" />" in PreviousNameAddress.jsp shows null value for property currentAddress. I checked all possible ways to find out why it is null but no clues !!

For all other properties of personalProfile.jsp , it shows correct values in PerviousNameAddress.jsp

say For ex, "<bean:write name="tmpPersonalProfileForm" property="LegalWork" />" is perfactly fine ..

Here, currentAddress is a radiobutton being used in PersonalProfile.jsp .It is there in actionForm PersonalProfileForm.

in the Action class PreviousNameAddressAction I already put everything in session but "currentAddress" shows null.


I hope I explained the problem well...

the Enviornment is : Websphere 5.1 WSAD 5.1 and struts 1.0

waiting for your replies..
thanks
-Anand
 
Pankaj Narang
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi anand

You told the currentaddress is a radio button in PersonalProfile.jsp , if it is the radio button you will be getting the null value if it is not checked and the value if you checked that one try to see in your actio class what you are getting in this radio button value.If you are getinng the value right in your action class then we will see further what is the problem.

Best Regards
Pankaj
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic