Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Java Help

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-2006, 05:02 PM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Credits: 0
Rep Power: 11
Void is on a distinguished road
Default First Java Program and .....

I'm developing a Web Application, and i don't understand how session and request variables work. Can someone point me in the right direction?

This is for a class.......
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-03-2006, 07:27 PM
brackett brackett is offline
Programmer
 
Join Date: May 2006
Posts: 193
Credits: 0
Rep Power: 10
brackett is on a distinguished road
Default

Quote:
Originally Posted by Void View Post
I'm developing a Web Application, and i don't understand how session and request variables work. Can someone point me in the right direction?

This is for a class.......
Session variables are stored on the server's memory and are never sent down to the client. This is more secure and faster (since RAM is faster than network), but takes up server RAM. Also, in a webfarm, session variables are per-server, which is not usually what you want. .NET can deal with this by having a "state server", but then you lose the performance advantage. You still have a security advantage, though, in that since it's never sent to the client, the client can't modify it directly.

Request variables are sent to the client at the end of 1 request, and are returned by the client at the beginning of the next. Cookies, form variables, and query strings are all examples of request variables. These can be modified by the client, or never returned by the client - so they're not all that reliable. That being said, for 9/10 of the data that needs to round trip, they're Good Enough.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image analysis program: Java or C++ ? espinchi General Programming 3 10-25-2007 11:00 AM
Java Facts techni68 Java Help 0 01-17-2007 01:41 PM
John's Java Tutorial Index John Java Tutorials 0 01-11-2007 03:05 PM
I'd like to ask what program. lang. aside fr. C, Java and COBOL is best... bryan General Programming 4 11-28-2006 11:49 AM


All times are GMT -5. The time now is 03:14 AM.

Contest Stats

Xav ........ 1276.19
MeTh0Dz|Reb0rn ........ 1048.58
morefood2001 ........ 879.43
John ........ 872.39
marwex89 ........ 869.98
WingedPanther ........ 761.06
Brandon W ........ 684.87
chili5 ........ 294.12
Steve.L ........ 216.18
dargueta ........ 192.86

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 81%

Ads