aspose file tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 61
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: 56204
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL how to pass value of id in sql param?
 
Similar Threads
Using JSTL SQL Tag
How to pass JSTL value to javascript function
pass jstl sql query result to jsp
problem in sorting query in JSTL
jdbc connection in jsp