Geeks Talk

Prepare for your Next Interview




which technique is perfect?

This is a discussion on which technique is perfect? within the JSP forums, part of the Web Development category; I want to move data from one page to another page. I have two ways.. 1. Using session object 2. Using hidden form field Tell me which one is more ...


Go Back   Geeks Talk > Web Development > JSP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-03-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
which technique is perfect?

I want to move data from one page to another page. I have two ways..

1. Using session object
2. Using hidden form field

Tell me which one is more useful and best ?

------------------
suresh

Last edited by psuresh1982 : 02-03-2007 at 08:46 AM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-17-2007
Expert Member
 
Join Date: Oct 2005
Location: india,cochi,bangalore
Posts: 395
Thanks: 2
Thanked 8 Times in 7 Posts
vmshenoy is on a distinguished road
Re: which technique is perfect?

there are four (and not two) techniques
1)hidden form
2)cookies
3)httpsession
4)urlrewriting

best is to use httpsession.

since hiddenform increases the complexity of code.
cookies are not secure and can b disabled by client

so go with sessions
__________________
:)
NEVER SAY DIE.
Reply With Quote
  #3 (permalink)  
Old 09-21-2008
Junior Member
 
Join Date: Sep 2008
Location: india
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
rajee2008 is on a distinguished road
Re: which technique is perfect?

Sessions r the best
Reply With Quote
  #4 (permalink)  
Old 10-16-2008
Junior Member
 
Join Date: Jul 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
it_uday is on a distinguished road
Re: which technique is perfect?

To share the data in jsp from one page to another page,you can use any two technique from below-

(1) request object.
(2) session object.

both object have setAttribute(String name,Object value) and an Object getAttribute(String name) method.
Reply With Quote
  #5 (permalink)  
Old 1 Week Ago
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ucan_aps is on a distinguished road
Re: which technique is perfect?

Session r best.. it is secure.. and also no limits..
Reply With Quote
Reply

  Geeks Talk > Web Development > JSP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Faster technique for Manual Software testing JobHelper Testing Issues 2 02-12-2007 06:53 AM
Finding the Perfect Career Opportunity admin Career Advice 0 06-10-2006 05:45 PM


All times are GMT -4. The time now is 12:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved