Jason Mil

Greenhorn
+ Follow
since Aug 02, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jason Mil

Thanks for your reply.

From what I've read, a servlet object is created only once when the server is launched, not for every client session. Some tutorials are somewhat confusing: the user's information are stored in a pair of attributes (username, password) of the servlet, which means that all the users will actually share the same information. It does not make sense. Anyway, calling getThreadLocalRequest() is the best way to know which user the request is sent from?

GWT is compiled into JS. All you can do on the client side is choose a file and upload to the server.



For instance, in the client side I have the following java code:

The generated javascript will look like this?

It is what I meant by "preprocessing".
12 years ago
GWT
Hello,

I'm new to web dev and especially to GWT. I would like to make some points clear in order to start my project on good basis:

  • When are the RemoteServiceServlet objects created, destroyed, and by who? One for each browser window? For example, for a typical login form, one only needs to store the current user's information in the members of the servlet and they will be kept until the browser is closed?


  • What are the best ways to split an application into servlets? What would be the relevant criterions for grouping requests in the same servlet?


  • If a XML file is parsed client-side in JAVA giving a static path aiming to my disk, the generated JavaScript code will not contain any evidence of this file being read, right? In other words, most of the client-side java code is preprocessing from the compiler point of view?


  • Thanks!
    12 years ago
    GWT