This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL how to pass value of id in sql param?  RSS feed

 
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
Posts: 66207
151
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
Boost this thread!