0

I have created the following button:

 <form method="post" action="website.sup">   
 <input type="submit" id="btn1" name="btn1"/>
    </form>

I am trying to call a ".java" file when i press this button.
Sample of my .java code :

package website;
import javax.swing.*
public class sup implements Runnable{...

How do i call my java file?

Additional info:
My java file generates a jFrame to display real time data.
From my search efforts i found syntax only for "servlet".
I have imported in my .jsp file using this code:

<%@page contentType="text/html" pageEncoding="UTF-8" import = "javax.swing.*, java.sql.*, java.util.*, javax.comm.*, java.io.*, website.sup"%>
2
Contributors
3
Replies
16
Views
2 Years
Discussion Span
Last Post by stultuske
0

so, you've found the syntax for servlet ... why not use it, that's what it's for. call your other class from within that servlet.

0

actually i am in confusion about what to do.My main goal here is to get a jframe to display my MS acess database(with a button on my website that opens the jFrame) coulmn wise and that it updates in realtime.So i want code 1>a button that connects to the Jframe...2>Jframe code that displays ms access database.thank you.even the syntax for both would do so that i can replace the placeholder values with my own values.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.