I have a webform on JSP page which has several parameters(strings and integers) values and a file to be uploaded to the server through a servlet. It is strange to see that i'm able to upload the file on to the server but not able to get the rest of the parameters in the servlet using request.getParameter("someString") .
I want to get the time elapsed while opening a pdf file . I am not able to find a way to do it using PDFBox, Is there any way using which I can create a PDDocument in my java program and use some API to launch the PDF file and measure the time elapsed in opening it.
i can't make the [JfileChooser] save text file instead of opening files.that [ComboBox] always don't show me the items that i have inserted in eclipse.
as there is a button on the website, that I need to click, but it returns a number using javascript that will access the page. Without that number, accessing the page won't work. Therefore, either I need to click the button, or return that data when I access the url. Here is the line in the html.
-Allow users to upload a zip containing an html document + associated images. -Allow emails to be sent using the contents of that upload as the html of an email.
That's fine. What I'm finding to be tricky is a requirement to show a preview of the html.These files will be accessible to the file system of the tomcat web server, but how can I effectively serve them into an iframe?
I have developed an application using Java JSP and PostgreSQL database which inputs data from users including multiple file uploads in different formats (MS Word, Excel, PDF etc.). The uploaded files are also stored in the database.
My client wants the software to print a report in PDF format which includes all user data entered (in a defined format) along with all the uploaded documents as appendices.
How the system can include all uploaded files into one PDF report?
I have developed an application using Java JSP and PostgreSQL database which inputs data from users including multiple file uploads in different formats (MS Word, Excel, PDF etc.). The uploaded files are also stored in the database.
My client wants the software to print a report in PDF format which includes all user data entered (in a defined format) along with all the uploaded documents as appendices.
How the system can include all uploaded files into one PDF report?
I have created a java gui application and I need to communicate through the serial port. I would like to open the serial port in the beginning of the application and then close it when the applications closes. The problem that I am having is that I created a method to open the serial port in the main function but I can not close the serial port on exit off the application. Is there away of having the serial port be setup so that all methods can access the serial port.
I've been working on this code since a couple days and I just can't find what's wrong here. I have make an image open when the JMenu m6 button is clicked but it just doesn't work. I've tried a bunch of different codes but when I click on the desired button, nothing happens. Here's the code :
I'm now working more and more on the go and although I can carry my Macbook Air without too much trouble I've just been given an iPad Mini by work and it's far easier to do what I do with that on the move.
For work I need to open around 35 different websites at one time 4/5 times a day on the move.
With my Macbook that's no issue, as I can just use the open all function of my bookmarks, but on the iPad there is nothing that will allow me to do this.
I have looked online and a few people have had this issue and fixed it using the below Java method:
Creating a link that when clicked sets off a Javascript function that contains several window.open("url"); Clicking the link opens each website in its own tab.
We are creating a quiz as a school program, we are using netbeans and we have a little problem. The problem is that our JButton opens a new JFrame in a new window and we want it to stay in the same window. The code we are using is:
private void PlayButtonActionPerformed(java.awt.event.ActionEve nt evt) { Question1 s = new Question1 (); s.setVisible(true); }
Is it possible to make it stay in the same window?
I want to create a program which contains a list with 5 items and a button on the first display. The desired option is chosen from from the list and the button is pressed. On pressing the button it must open a new form which corresponds to the chosen item from the list.
My program has just "File" and "Help" in the menubar when "File" is clicked, there is an exit item that closes when clicked.i want the "About" item in "Help" to open a new window, what's wrong with my code?here is it:
I'm going through a file (MySQL dump) and I wish to take the SQL and create individual files for each table (as opposed to what I do now, which is just run through the whole thing).
Now, this all works fine - but what I want to do is create a separate .sql file for each table.
However, I can't figure out the best way to do this - how do I create a new FileWriter (or instance of whatever class is required) as I'm going through the while loop? That or pointing the same one to different files as I go through the loop.
It can be assumed that the file may exceed RAM - I want to do it line by line rather than slurping the entire file as a string and "cheating" that way.
There appear to be many (a bewildering amount of) I/O options and I'm just unsure.
I am trying to remove a line based on user input. myFile.txt looks like:
Matt Brian John
However when I enter "Brian" (to remove this line), It is deleted on the temp file (myTempFile.txt), but not renamed back to the original file (myFile).
I am creating a web application that runs on server X(unix) and it has another unix system mounted on it. I want to generate the file tree structure of this mounted unix file system and show it on to a web application so that users can select a file and move it onto this current unix machine.
I know this sounds stupid and you may want to say why cant we directly copy the file, I am doing a proof of concept and using this as a basis.
I am working on a project that requires me to build a database with random access file, representing products, the base product contains a name (about 30 characters), a price (double), and a quantity (integer). I have worked on this project for probably 15+ hours and have tried so many things and feel like I've barley made any progress...
The part i am really struggling with is taking the data from the text file and creating an object array with it using the product class. Once ive accomplished that, i have to use that data to create a random access file with the data.
Here is the base Product class that must be used to create the objects for the array.
public class Product { public String pName; public String stringName; public double price; public int quanity;
[Code] .....
And then here is the data from the text file that i must extract to use to create product objects.
These continue for about 40-50 entries, they are not separated by a blank line though i had to add those so it would display correctly, each entry is on its own line with name separated with spaces, then price after a comma, then quantity after the second comma.....