cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Form inputfiled value in javascript to bean as parameter

Former Member
0 Kudos

Dear Experts,

I have a JSP form and on click of the submit i call a Java script. In the javascript i call a method in a bean (and pass string parameters) which would return me boolean value. Now On click of submit in the Javascript i'm able to call the bean method and pass hardcoded values successfully. But i'm not able to pass to the bean thee form input field values as parameter. I was able to get the form value in a variable say Var Str1, but not able to pass 'Str1' to the bean as parameter.

Points will surely be awarded.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mohamed Yusuf Penna Khaja,

You can access input field using java scriplet( instead of approach taken by you--java script to read input filed value) and pass the value to bean setter method.

Regards,

Ganga.

Former Member
0 Kudos

Hi Ganga,

Yes i already tried the jspset and get already but for some reason it was not working. I'm using portal Application project. the java file extends abstractportalcomponent.

Thanks

Former Member
0 Kudos

As this does not seem to be Web Dynpro related, you better ask this in the appropriate forum.

Armin

Answers (0)