aspose file tools
The moose likes Java in General and the fly likes how to link html page with java code. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "how to link html page with java code." Watch "how to link html page with java code." New topic
Author

how to link html page with java code.

rishi reddy
Ranch Hand

Joined: Jun 06, 2006
Posts: 30
hello guys,

i have java code for an application. I created a html page with two text boxes and one submit button. In one text box i enter one question and when i click on submit button, it should link the java code and display the result in another text box. All the logic to obtain result is in java code. so how do i need to link html page with java code.
if possible could anyone forward me the url where i can find the information to solve my problem
eagerly waiting for reply.
thanks guys for helping me.
rishi
(OCA 96.96%, OCP 84.04%)
(SCJP1.4 in progress)
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

If you have an HTML page with two text boxes, and you want interaction between them, all of which is triggered by an HTML button, then Java, in the pure Sun Microsystems sense, won't be helpful to you. Instead, you would use JavaScript, a scripting language that runs in an web browser that has a Java-like syntax.

Pure Java would come into play if the submit button triggered a Servlet or a JSP on a server, and a new HTML page would be sent back to the client. Alternatively, Java might be used if you developed an Applet, which is a Java program that runs within a web browser, but is much more complicated than a simple JavaScript.

There is a JavaScript forum on the JavaRanch. They might be able to help you as well.

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: how to link html page with java code.
 
Similar Threads
Building JSP pages and link to MySQL table
problem reagrding search engine
Need Java code to copy and paste from a widget to a text box on a web page
Dissaibe submit Button in HTML using javascript
sunil