473,802 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1270
On Apr 18, 7:22 pm, "Evrim" <evrima...@hotm ail.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
1461
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
1841
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 with the following script: --------------------------------------------- import win32com.client import time
4
1629
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 suggest something? Using Jython to be able to use pyro is not technically feasible.
1
1626
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 native plugin ? Thanks in advance for answering to the newbye I am.
1
2477
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 report.how can i communicate among them so that i know which node is selected and can display appropriate report. Thanks Himanshu.
7
4374
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 beans which allow the update of a database. To be able to call these functions I've been told to use CORBA. I have very little knowledge of CORBA but would like find out as much as possible how I can communicate using CORBA and C# to Java.
5
1477
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 through a C program (and it has to be C due to the external hardware). As a result, I am writing a C program that will create a client socket to the Java program and a server socket to an external program. So, I need the program to: Set up a...
7
1671
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 the choice should be reported back to parent window. 1. To know which textbox caused the child window to open, the two hidden inputs namely cbox and statbox are used to keep track. 2. The javascript code goes through the option boxes to find...
4
6197
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 generated are written to a log file. A project team working in the same company as me here would like to use this loading utility. They write UI applications for Windows using Java. They were able to launch the Python script from within Java by...
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10063
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9115
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.