This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes few servlet interview questions.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "few servlet interview questions.." Watch "few servlet interview questions.." New topic
Author

few servlet interview questions..

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
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

Joined: May 30, 2002
Posts: 1400

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


- Varun
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: few servlet interview questions..