• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to link html page with java code.  RSS feed

 
rishi reddy
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!