473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Communicating from java script to java

Dear All

I am using JDK 6 , Tomcat 6 and Jena 2.5.2.

I would like to use javascript on my jsp page to pass the values of text
boxes to a java function I have. This java function uses the Jena library to
extract some info from OWL file based on parameters passed to it . I'd
extremely apprecite you help :

Assuming my jsp page is in folder [Tomcat] \webapps\mytest and Jena
libraries are in [Tomcat] \webapps\mytest\WEB-INF

1. Where (which folder) should I store my java class (java function) ?

2. How can I use javascript to call the Java function and pass values to it
(to invoke it so that it can proceed with what it is supposed to).

I am deeply grateful for your help

Evrim
Apr 18 '07 #1
1 1253
On Apr 18, 7:22 pm, "Evrim" <evrima...@hotmail.comwrote:
Dear All

I am using JDK 6 , Tomcat 6 and Jena 2.5.2.

I would like to use javascript on my jsp page to pass the values of text
boxes to a java function I have. This java function uses the Jena library to
extract some info from OWL file based on parameters passed to it . I'd
extremely apprecite you help :

Assuming my jsp page is in folder [Tomcat] \webapps\mytest and Jena
libraries are in [Tomcat] \webapps\mytest\WEB-INF

1. Where (which folder) should I store my java class (java function) ?
Depends on the Webserver, never used Tomcat myself. Maybe check their
forum ?
>
2. How can I use javascript to call the Java function and pass values to it
(to invoke it so that it can proceed with what it is supposed to).
Just pass "get" parameters to the "page", http://whateverdomain/servlet/ReadOWL?username=Kang
Then read the "username" parameter from your Request object.
>
I am deeply grateful for your help

Evrim
Your questions really doesn't have much to do with JavaScript, other
then maybe dynamicly create the URL used to pass whatever information
you have to the Servlet.

This might not have been what you wanted, guess I could have found
some links to Tomcat or retell whatever information I found in this
post.
But I'd suggest you ask on a Tomcat related Forum/UsenetGroup.

// [on]

Apr 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ph0ngwh0ng | last post by:
Is it possible to have a Java applet and a C program communicate? For example, is it possible to open a Java socket and communicate with a Win32 socket? Thanks for ANY advice :)
2
by: Eric Brunel | last post by:
Hi all, We're trying to communicate with Microsoft Visual C++ 6.0 via COM to make it perform a few operations. Our main need is to set a breakpoint on a given line in a given file. We ended up...
4
by: Max Ischenko | last post by:
Hi, I want to communicate my Python application with the Java one. The most obvious choice is XML-RPC, but ... I wonder about something more pythonic and powerful, like pyro. Could you...
1
by: valere | last post by:
I look for information for communicating between JavaScript and a native plugin. I noticed that LiveConnect is oriented to communicate as a "bridge" between Java and JS. But how to process with a...
1
by: Harsh | last post by:
i want to communicate crystal report with java script. I have a heirarchy tree displayed in java script and based on the node selected on that tree i want to generate and display report in crystal...
7
by: WAkthar | last post by:
Hi, I need to understand and implement a simple client application which will connect to a remote computer and call methods on this remote machine. The remote machine has some enterprise java...
5
by: caroalv | last post by:
Hiya, I hope I'm using the correct group here. I'm a newbie to C. I need a Java program and external program to send and receive messages to and from each other, but the only way I can do it is...
7
by: maralfarshadi | last post by:
Dear All I am working on a Java based Web app - In this application, a window contains many textboxes which open the same child window. The user should choose among the option boxes provided and...
4
by: Quill_Patricia | last post by:
I have a Python script which is used to load data into a database. Up to now this script has been run by customers from the Windows command prompt using "python edg_loader.pyc". Any error messages...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.