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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60041
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL how to pass value of id in sql param?
 
Similar Threads
How to pass JSTL value to javascript function
problem in sorting query in JSTL
jdbc connection in jsp
pass jstl sql query result to jsp
Using JSTL SQL Tag