can anyone plzzz tell how to store data at the client side using jsp's or servlets?
7 4473
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.
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.
I think he is talking abut client side data, it may be Cookie
Well, if it is a cookie, then try this link.
Well, if it is a cookie, then try this link.
Is it possible using arrays or arraylists at the client side??
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
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??
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: - var cookie_value = '[1, 2, 3]';
-
when you read this value out of the cookie you may do: - var reread_cookie_value = eval(cookie_value);
-
and reread_cookie_value now contains a javascript-array [1, 2, 3]
kind regards
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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{...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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...
| |