File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Form property values becomes NULL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form property values becomes NULL " Watch "Form property values becomes NULL " New topic

Form property values becomes NULL

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Hi All,
I have two pages :


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..
Pankaj Narang
Ranch Hand

Joined: Jun 07, 2004
Posts: 81
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
I agree. Here's the link:
subject: Form property values becomes NULL
It's not a secret anymore!