Hi all.
It's a general question, just for the sake of curiosity:
..NET introduced ViewState as a way to keep the state across postbacks. I
love it, use it all the time, blah blah...
But Java has been around for much longer than .NET. I don't have experience
with it. Does Java have anything like ViewState? How do those guys keep the
state? I mean, of course you can create your own session and store it in db
or use cookies, but is there any "stand alone" object / mechanism in Java?
Thanks,
Kikoz 7 2878
The viewstate just uses and hidden HTML form field. You could do the same
with Java (or more precisely with whatever Java uses to built an HTML UI).
ASP.NET provides a clever server side programming model but behind the scene
it just has to rely on HTML...
Patrice
--
"Kikoz" <ki***@hotmail. com> a écrit dans le message de
news:e4******** ******@TK2MSFTN GP14.phx.gbl... Hi all.
It's a general question, just for the sake of curiosity:
.NET introduced ViewState as a way to keep the state across postbacks. I love it, use it all the time, blah blah... But Java has been around for much longer than .NET. I don't have
experience with it. Does Java have anything like ViewState? How do those guys keep
the state? I mean, of course you can create your own session and store it in
db or use cookies, but is there any "stand alone" object / mechanism in Java?
Thanks, Kikoz
Actually, it doesn't have to relay on HTML. .NET just uses HTML hidden field
by default. You can keep ViewState in Application, or Cache, or hard drive.
I was asking if Java has any "out of the box" solution to free you from
developing your own method. Thanks, anyway :)
Anyone with Java background?
"Patrice" <no****@nowhere .com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. The viewstate just uses and hidden HTML form field. You could do the same with Java (or more precisely with whatever Java uses to built an HTML UI).
ASP.NET provides a clever server side programming model but behind the scene it just has to rely on HTML...
Patrice
--
"Kikoz" <ki***@hotmail. com> a écrit dans le message de news:e4******** ******@TK2MSFTN GP14.phx.gbl... Hi all.
It's a general question, just for the sake of curiosity:
.NET introduced ViewState as a way to keep the state across postbacks. I love it, use it all the time, blah blah... But Java has been around for much longer than .NET. I don't have experience with it. Does Java have anything like ViewState? How do those guys keep the state? I mean, of course you can create your own session and store it in db or use cookies, but is there any "stand alone" object / mechanism in Java?
Thanks, Kikoz
> Anyone with Java background?
We had to spend vasts amount's of time creating/debugging/maintaining a BOAT
load of code to setup a framework and ensure current/new JSPs/servlets use
that framework. :<
In moving to .NET (creating webapps at home :>), there are SOOOOOO many
things C#/.NET just do better/faster/cleaner than the j2ee world. :< The
..NET world gives you and awesome framwork to start off with. In j2ee, you
have the APIs and good freak'n luck! :<
re state
I'm much happier at home with .NET than I was with j2ee! :>
hth :>
I was talking as far as viewstate (client side state) is concerned.
Try : http://java.sun.com/blueprints/qanda...ion_state.html
Java is just a language and all of this applies as well to ASP.NET. Actually
you'll find also the same server side mecanisms such as a httpSession class
etc... Nothing new under the Sun.
Patrice
--
"Kikoz" <ki***@hotmail. com> a écrit dans le message de
news:eD******** ******@TK2MSFTN GP11.phx.gbl... Actually, it doesn't have to relay on HTML. .NET just uses HTML hidden
field by default. You can keep ViewState in Application, or Cache, or hard
drive. I was asking if Java has any "out of the box" solution to free you from developing your own method. Thanks, anyway :) Anyone with Java background?
"Patrice" <no****@nowhere .com> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. The viewstate just uses and hidden HTML form field. You could do the
same with Java (or more precisely with whatever Java uses to built an HTML
UI). ASP.NET provides a clever server side programming model but behind the scene it just has to rely on HTML...
Patrice
--
"Kikoz" <ki***@hotmail. com> a écrit dans le message de news:e4******** ******@TK2MSFTN GP14.phx.gbl... Hi all.
It's a general question, just for the sake of curiosity:
.NET introduced ViewState as a way to keep the state across postbacks.
I love it, use it all the time, blah blah... But Java has been around for much longer than .NET. I don't have experience with it. Does Java have anything like ViewState? How do those guys keep the state? I mean, of course you can create your own session and store it
in db or use cookies, but is there any "stand alone" object / mechanism in Java?
Thanks, Kikoz
Thanks, guys!
"Kikoz" <ki***@hotmail. com> wrote in message
news:eD******** ******@TK2MSFTN GP11.phx.gbl... Actually, it doesn't have to relay on HTML. .NET just uses HTML hidden field by default. You can keep ViewState in Application, or Cache, or hard drive. I was asking if Java has any "out of the box" solution to free you from developing your own method. Thanks, anyway :) Anyone with Java background?
"Patrice" <no****@nowhere .com> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. The viewstate just uses and hidden HTML form field. You could do the same with Java (or more precisely with whatever Java uses to built an HTML UI).
ASP.NET provides a clever server side programming model but behind the scene it just has to rely on HTML...
Patrice
--
"Kikoz" <ki***@hotmail. com> a écrit dans le message de news:e4******** ******@TK2MSFTN GP14.phx.gbl... Hi all.
It's a general question, just for the sake of curiosity:
.NET introduced ViewState as a way to keep the state across postbacks. I love it, use it all the time, blah blah... But Java has been around for much longer than .NET. I don't have experience with it. Does Java have anything like ViewState? How do those guys keep the state? I mean, of course you can create your own session and store it in db or use cookies, but is there any "stand alone" object / mechanism in Java?
Thanks, Kikoz
"Kikoz" <ki***@hotmail. com> wrote in message
news:e4******** ******@TK2MSFTN GP14.phx.gbl... Hi all.
It's a general question, just for the sake of curiosity:
.NET introduced ViewState as a way to keep the state across postbacks. I love it, use it all the time, blah blah... But Java has been around for much longer than .NET. I don't have experience with it. Does Java have anything like ViewState? How do those guys keep the state? I mean, of course you can create your own session and store it in db or use cookies, but is there any "stand alone" object / mechanism in Java?
I believe that JavaServer Faces technology is a fairly close equivalent to
ASP.NET, and if I remember correctly (I had been working on the J2EE
Tutorial up to a month ago), there _is_ an equivalent to ViewState.
John Saunders
AFAIK how it is implemented is not part of the specification. This is just a
"statebag" that is implemented either server side or client side.
For a client side implementation IMO it's likely it uses an hidden field as
ASP.NET does (easiest way to be able to set something client side and to
have it submitted on the next round trip) and it works regardless of wether
or not cookies are enabled.
Patrice
--
"John Saunders" <johnwsaundersi ii at hotmail.com> a écrit dans le message de
news:eN******** ******@TK2MSFTN GP11.phx.gbl... "Kikoz" <ki***@hotmail. com> wrote in message news:e4******** ******@TK2MSFTN GP14.phx.gbl... Hi all.
It's a general question, just for the sake of curiosity:
.NET introduced ViewState as a way to keep the state across postbacks. I love it, use it all the time, blah blah... But Java has been around for much longer than .NET. I don't have experience with it. Does Java have anything like ViewState? How do those guys keep the state? I mean, of course you can create your own session
and store it in db or use cookies, but is there any "stand alone" object / mechanism in Java?
I believe that JavaServer Faces technology is a fairly close equivalent to ASP.NET, and if I remember correctly (I had been working on the J2EE Tutorial up to a month ago), there _is_ an equivalent to ViewState.
John Saunders
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: viktor9990 |
last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the
source Lookupage.aspx). The iframe page will look continuously in the
database to see if a value has changed: if it is true it will run a java
script dynamically to update the parent page CustomerSlides.aspx.cs.
The value in the Database is changed from another aspx page så all the
changes made in this page will be updated in CustomerSlides.aspx.
I used the code...
|
by: viktor9990 |
last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the
source Lookupage.aspx). The iframe page will look continuously in the
database to see if a value has changed: if it is true it will run a java
script dynamically to update the parent page CustomerSlides.aspx.cs.
The value in the Database is changed from another aspx page så all the
changes made in this page will be updated in CustomerSlides.aspx.
I used the code...
|
by: John Kirksey |
last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter the results in the grid.
Say you filter the grid for records that have a certain condition set to "NO" (in this case a checkbox). In this scenario the search returns one result. If I then check the checkbox ("YES") and save it, I now get my message...
|
by: Steve Drake |
last post by:
All,
I have a CONTROL that contains 1 control (Control ONE), the 1 control that
it can contain 1 or 2 control (Control A and B).
Control A, raises and event and Control ONE receives this event and this
causes control B to be created, when this is done the VIEWSTATE is lost for
CONTROL B.
In the EVENT that causes CONTROL B to be created I have to set
|
by: neo |
last post by:
hi,
I am studying ASP.NET and have few questions -
1) The session ID and values of controls is stored in VIEWSTATE
variable. So now when we put EnableViewState="false" in Page directive and
disable the session state in Web.Config the VIEWSTATE variable is still
maintained and stores some values. Can anyone tell what those values are
for, i.e what other info is stored in VIEWSTATE other than the session ID
and the control values ?
| |
by: hitendra15 |
last post by:
Hi
I have created web user control which has Repeater control and
Linkbutton in ItemTemplate of repeater control, following is the code
for this control
On first load it runs fine but when page gets post back it gives
following error
Failed to load viewstate. The control tree into which viewstate is
|
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of
attending interviews. If you own a company best way to judge if the
candidate is worth of it.
http://www.questpond.com/InterviewRatingSheet.zip
|
by: Nick C |
last post by:
Hi
How can i reduce the viewstate for my asp.net application. It is getting
very large now. What is a good solution?
thanks
N
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |