Hi,
Everybody

public class MyServlet extends HttpServlet {
public void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {

ObjectServerHtml srv = new
ObjectServerHtml(req.getInputStream(),res.getOutputStream());

Serializable ser = null;
try {
    ser = srv.read();
    } catch ( Exception cnfe)
        {
            ...
        }

if (ser instanceof Person) {
Person person = (Person) ser;
person.setName(person.getName().toUpperCase());
getServletContext().log(person.getAge() + "No :");
person.setAge(person.getAge() + 1);
res.setContentType("text/html");
srv.write(person);
}
}
}

any body with fast reply will highly appreciated.

Thanks in Advance
Paresh

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to