Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to create a Java web application/applet/servlet that does this when the page loads:
Displays "Hello"
Under that, has a box to enter text
Under that, has a button that says OK.
When the user presses OK, I want the text to be saved, and then put into a Microsoft Access database.
This is a vastly simplified version of my real program, but I believe that if I figure out these basic tasks I can complete my actual program. Thanks.
You can check the Java Servlet technology from the Java EE 6 tutorial.
It has some examples at the end of each chapter(check the hello2 example at Part II chapter 3).
For the database you can check JDBC tutorial
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
This is the first time I am asking a question here, so forgive me if it is a bit confusing.
I have a java app that writes a word in txt file when started. Now I want to have a button on a web page, and when I click it I want my java app to start. Pretty much I can not figure out how to start java app from web page. If anyone can help I would be really greatful.
There are several way to do this with java.
One way is to do it with Java Servlet.
You need a html form with an action that points to a Servlet (an extended Java Class)
Have a look at this tutorial
As per your question, Java Web Start (JWS) will be a good choice. Just create a .jnlp file along with your jar and then you can start a Java program through a web page
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have a table on my web-page with thousands of entries and it shows 20 entries at a time. I want to take screenshots of all the entries page by page and then create a video of them using code. What would be the best language and method to do this task? I know nothing of this thing so I am open to any language like python, Java, Go, etc.
You can user Selenium library in either java or python, it has some tools for doing these operations.
here is an exapmle.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am just learning java. I just want to make a simple application to access a web-site.
there is a website onto which i want to log-in through java:
and then interact with it through my interface, basically after log in, i would be writing in some text boxes and sending it.
I tried many places to do it, studied HTTP protocol but still cant make it.
can someone help me out?
Accessing a web site, logging in and interacting with forms on it is somewhat complex work, so it might not be the best choice for a first java project.
But if you want to do it, you should probably use Apache HttpComponents/HttpClient.
There are useful examples at the above link as well, which may help you get started.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to create a website for users to upload videos, but I want to do some compression/conversion on the client-side first before actually uploading to my servers. This should cut down on upload times I hope.
My inital thought is to make a Java Applet, since I imagine Flash wouldn't have ffmpeg on the client-side. I'm not sure what version of Java to use, or whether to use Java Web FX. I haven't touched Java in years, so I don't even know what IDE or SDK to use (I'm on a Mac).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am in the process of learning JavaFX and I am looking for a tutorial about updating a JavaFX display with a java object. For example, receive status updates # 1hz from a server and display them on the fx window. Is this possible? If so, are there any tutorials?
Thanks in advance.
It is my understanding that calling JavaFX from Java is not well supported at this time. However, here are two blog posts that at least touch on the subject:
How to Use JavaFX in Your Swing Application
Calling JavaFX From Java?
I think a more natural solution is to provide an access point in your Java code and set up JavaFX to periodically poll for new updates, i.e. JavaFX asks for new data rather than having Java tell it.