This is a discussion on "How JSP call java function from class file" within the JavaScript Forum section. This forum, and the thread "How JSP call java function from class file are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
How JSP call java function from class file
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
hi guys, i wanna know how JSP call and pass parameter to a java function from class file.
class file ----------------------------------------- public double calcQty(double pPect, double tQty) { return (pPect * tQty / 100); } ------------------------------------------ JSP file ------------------------------------------- <jsp:useBean id = "pc" class="common.claim" scope="request" /> the following code is call the function from the class file <%=pc.calcQty()%> izzit correct or not? if let say i wan to call the function at onClick, how to write the code? if i wanna pass in parameter to that function, how to write? plz someone help. thx |
|
|
![]() |
| Tags |
| jsp, call, java, function, class, file |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to call a javascriprt function from a contentplaceholder | Graeme36 | ASP.NET Forum | 0 | Oct 14th, 2007 13:53 |
| call php function in image url | csun | PHP Forum | 16 | Aug 19th, 2007 18:49 |
| call php function in different database | csun | PHP Forum | 1 | Aug 8th, 2007 07:17 |
| AJAX call function | melvinoyh | JavaScript Forum | 2 | May 31st, 2006 01:02 |
| Link to call a function | riotman | Classic ASP | 3 | Dec 1st, 2005 10:03 |