Eric Tan

Ranch Hand
+ Follow
since Oct 11, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Eric Tan

thanks alot for the info
18 years ago
Can this automatic generate out the text file from mySQL database based on the current time at 8am daily?
can this be done?
18 years ago
oh. i am using db4o as my database. so it's a object database. i don't think there is any command for me to sort. but my team mate already sorted that out. i am not sure how yet but i will ask her and see. thanks alot for your help
18 years ago
i already can read from text file using string tokenizer and store it into the database. now the problem is, after it read line by line... but when it stores it.. it doesn't store the data in orderly format. it jumble up everything without following the sequence like in the text file?
can anyone help me on this? thanks
18 years ago
org.apache.jasper.JasperException: org/jfree/data/category/IntervalCategoryDataset
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
18 years ago
Can anyone please guide me if i have two jsp pages and after i press the submit button in the first page, i want to run two methods in java, that is stored and retrieve method whereby i want to display the results after i have retrieved in the second jsp page?

thanks alot
18 years ago
JSP
yeah. correct. what you said is my problem
18 years ago
really sorry about that.

ok, let's get to the point

createDataset() method wants to generate a graph. but it needs values.
StartDate() and EndDate() is the methods to extract out the necessary values to be used in the createDataset(), surely i will need a loop. can anyone help me or guide me on the getting values with the loop into createDataset()?
18 years ago
As you can see that
"public static IntervalCategoryDataset createDataset()" want to get the data and attributes from storeStartDate and storeEndDate methods. i have class files, StartDate and EndDate that contains all the accessor methods. after i have store the relevant attributes, i want to call it out in the "public static IntervalCategoryDataset createDataset()" method to manipulate it.

i hope that my question doesn't confuse you all. hope that you all can guide me on this. Thank you


18 years ago
the problem is in the "createDataset" method whereby i want to do a while loop where i can check the data inside the database that i just inserted. after that i want to pass in all the data that is needed to generate the Gantt Chart. can anyone help me on this?
thanks


18 years ago
This is one part of my coding to generate a Gantt Chart.
the problem is how can i convert from my chart.java that i kept the month integer to be put into the calendar in this codes below. as you can see that i retrieve from chart class the start day and the year also. but the calendar, i am not sure how. can anyone guide me on this?

thanks




this is my chart.java. where i set and get all the values
18 years ago
this is a workable sample i got the net. i want to ask some help on, how to retrieve just the day or the month from the startDate? for example, 2001-01-01... so if i want to display the day, it's going to print out "01". how can i do that? can anyone guide me one this? i tried on the codes that i just bold on. but still got error


18 years ago
yea. i got what you meant. look through it already. thanks alot for the info. now i have small little problem. as everyone know that i am using Stringtokenizer to read the token to token. the problem i tried how to embed the SimpleDateFormat into StringTokenizer to read it into day, month, year but fail. can anyone guide me on this?


and another update is, the user that pass me the text file successfully grab it without have the day together the date
so the text file will be read in this way

Testing,12/15/06,12/15/06

so this will be the new type of data that i have to read. another issue is, can i use StringTokenizer to start reading only from the 2nd line because the 1st line is just the header of the file??

thanks alot guys. for your help. really appreciate it
18 years ago
I have a text file that shows like this in every row

Testing,Fri 12/15/06,Fri 12/15/06,0 hrs


i will be using a delimiter to tokenized it by the symbol " , ". the problem now is the text files contain the day and date together as one attribute. how can i cut the day off and just read the date and split the dates into month/day/year? so that i can generate the gantt chart using this values?

can anyone help me on this? Thanks
18 years ago
The one that i highlighted, before that it was a hard code whereby i specific the location of the file. Now i allow the user to browse the file that wanted to be uploaded to the server. I declared in italic. the bold would the value of the parent class inherit into an object and stored the value after executing the method

hope that you all don't if my explanation is quite confusing

Thanks alot.

TokenTest.java
--------------------------------------------------------------




TextFile.java
--------------------------------------------------------------
18 years ago
JSP