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 creating a Java based application (a very tiny one) that downloads web-pages based on the URL that the user inputs.Now,the application does so, but shows only the source (HTML/JavaScript). How do I display the web-pages directly?
Short answer: render it.
Long answer: you need a web engine (HTML/JS/CSS parser + renderer on a canvas). This includes but not limited to Qt webkit, Chrome Embedded Framework, Gecko. There could be existing pure Java solution as well, but I don't know.
Alternative solution is to open it with a web browser by giving path to the downloaded web pages.
You can save the downloaded web pages and open it through any browser, if you want it to be programmatically, then you have to re-host the content locally on web server and then you could use selenium to open the webpage on any given browser.
Related
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 2 years ago.
Improve this question
I have created my website using Java Enterprise Edition (JSP/Servlets) and MySql 8 for my database. It is a typical CRUD application with a feature that let the user track the car's location.
I thought of using Flutter since it will save me time with its cross-platform capabilities but I have'nt found any documentations that will make the user login from the app to my website and fetch some data.
I'm pretty sure it is possible somehow. Otherwise is there a way to simulate my website as fast as possible without using Chrome obviously.
Read the concept of Rest APis.Simply use the api to fetch data and you can also save data through api.You need to Connect your app to your web APi.
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 5 years ago.
Improve this question
I need to learn java programming, I have a LAMP server running and i need to build a webapplication(dynamic website). I have planned to use HTML, CSS, JS and Java for server side scripting instead of PHP using eclipse IDE.
My question is does the above thing work out and also if i want to deploy the files do i need to send the files to /var/www/html/ or any other method of deployment is there ?
Your question is weird, but yes, you can make a application with Java for the server side, read about JSP. And the files folder depends on the local server you're using , though most of the time for unix thats the right folder.
Good luck , I think you research a lot.
Edit: I was about to edit this for the LAMP definition, LAMP stands for Linux, Apache, MySQL and PHP... So you're not technically using that..
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 6 years ago.
Improve this question
In our organization, We have one server in which one folder Log/Response is there. In this folder so many files will be there (XML file). Now I want to write a program to find all XML files which has a 'keyword' in Java, if possible. And after finding all such file it should return all files name. Here 'keyword' will be given from client (means user will open one URL/keyword from his browser).
So how can I achieve this thing? Which technology, language and tool I need to use? If I write a program then where exactly I should put it?
You can start from JSP/Servlet as starting point. JSP/Servlet will be communication point between user and server infrastructure where a list of files is located.
To search necessary file: as simple solution you can scan all files in necessary directory. But it will be slow. As more advanced solution, you should use some full text search engine(search will be fast).
Of course, JSP/Servlet will be deployed in servlet container such as Jetty or Tomcat.
That is all :)
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'm new to creating a web application with a Java back-end and a JavaScript, HTML 5 front-end. How do I pass content between the two?
You are looking for a web framework. These will integrate all three technologies you mention into a server and fully functioning webapp. You will also need to be working with JavaEE.
I recommend Jetty or Play
Look up some tutorials on how to get started but basically these frameworks will create the server backend that launches on a port and can host different sockets etc... and since theyre in Java the backend code can literally be written anywhere in the project...front end is easy too, you'll see how it works once you work through your first tutorial with them :)
Java EE is what you need indeed.
on a back end you add end points, and on front end you hit those end points w/ ajax
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 have made games in jar format using processing.org, Netbeans and Eclipse! These are desktop based games I want to run these games on online servers (web) without altering the code. This game also have embedded sounds and graphics in its folder. Please help me out I am new to web app development?
You can't just take a desktop application and put it somewhere and make it work in a webbrowser and multiuser magically.
You need to change code if you want your desktop application to become a webapplication.
It's a completely different development process.
For deploying Java desktop apps., the best option is usually to install the app. direct from a link using Java Web Start. JWS works on Windows, OS X & *nix.