Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!

albert sie

Ranch Hand
+ Follow
since Jan 15, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by albert sie

i have the code like this


but the current time that i get is in string type and i need to compare the time inside the database which is in time datatype..

how can i solve this problem...
please help me i stuck
11 years ago


suppose the program will check whether the attendday < barClass if yes insert into the database. it should be more than 1 data will be insert. but when run this page error come out "Operation not allowed after ResultSet closed" juz 1 data been insert into database. is it my coding problem and how i gotta to solve my problem??
declare at outside just ca let me to get the last data in the vector
11 years ago
JSP


i already change my page but i still getting error:

An error occurred at line: 65 in the jsp file: /report.jsp
Generated servlet error:
add cannot be resolved


org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
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)



What is this proble actually or have other method to let me do this?
11 years ago
JSP
how can i get the current system time (eg. 11:00:00) and current system day (eg. Thursday) in java?
11 years ago

actually i want to read the data inside the vector then put it inside the textbox value to make it can be post to the next page. how i need to do this
[ March 12, 2007: Message edited by: Bear Bibeault ]
11 years ago
JSP
this is my coding:



This is mailer.jsp code:


org.apache.jasper.JasperException: /mailer.jsp(3,17) quote symbol expected
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
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)



wat is the problem with my coding causing such error. i really no idea on it already..

best regards,
albert
11 years ago
JSP
here is my jsp page:


this is my bean file:

This is my error message:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 6 in the jsp file: /process2.jsp
Generated servlet error:
The method validate() is undefined for the type Login


org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
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)

root cause




i solve this problem for several day already still cannot get it... any one expert here can help me oversee where is my error
thank you...

regards,
albert
11 years ago
JSP
i want to create a bean file but when i run the jsp page it's come out "unable to compile class for jsp"
i place my class file under the C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\WEB-INF\classes which my page is put inside the webapps\ROOT.

some one can give me the solution in this manner

thankyou...

best regards,

albert
11 years ago
i try to use cewolf but i setup depend on the tutorial of the cewolf, it not work for me... so i hav to find another solution to work it up
i want to use the jfreechart to create the chart iside the jsp page... but i having the problem... anyexpert here can helping me to solve the problem...

here is my jsp code:


here is my error:
"org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
Only a type can be imported. org.jfree.chart.JFreeChart resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.chart.ChartFactory resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.chart.ChartPanel resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.chart.StandardLegend resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.chart.axis.HorizontalCategoryAxis resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.chart.axis.NumberAxis resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.chart.plot.CategoryPlot resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.chart.renderer.LineAndShapeRenderer resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.data.DefaultCategoryDataset resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.ui.ApplicationFrame resolves to a package

Generated servlet error:
Only a type can be imported. org.jfree.ui.RefineryUtilities resolves to a package

An error occurred at line: 17 in the jsp file: /chart.jsp
Generated servlet error:
DefaultCategoryDataset cannot be resolved to a type

An error occurred at line: 17 in the jsp file: /chart.jsp
Generated servlet error:
DefaultCategoryDataset cannot be resolved to a type

An error occurred at line: 17 in the jsp file: /chart.jsp
Generated servlet error:
JFreeChart cannot be resolved to a type

An error occurred at line: 17 in the jsp file: /chart.jsp
Generated servlet error:
ChartFactory cannot be resolved

An error occurred at line: 17 in the jsp file: /chart.jsp
Generated servlet error:
ChartUtilities cannot be resolved


org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
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)"



how i can continue to let the chart can be display on the browser... thanks for your help and this is my final year project and i have to get it out... pls pls help me


thank you

regards,
albert

[ March 06, 2007: Message edited by: albert sie ]
[ March 06, 2007: Message edited by: albert sie ]
sorry about that coz i really urgent to get it for my final year project...
really sorry
11 years ago
How i need to use the jfreechart API inside the jsp page...
any one can provide me the easiest way to do this, thank you..

Best Regards,
albert
11 years ago
can anyone expert here help me to see wat problem of my program... i really no idea to solve it out liao



error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
Duplicate local variable message

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method setFrom(InternetAddress) is undefined for the type String

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
Duplicate local variable to

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method addRecipient(Message.RecipientType, String) is undefined for the type String

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method setSubject(String) is undefined for the type String

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method setText(String) is undefined for the type String

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method send(Message) in the type Transport is not applicable for the arguments (String)


[ March 03, 2007: Message edited by: Bear Bibeault ]
11 years ago
JSP