Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

To pass javascript variable to a Java Bean method  RSS feed

 
Kumar Navin
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
My problem is as such, have a java bean with some method. In my JSP page am using <jsp:useBean...> . I have to invoke a bean method which takes a String variable as a parameter which is to be fetched from the JSP page's text field. How do I do this?? What concatenation is to be used?
-Navin.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why using javascript.
just get the parameter from request object and pass it as an argument in your bean method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!