GeeCON Prague 2014*
The moose likes Struts and the fly likes Bean's value is not setting on submit press Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Bean Watch "Bean New topic
Author

Bean's value is not setting on submit press

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

HI

When I fille the form and submit it via a submit button the values are not setting into bean properties...where can I made mistakes...I am using struts 1.3 in my application...


No Kaustubh No Fun, Know Kaustubh Know Fun..
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

Kaustubh,

By now, you should be knowing that, without providing any details about your application and relevant code/configurations, you won't be able to get any decent help. So please be more specific about what problem you are running into.

[My Blog] [JavaRanch Journal]
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

MY JSP CODE...


Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

MY strutconfig code

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

ManagepriorityAction Code

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Redirect method code

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

now you can see in this code when i try to add an priority from my jsp I will fill the form then press save button then the control goes towards redirect method in the action class where it decide which method had to be called by seeing that request came from 'add' it send the conrtol towards insertprior method in action class where I must get the bean with the values i filled in the form but the problem is that I am not getting those values in that form...hope that the problem is claear to u..

Thanks
Kaustubh
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Moving to Struts, in case someone wants to read all of that.

sscce.org
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Ohk Sir...I hope I'll get the answer there..
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

got the solution the problem is with the hidden fields..
 
GeeCON Prague 2014
 
subject: Bean's value is not setting on submit press