How JSP call java function from class file

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 26th, 2006, 06:48
New Member
Join Date: May 2006
Location: earth
Age: 24
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation How JSP call java function from class file

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
Reply With Quote

Reply

Tags
jsp, call, java, function, class, file

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 04:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43