cancel
Showing results for 
Search instead for 
Did you mean: 

iview Java Cookie and Classpath

holger_stumm2
Active Contributor
0 Kudos

I am writing an iview that needs to set a cookie.

I tried:

Cookie SapCookie = new Cookie();

SapCookie.setValue("SAPCookie");

response.addCookie(SapCookie);

The DevStudio gives the error:

"Cannot find the class file for javax.servlet.http.Cookie"

But adding "import javax.servlet.http.* does not help.

Any help is awarded

thanks -hs

(As you can tell, writing java iviews is probably not my core competence, so be gentle)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Holger,

It is not sufficient if u add the import statement alone. U have to include the appropriate jar file to the project. Add the servlet jar (eclipse/plugins/com.tssap.ext.libs.j2ee_1.3/lib/servlet.jar) in the eclipse directory to your project.

Regards

Harini S

holger_stumm2
Active Contributor
0 Kudos

thanks for the express answer

Answers (0)