Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

few servlet interview questions..

 
trupti nigam
Ranch Hand
Posts: 627
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.What methods are used in servlet-applet communication??
2.Can u use javaScript in Servlets ?
3.If my browser does not support Cookie,and my server sends a cookie instance
What will happen ? (I think the cookie won't be saved on the client side..??)
4.What is the capacity the doGet can send to the server ?

This is a question from interview.
Thanks in advance..
Trupti
[ January 07, 2003: Message edited by: trupti nigam ]
[ January 07, 2003: Message edited by: trupti nigam ]
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1.What methods are used in servlet-applet communication??

chkout thelink from Oreilly, there is complete chapter on servlet-applet communication
http://www.servlets.com/jservlet2/examples/ch10/index.html
OR
http://www.javaworld.com/javaworld/jw-01-1998/jw-01-step_p.html


2.Can u use javaScript in Servlets ?

Yeah it is perfectly *legal*
but in real practice you won't do that.


3.If my browser does not support Cookie,and my server sends a cookie instance
What will happen ? (I think the cookie won't be saved on the client side..??)

Correct


4.What is the capacity the doGet can send to the server ?

Maximum 255 chars. Although the
HTTP protocol does not limit the
length of the query string, some
browsers and web servers may not
be able to handle more than 255.


This is a question from interview.

result ... got selected ?
-Varun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic