This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes JSTL how to pass value of id in sql param? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL how to pass value of id in sql param?" Watch "JSTL how to pass value of id in sql param?" New topic
Author

JSTL how to pass value of id in sql param?

sanidhya kumar
Greenhorn

Joined: Sep 05, 2012
Posts: 18
JSTL how to pass value of id in sql param?
Ashwini Kashyap
Ranch Hand

Joined: Aug 30, 2012
Posts: 90
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

Joined: Jan 10, 2002
Posts: 60745
    
  65

You can't mix JavaScript and JSP and expect them to interact. Please see the JspFaq which explains why.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSTL how to pass value of id in sql param?
 
Similar Threads
How to pass JSTL value to javascript function
jdbc connection in jsp
pass jstl sql query result to jsp
problem in sorting query in JSTL
Using JSTL SQL Tag