| |

VerySource

 Forgot password?
 Register
Search
View: 829|Reply: 3

Problems using jfreechart under struts

[Copy link]

2

Threads

9

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-17 17:00:01
| Show all posts |Read mode
Add <servlet> in web.xml
                    <servlet-name> ChartServletDemo </ servlet-name>
                    <servlet-class> org.jfree.chart.servlet.ChartServletDemo </ servlet-class>
                </ servlet>
                <servlet-mapping>
                    <servlet-name> ChartServletDemo </ servlet-name>
                    <url-pattern> / servlet / ChartServletDemo </ url-pattern>
                </ servlet-mapping>
After that, start tomcat and run the program,
An error occurred: ParserUtils: warning org.xml.sax.SAXParseException: URI was not reported to parser for entity [document]
ie page shows servlet is avliable error, very anxious, can anyone solve it
Reply

Use magic Report

0

Threads

18

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-6-23 02:00:01
| Show all posts
Bangding

Set it to the best value
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-17 17:00:01
| Show all posts
Just import jcommon.jar and jfreechart.jar, don’t import other packages
Reply

Use magic Report

2

Threads

9

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-8-17 19:30:01
| Show all posts
Thank youiamdurden, the problem has been solved, it is the problem of the jar package
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list