Mini Kabibi Habibi
��� 3 �
D w x j y
l z { j | } ~
�
w j �
� �
�
� k � � k � � k � k � �
n � � � �
l � � � � � � � � � � � j � j � p � � �
�
� �
� �
n � �
� � � � � � � � � � � � � � � � �
C � � � serialVersionUID J
ConstantValue <init> ()V Code LineNumberTable LocalVariableTable this LCookieExample; doGet R(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V cName Ljava/lang/String; cValue cookie Ljavax/servlet/http/Cookie; session Ljavax/servlet/http/HttpSession; sessionId request 'Ljavax/servlet/http/HttpServletRequest; response (Ljavax/servlet/http/HttpServletResponse; rb Ljava/util/ResourceBundle;
cookieName cookieValue aCookie out Ljava/io/PrintWriter; title cookies [Ljavax/servlet/http/Cookie;
StackMapTable � � � � � h �
Exceptions � � doPost
SourceFile CookieExample.java J K LocalStrings � � � �
cookiename � � cookievalue javax/servlet/http/Cookie J � java/lang/StringBuilder � � � � / � � � � � � text/html � � UTF-8 � � � � <!DOCTYPE html><html> � � <head> <meta charset="UTF-8" />
cookies.title � � <title> </title> </head> <body bgcolor="white"> <a href="../cookies.html"> Z<img src="../images/code.gif" height=24 width=24 align=right border=0 alt="view code"></a> <a href="../index.html"> Y<img src="../images/return.gif" height=24 width=24 align=right border=0 alt="return"></a> <h3> </h3> � � � � � � cookies.cookies <br> � � � �
Cookie Name: � � � � � Cookie Value: � � � <br><br> cookies.no-cookies <P> cookies.set cookies.name
cookies.value cookies.make-cookie <form action=" CookieExample" method=POST> /<input type=text length=20 name=cookiename><br> 0<input type=text length=20 name=cookievalue><br> <input type=submit></form> </body> </html> Q R
CookieExample javax/servlet/http/HttpServlet %javax/servlet/http/HttpServletRequest &javax/servlet/http/HttpServletResponse java/util/ResourceBundle java/lang/String java/io/PrintWriter javax/servlet/http/HttpSession java/io/IOException javax/servlet/ServletException getLocale ()Ljava/util/Locale; getBundle @(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle; getParameter &(Ljava/lang/String;)Ljava/lang/String; '(Ljava/lang/String;Ljava/lang/String;)V getContextPath ()Ljava/lang/String; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString setPath (Ljava/lang/String;)V addCookie (Ljavax/servlet/http/Cookie;)V setContentType setCharacterEncoding getWriter ()Ljava/io/PrintWriter; println getString
getCookies ()[Ljavax/servlet/http/Cookie;
getSession #(Z)Ljavax/servlet/http/HttpSession; getId getName getValue util/HTMLFilter filter print util/CookieFilter J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ! C D E F G H J K L / *� � M &