Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL how to pass value of id in sql param?

 
sanidhya kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSTL how to pass value of id in sql param?
 
Ashwini Kashyap
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sanidhya kumar wrote:JSTL how to pass value of id in sql param?


You cant make use of <c:set> inside JS function. It can be used in jsp but outside of functions.
Other way round, make use of hidden text field and assign value to it as you were doing in that function.

Thanks,
Ashwini Kashyap
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't mix JavaScript and JSP and expect them to interact. Please see the JspFaq which explains why.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic