473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Store data at the client-side using jsp/servlets

11
can anyone plzzz tell how to store data at the client side using jsp's or servlets?
Oct 1 '07 #1
7 4473
acoder
16,027 Expert Mod 8TB
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 2GB
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 Expert Mod 8TB
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
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 Expert Mod 4TB
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
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 Expert Mod 4TB
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_value 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
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...
3
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...
3
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...
36
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...
4
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...
1
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...
3
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...
14
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...
7
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...
9
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{...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.