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 :)
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 4 years ago.
Improve this question
I am new to Java development and just saw a file with .bak extension that looks like a java class but it is not. So I am wondering what is the purpose of the .bak files in general and why and when should I use it?
There is no special purpose for java files (or tooling here).
bak typically resorts to backup.
Such files get generated by various tools. These tools create bak files to avoid overwriting your original file. So there is no specific notion towards "java technology" here.
Simply look into the tools (mainly: your editor), and see if their help tells you about automatically creating backup file. The old Windows notepad editor did that for example.
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
I need open database of a software that use this three extension: cfs, cfx, and gen. I google and understood this is a Lucene index file but I dont have any java or lucene knowledge.
Please show me simplest way to open and read text of this file.image of files
Maybe Luke can help
From the github page
Luke is the GUI tool for introspecting your Lucene / Solr / Elasticsearch index.
I don't exaclty know from where you got that database files but as far as lucene (or solr) is concerned Luke does the job of opening and viewing Lucene index.
As for the files in the screenshot
.cfs Compound File: An optional "virtual" file consisting of all the other index files for systems that frequently run out of file handles.
segments.gen segments_3 Segments File: Stores information about a commit point
Taken from: http://lucene.apache.org/core/5_5_0/core/org/apache/lucene/codecs/lucene54/package-summary.html#package_description
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 8 years ago.
Improve this question
I am attempting to build a database that will allow a user to upload their music to be accessed by someone else/third party. How would I create it so that the music can be uploaded to a database but providing a path for it to be accessed from where it is stored?
As in A Band upload “Song” and it is then streamed by A Fan.
If it can't upload to a database I need to upload it to a server.
We are building the back end in Java and the front end in HTML.
We are also using Glassfish and Netbeans for writing the code.
You can store files in a BLOB field in a database for example. Another possibility would be to store them directly on the file system, but it has its problems (such as the lack of metadata).
Then you'll need to figure how you want to map each file, for example http://myserver.com/Artist/Album/Songname or http://myserver.com/listen?uniqueid=743.
File upload servlets are available all over the web, so that shouldn't be a problem. The rest is up to your programming skills (this might be too big of a project for you).
Then you'll just need to connect those things together, and that's the part where you start to program (or hit the Google hard).
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 JSP-based website in Netbeans which requires some additional libraries. Everything's fine, unless I copied all the project into the ROOT folder of Tomcat. I don't know how to config Tomcat to use those libraries, and so the project cannot be run.
As far as she is using Netbeans, her best bet is to configure Tomcat with Netbeans, its a matter of second and quite handy.
Otherwise, if she is following the standard directory structure she should be able to just drop the whole application directory into TOMCAT_HOME/webapps directory. And she will find her application listed in Tomcat manager.
I hope this would help. Moreover, her best bet is to ask herself. :)