on 04-25-2006 8:03 AM
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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.