It's all about the answers!

Ask a question

OSLC LAB 3, adding all the html to the Servlet

Staffan Solin (138) | asked Feb 22 '17, 7:10 a.m.

 Im following this guide:

On page 77 I copy all the html code to my ListOfProjectAreas folder where the guide suggested it to be. But however in next step when i copy the packages i still end up with three errors. (I cant upload image to the forum so you can reach the error here)

How do i get rid of the error: "Element cannot be resolved to a type" and "PrintWriter cannot be resolved to a typ".

Thanks in advance.

2 answers

permanent link
Ralph Schoon (61.5k33643) | answered Feb 23 '17, 4:18 a.m.

 The errors are missing class imports or missing dependencies. If the quickfix on the error does not show to import the class, check the dependencies. I have not done this workshop for a while, so I can't tell you how to do that. Usually it is in the Build Path. The pages before mention some libraries that need to be specified. Maybe you are missing one, or classes are moved to another library. You would be able to see the full qualified name of the class maybe in the source project.

permanent link
Staffan Solin (138) | answered Feb 23 '17, 7:13 a.m.

 Importing these two solved my problems.

import org.w3c.dom.*;

Your answer

Register or to post your answer.