473,804 Members | 2,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Store data at the client-side using jsp/servlets

11 New Member
can anyone plzzz tell how to store data at the client side using jsp's or servlets?
Oct 1 '07 #1
7 4507
acoder
16,027 Recognized Expert Moderator MVP
Do not use words such as 'Plzzz', 'help' and 'urgent' in your thread title. They don't make your question more likely to be answered. If anything, it's less likely to be looked at.

Can you give more information about the kind of data that you want to store? Post your code using code tags.

JavaScript cannot store data in a database (if that's what you mean), but you can use Ajax to make a request to a server-side script (in this case, a JSP servlet) to do it for you.
Oct 1 '07 #2
dmjpro
2,476 Top Contributor
Do not use words such as 'Plzzz', 'help' and 'urgent' in your thread title. They don't make your question more likely to be answered. If anything, it's less likely to be looked at.

Can you give more information about the kind of data that you want to store? Post your code using code tags.

JavaScript cannot store data in a database (if that's what you mean), but you can use Ajax to make a request to a server-side script (in this case, a JSP servlet) to do it for you.
I think he is talking abut client side data, it may be Cookie :-)

Kind regards,
Dmjpro.
Oct 2 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
I think he is talking abut client side data, it may be Cookie
Well, if it is a cookie, then try this link.
Oct 2 '07 #4
Ale
11 New Member
Well, if it is a cookie, then try this link.
Is it possible using arrays or arraylists at the client side??
Oct 3 '07 #5
gits
5,390 Recognized Expert Moderator Expert
hi ...

what do you mean exactly with that? in scripts you may use arrays, objects wherever you want ... and i think you could store them in a cookie too ... you would need to have a json-like string that you store in a cookie ... when you reread the cookie-value you may eval it and you will have the array, object, or whatever back in your script ...

kind regards
Oct 3 '07 #6
Ale
11 New Member
hi ...

what do you mean exactly with that? in scripts you may use arrays, objects wherever you want ... and i think you could store them in a cookie too ... you would need to have a json-like string that you store in a cookie ... when you reread the cookie-value you may eval it and you will have the array, object, or whatever back in your script ...

kind regards

hey hii...


i am new to JS...can u xplain me tht wid an example...how can u xactly store the data using arrays at the client side??
Oct 3 '07 #7
gits
5,390 Recognized Expert Moderator Expert
hi ...

have a look at post #4 there you find a link with an example on how to use cookies.

now we set the value of the cookie to something like this:

Expand|Select|Wrap|Line Numbers
  1. var cookie_value = '[1, 2, 3]';
  2.  
when you read this value out of the cookie you may do:

Expand|Select|Wrap|Line Numbers
  1. var reread_cookie_value = eval(cookie_value);
  2.  
and reread_cookie_v alue now contains a javascript-array [1, 2, 3]

kind regards
Oct 3 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4266
by: serge | last post by:
My project is to automate testing of Stored Procedures of type SELECT (at least for now). I want to create a table where each stored procedure's input parameter values are entered and in another table the expected result value(s) are entered when executed against a sample database containing manually entered and verified data. My current problem is that the stored procedures' input
3
2198
by: James Geurts | last post by:
This is probably more of an ASP.Net situation rather than c#, but since all of my code behind is in c#, maybe it fits here. I'm wondering, generally, at what point is it too inefficient to store information in a client cookie rather than retrieve it from a datastore. Now, I see the advantage of not storing it in a cookie, but a lot of programs already use cookies to store things from user credentials (roles) to specific user settings....
3
1497
by: serge calderara | last post by:
Dear all, One simple question relative to store procedure withinh ASP code on a web page. Let say that I am calling a store procedure to execute from a server button click on my web page. That store procedure is returning a bunch of values to my end user. In a matter of time based, what happen from my client web page if my store procedure runs for 3 minutes before returning any data back.
36
2868
by: Crirus | last post by:
Hi I have about 1000 records of users to store.. I dont like the ideea of a database server... How to store does data in a structured way? An XML? How big can became such an xml, because I whould like to load it and search for data. Can I search for some data without loading all xml into memory? --
4
4018
by: Piotrekk | last post by:
Hi everyone. I would like to ask about good habid, of keeping program data. I have written in C# Server and Client applications, and now i need to care about authorization. What i mean is that Server should allow login only authorized users - Admin of the server should have good and comfortable acces to "permitted users list", with opportunity to add or remove entries in a good way. Program should also keep info. where to store...
1
1197
by: John Wright | last post by:
What are some good stragegies for writting a disconnected client store. I was looking at MSMQ, Serialization and possible SQL Server Express, but I am open to any suggestions. I have to scenerios. 1. I have a client/server application that needs to be connected as much as possible. I plan on caching the lookup tables on the local machines and running a thread every so often to check for differences. These tables to not change...
3
3554
by: ipy2006 | last post by:
I encrypted a string within a Java application. I need to store that encrypted string in a given field in the DB2 database. Currently the datatype for that field is char(10). I am getting a SQLCODE: -302 error, which means incompatible data types. The encrypted strings are longer than 10 characters. I am not sure if BLOB data type needs to be used or if I can increase my existing field to char(30). Thanks,
14
1854
by: Naraendirakumar R.R. | last post by:
I have a client in the healthcare industry who would prefer to store the connection string in a centralized location in their Active Directory repository. Has anybody done this? What has your experience been? Are there any stock components in ASP.NET or 3rd party that would make this easy? Thank you for the info.
7
2787
by: Nash | last post by:
Hi, I have a Client and Server application which does communication using sockets(APM). The problem is Whenever the client is connected to a server i am storing the socket in a list. When server wants to send a message to a particular client whose ip is known, i have to loop through all the sockets in the list, gets its ip and compare it with my ip and send the data. is there any other way to avoid looping the huge list??
9
7273
by: =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post by:
I want to download pfx from my asp.net server, add the pfx to client's X509Store as a trusted publisher, Is it possible? my func in aspx is like this: void InstallCertification() { try{ WebClient web = new WebClient(); string url = "http:/myaspserver/mydir/mykey_2008.pfx"; byte b = web.DownloadData(url);
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10351
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9174
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6866
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.