File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 60991
    
  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?