File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets" Watch "servlets" New topic
Author

servlets

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
1) Is it possible to communicate from applet to servlet? if possible how?
2) In sessions where to declare the session variable and where to declare the common variable to all .because if new user is coming , it should initialize and start from the beginning?
.. how we can do it?
3) how we can create dynamic array with out using the util package? (tell the logic)
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
1) Is it possible to communicate from applet to servlet? if possible how?
Somewhere on this site there is a whole discussion of this problem, with plenty of examples.
2) In sessions where to declare the session variable and where to declare the common variable to all .because if new user is coming , it should initialize and start from the beginning?
The init method is where you should do ALL initialization. It is guaranteed to be run to completion before any request is serviced.
There should not be ANY instance variables that change during the operation of the servlet unless you really know what you are doing. Remember normally there is only one instance that may be dealing with multiple requests at the "same" time.
3) how we can create dynamic array with out using the util package? (tell the logic)
Copy the source code in java.util.Vector
Why not use java.util.* ?
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlets