Two Laptop Bag
The moose likes Struts and the fly likes form bean value not getting 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 "form bean value not getting" Watch "form bean value not getting" New topic
Author

form bean value not getting

Mamata Chaudhari
Greenhorn

Joined: Apr 26, 2009
Posts: 23
Hi,
I am using struts 1.2
My Jsp code contains two radio button
which changes action path which i m going to submit.




and my javascript function setValueOfRecordType() is as which i call on onclick of radio button




Now i have a <html:button onclick="submit1(this.form)">
and submit1() is as



and form tag is like this
<html:form action="navigateFinancialBusinessPlanDispatchAction.do?method=refJspForAdd" >


if i use form.submit();
my action not getting called which set in setValueOfRecordType()
action is directed to form action not my specified

if i use document.forms[0].submit();
it propery direct action but i m not getting my form bean values(hidden textbox) On my jsp.
Means i m not getting form bean values

Please help me. why this happened??


Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Carefully Choose One Forum
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 268
Oh! I read "from bean value not getting" and I thought I was going to meet Joda but world is not perfect!

Anyway, it would be better to put here all your form code, are you specifying the form id?

I don't understand why you pass the form value to submit1 if you are not going to use it.

What's the value of the action if you form.submit();?

What's the value of the hidden fields?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56202
    
  13

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: form bean value not getting
 
Similar Threads
Forwarding a JSP page in struts without population FormBean
Bean's value is not setting on submit press
Verification failed on Username existence check using AJAX
probleme scriptlet in javaScripts
Unable to fetch data on a specific JSP....getting error "HTTP Status 404 - /getData.do"... help.