You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Su...@epamail.epa.gov on 2001/05/15 13:54:25 UTC

Session Question

I am currently writing a pretty complex data entry HTML page for an
application.  The HTML has 7 different frames where data is input, one
represents the master table and the others detail tables.  I am trying to
come up with a way to keep all of the data entered into each frame for
updating the database (I want to update all the records in one
transaction).  There some obvious ways of doing this as with invisible
fields on the master frame, and URL rewriting (cookies are out in this
case) but I have also been looking into using the Session object.  I know
the object is used for shopping carts on commercial web sites but would it
be a good to use it to keep all the input values for various input forms?
There will be from 40 - 50 items of data stored in the session object and a
user will only be able to one form at a time?

Thanks in advance

Jeff Sulman


Re: Session Question

Posted by John Holman <j....@qmw.ac.uk>.
----- Original Message -----
From: <Su...@epamail.epa.gov>
To: <to...@jakarta.apache.org>
Sent: Tuesday, May 15, 2001 12:54 PM
Subject: Session Question


> I am currently writing a pretty complex data entry HTML page for an
> application.  The HTML has 7 different frames where data is input, one
> represents the master table and the others detail tables.  I am trying to
> come up with a way to keep all of the data entered into each frame for
> updating the database (I want to update all the records in one
> transaction).  There some obvious ways of doing this as with invisible
> fields on the master frame, and URL rewriting (cookies are out in this
> case) but I have also been looking into using the Session object.  I know
> the object is used for shopping carts on commercial web sites but would it
> be a good to use it to keep all the input values for various input forms?
> There will be from 40 - 50 items of data stored in the session object and
a
> user will only be able to one form at a time?

Yes, sessions are provided for this kind of thing. Note that Tomcat uses
cookies to maintain the session if it can. It will use URL rewriting if
cookies are disabled but you may have to amend your pages to support that.

It may be worth looking at a web application framework such as Jakarta
Struts that can run within Tomcat and help with some of this.

John.






web-based version of mailing list?

Posted by Hassan Siddiqui <hs...@astro.estec.esa.nl>.
Hi

This is probably a silly question, but ever since I subscribed to tomcat-user
I've been bombarded with emails (200 a day). Is there a web-based searchable
version of this forum available? How is everyone else coping? 
The best I can do is filter tomcat-user posts to a special mail folder.

Cheers

Unsubscribe me please - I send you four message to unsubscribe me

Posted by Dana Marcusanu <dm...@yahoo.com>.
--- derhong <de...@sinomovie.com> wrote:
> My server config is as follow:
> IIS	port 80
> Tomcat	8080
> ajp12	8007
> and the request is sent from IIS to Tomcat via isapi_redirect.dll.
> 
> The problem is that when I have Chinese characters in my query string
> the params got lost if I make the request to port 80. It works fine if I
> make the request to port 8080 directly.
> 
> I would guess that's something wrong with ajp12 or isapi_redirect.dll.
> Is it a configuration issue? or is is the implementation? What's the
> solution?
> 
> Thanks.
> 
> - derhong
> �(�������*.���{&���(��]��,j�m������ɨh��&


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

W2K + isapi_redirect.dll + Tomcat, 2-byte chars

Posted by derhong <de...@sinomovie.com>.
My server config is as follow:
IIS	port 80
Tomcat	8080
ajp12	8007
and the request is sent from IIS to Tomcat via isapi_redirect.dll.

The problem is that when I have Chinese characters in my query string the params got lost if I make the request to port 80. It works fine if I make the request to port 8080 directly.

I would guess that's something wrong with ajp12 or isapi_redirect.dll. Is it a configuration issue? or is is the implementation? What's the solution?

Thanks.

- derhong
�(�������*.���{&���(��]��,j�m������ɨh��&

Re: Session Question

Posted by Wyn Easton <wy...@yahoo.com>.
The session is usually used to persist objects between
tranactions with the client (browser).
If you are gathering several input fields to write to
the database towards the end of the "session" then
using the session is the way to go.

Or, you could use Java Script to gather all of the
input fields from the frames you mentioned into hidden
fields of the form being submitted and write to the
database when the form is submitted.

--- Sulman.Jeff@epamail.epa.gov wrote:
> I am currently writing a pretty complex data entry
> HTML page for an
> application.  The HTML has 7 different frames where
> data is input, one
> represents the master table and the others detail
> tables.  I am trying to
> come up with a way to keep all of the data entered
> into each frame for
> updating the database (I want to update all the
> records in one
> transaction).  There some obvious ways of doing this
> as with invisible
> fields on the master frame, and URL rewriting
> (cookies are out in this
> case) but I have also been looking into using the
> Session object.  I know
> the object is used for shopping carts on commercial
> web sites but would it
> be a good to use it to keep all the input values for
> various input forms?
> There will be from 40 - 50 items of data stored in
> the session object and a
> user will only be able to one form at a time?
> 
> Thanks in advance
> 
> Jeff Sulman
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/