This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 1145

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: 8142
    
  52

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: 1145

MY JSP CODE...


Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

MY strutconfig code

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

ManagepriorityAction Code

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

Redirect method code

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

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: 1145

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

Joined: May 13, 2010
Posts: 1145

got the solution the problem is with the hidden fields..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bean's value is not setting on submit press
 
Similar Threads
taking value w/o submit
how to disable struts validation
Initial Context problem
Tab key setting on fields and button
setting dynamic actions for a selection list?