Naadir Peterson

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

Recent posts by Naadir Peterson

Hi,

Don't know if i put this in the right forum so anyways....
I'd like to know if anyone has any examples or tutorials for reading and writing to an xml file, and resizing image files? I'm creating a small website for someone and i'm not fimiliar with mySql. I'm relatively new to JSP and java. Have been working in .net most of the time.

Thanks...
19 years ago
JSP
Hi,

How do i connect to a microsoft access db without creating an ODBC Datasource. Im creating a small website using jsp and i need to access the database directly.

Thanks
I'm assuming no one on earth has used crystal reports with java...

20 years ago
try using simpldateformat to format the date appropriately...

maybe the server time is incorrect...
20 years ago
The help on bussines object's website is pretty useless...
20 years ago
Hi,

I'm new to crystal reports. I'm busy evaluating CR 10 and have been going through there examples. I'm having problems trying to view the report in my jsp page. I get the following error:

----------------------------------------------------
javax.servlet.ServletException: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.basic_jsp._jspService(org.apache.jsp.basic_jsp:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:296)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl
com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source)
org.apache.jsp.basic_jsp._jspService(org.apache.jsp.basic_jsp:51)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:296)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
-------------------------------------------------------------

I'm assuming that it cant find the report. I have all the libraries in place and even copied the reports all over the place. Set the path to the reports in the xml file as stated in the start up guide. I've been struggling with this problem all week. There's so little help on the net regarding this and the help on bussines object's website is useless...
I'm using tomcat 5.
20 years ago
Hi...

Does anyone know where i can find a crystal reports tutorial using with java?

Thanks
20 years ago
I've been through the Calendar class, Basically it's easy to just add time to a given date. I need to be able to calculate - say - 12 hours from a given date to incorporate the buisiness hours. If the buisiness' hours are from 8am - 5pm, and 12 hours have to be added from, say 2pm, normally the result would be 2am the following morning, but, the buissiness won't be open then. So 12 working hours from 2pm should be 5pm the following day OR 8am the day after that. I also have to incorporate weekends and public holidays, if the buisiness is closed over these periods.

Hope you'll be able to help me with this.

Cheers...
20 years ago
I need to calculate a new date using an hour value eg:
Date : 23 March 2005 14:00 pm
Hours to be added: 12
Working hours : 8am - 5 pm

I need to calculate a new date/time using the working hours, so that the added time falls within those working hours.

Thanx...
20 years ago
Hi

I have a user table thats related to many tables... i need to delete all the data that's related to that user and data which are related to those tables etc... the thing is there's over 100 tables that i need to delete from... isn't there an easier way to delete everything related to that user without deleting the data in the table 1 by 1.
Is there any way i can delete from 1 big select statement?

I'm using MS SQL 2000...

Thanks
Hi...

Can anyone tell me how to create,read and write to microsoft excel sheets...
I need to generate reports and graphs from a database to an excel spread sheet fast and effeciantly through a web application...

Are there any api's available... and is it feasible or a good idea to create reports through ms excel or should i conform to a third-party software?
I found a product called JReport - http://www.jinfonet.com/javareporting.htm
that looks quite interesting...

Please inform me what would be the most appropriate solution.

Thanks

The key to success is knowledge...
The key to knowledge is effort...
20 years ago
well... i doing a file uploading module... so i need to get the absolute path of the server where the application will be residing. but when i run the following line on my jsp page:

out.println("Dir" + new File("..").getAbsolutePath());
i get - Dir C:\Program Files\Apache Group\Tomcat 4.1\..
instead of d:\Application\

for each client i will ned to make a new directory eg. \Application\documentUploadin\newClientDir
and store that clients documents in that directory...

maybe i need to run that code in a class or ejb since tomacat does not compile java classes... do u think that will work?
20 years ago
Hi...

i posted a question about finding the absolute path on a server...
i found the answer but when i printed it out it displayed the tomcat directory in the absolute path.
is there a way that tomcat can compile my jsp's and servlets in my working directory...

Thanks
20 years ago