Re: model 2 servlet mapping question

2000-05-09 Thread Mohan Radhakrishnan
Hi, sendRedirect() ends up in the same frame and sometimes this is a problem. bye, Mohan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-09 Thread Daniel Lopez
Hi, I'll add my 2ec regarding the topic: I agree what it has been said here about each page being modeless and that you have to be careful in case some users get out of the "normal application path" through the back button, shift click... My approach in such systems has been not to trust the user

Re: model 2 servlet mapping question

2000-05-08 Thread Chris Wilson
per > andrews university > www.andrews.edu > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey > Sent: Monday, May 08, 2000 2:52 PM > To: [EMAIL PROTECTED] > Subject: Re: model

Re: model 2 servlet mapping question

2000-05-08 Thread Kevin Duffey
What I mean is, if I type in http://xxx.xxx.xxx.xxx (or www.domain.com) when they get to my site, the web browser URL box shows http://xxx.xxx.xxx.xxx/index.html Even if you don't specify index.html when you enter the address. So, my question is, like so many sites I see..how do you get it so th

Re: model 2 servlet mapping question

2000-05-08 Thread Chris Wilson
Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey > Sent: Friday, May 05, 2000 1:54 PM > To: [EMAIL PROTECTED] > Subject: Re: model 2 servlet mapping question > > > Hi Chris, > >

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-08 Thread Daniel Lopez
Hi, Regarding applet caching... A solution has been "there" since a long time ago(at least 3-4 years). It is called Channels and it was developed by some members of the original team that created Java. They lef Sun and created a company called Marimba and developed something like applets which ar

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread Kevin Duffey
] > Subject: Re: Web Apps and state machines (was: model 2 servlet mapping > question) > > > > On a totally non-Java note, this company has a business built around > > this exact point. (Their tools are for Delphi and C++Builder) > > > > www.astatech.com > > An

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread David Wall
> On a totally non-Java note, this company has a business built around > this exact point. (Their tools are for Delphi and C++Builder) > > www.astatech.com An interesting tool, but perhaps it requires a bit too much work on the part of the user -- or I just didn't get it (which is normally the c

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread Kyle Cordes
> The real key is that the browser is simply not the best platform for > delivering interactive applications over the Internet. Many companies > realize this, but many more think that a browser is a good tool for doing > applications. They are generally wrong. The best Internet applications > t

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread Andrew S Tomlinson
Well broadly yes. Just make sure we do not confuse workflow with transaction. A *multi-page form* is in my context a workflow; each page in the flow submits to an action that performs a discrete transaction. As David points out each page needs to be self-contained. We have both concluded the criti

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread David Wall
You are right on all counts. The approaches to concurrency that you mentioned are often missed by the current crop of "newbie" server developers. These issues date back at least 20 years (as far I as personally know!) since the early mainframes still had multiple users at the same time. A whole

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread Kevin Duffey
t: Re: Web Apps and state machines (was: model 2 servlet mapping >question) > > >RE: Concurrency >I agree that each "page action" is by necessity a discrete transaction. > >The issue is a standard multi-user problem - in the absence of a >stateful locking scheme i

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread Andrew S Tomlinson
RE: Concurrency I agree that each "page action" is by necessity a discrete transaction. The issue is a standard multi-user problem - in the absence of a stateful locking scheme is the data I am writing consistent with what I read ? There are many approaches: - re-read the record and compare each

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread David Wall
> 3. in general this can be handled OK if the site has an entry point > that performs authentication and then records the successful login in > the session. Any leap into the site behind this URL via a bookmark > will fail because the session will not exist or will not contain the > "successful lo

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread Andrew S Tomlinson
Thanks for the input David - all excellent caveats to keep in mind. Now let's see if the group can resolve some of the issues (jump in one and all). Taking items 1-4 to start with (not necessarily in that order though): 3. in general this can be handled OK if the site has an entry point that pe

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread Kevin Duffey
Interesting that you mention about the BACK button. We have a problem on our site with the back/forward button. When I set the header of every page to not cache so that it always goes to the server, if the back button is used, the page has expired! If I allow caching, then they sometimes get a bro

Re: model 2 servlet mapping question

2000-05-05 Thread Kevin Duffey
Model 3? Can you elaborate on this one? > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez > Sent: Friday, May 05, 2000 1:19 AM > To: [EMAIL PROTECTED] > Subject: R

Re: model 2 servlet mapping question

2000-05-05 Thread Kevin Duffey
Hi Chris, Thanks for the site..I didn't know you could use one frame in a frame set. I had two..with one going to a blank page and being 0 in height. Seems to work. We don't want bookmarking on our site anyways, so it doesn't bother us that they can't bookmark. The only thing I notice is that in

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread David Wall
> For a start, sure HTTP is a stateless protocol but almost all web > *applications* involve the maintenance of some form of > state. Isn't that what the session object is all about? > Moreover, there is invariably a persistence layer e.g. RDBMS behind all > this. This is absolutely true, and is

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread Andrew S Tomlinson
Not really, or at least not in the context it was being used. For a start, sure HTTP is a stateless protocol but almost all web *applications* involve the maintenance of some form of state. Isn't that what the session object is all about? Moreover, there is invariably a persistence layer e.g. RDB

Re: Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread David Wall
You could be in a lot of trouble because the web really works best in a stateless environment, and a state machine is the exact opposite solution. David === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-IN

Web Apps and state machines (was: model 2 servlet mapping question)

2000-05-05 Thread Andrea Vicentini
Hi! Talking about web apps and state-machine I have some questions: * What are we actually talking about? In my understanding, we're talking about web applications that have a model stored in the session which "is" a finite state machine, and Always in my understanding, and this is how the thin

Re: model 2 servlet mapping question

2000-05-05 Thread Daniel Lopez
Hi, I'm not sure whether I was the one or not(who cares? ;)) But you are right in the sense that I already talked about that. In our framework (WebLeaf) the configuration of an Operation might look like that: If everything goes fine, control is forwarded to UI_PATH; if something went

Re: model 2 servlet mapping question

2000-05-04 Thread Andrew S Tomlinson
The first concrete example of mapping action "status/result" to destination was given by Daniel to my recollection. It was part of his webleaf project. There was mention also of a "state-machine" approach. I prefer the "state-machine" approach for my specific application. I deal with leasing syste

Re: model 2 servlet mapping question

2000-05-04 Thread Chris Wilson
> > You are correct. Thats a good point as well. I only wish I could > "hide" the > URL line. I don't mind that it isn't up to date as far as the > page..but the > actual Login.do that keeps showing up isn't so prety either. I am thinking > of setting up a frame layout so that it always shows the

Re: model 2 servlet mapping question

2000-05-04 Thread Kevin Duffey
ahan > Sent: Thursday, May 04, 2000 9:39 PM > To: [EMAIL PROTECTED] > Subject: Re: model 2 servlet mapping question > > > Chris Wilson wrote: > > > > > > > > > So the question then is, is it really worth it to use the > forward() call > > > over s

Re: model 2 servlet mapping question

2000-05-04 Thread Craig R. McClanahan
Chris Wilson wrote: > > > > > So the question then is, is it really worth it to use the forward() call > > over sendRedirect() if at most we will have 1000 to 3000 people a DAY (not > > hour, not minute) use our site? How much faster is it to use > > forward() over > > sendRedirect() as far as e

Re: model 2 servlet mapping question

2000-05-04 Thread Kevin Duffey
s shows the home site url. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Wilson > Sent: Thursday, May 04, 2000 8:07 PM > To: [EMAIL PROTECTED] > Subject: Re: model 2 ser

Re: URI tracking (was model 2 servlet mapping question)

2000-05-04 Thread Kevin Duffey
Hi, Thanks..I do something similar. However, because I want to have the ability to redirect to more than one possible page from each action, what I am doing now is having each action return a "result" string. My xml config file will look like: Login package.Login Successful /insi

Re: URI tracking (was model 2 servlet mapping question)

2000-05-04 Thread Andrew S Tomlinson
Kevin, I seem to recall you stating once that you kept the rd.forward out of the action classes and in the controller. I do the same and in this case adding page tracking is trivial since you can just add the tracking to the controller and not all the action classes. I use a simple session attribu

Re: model 2 servlet mapping question

2000-05-04 Thread Chris Wilson
> > So the question then is, is it really worth it to use the forward() call > over sendRedirect() if at most we will have 1000 to 3000 people a DAY (not > hour, not minute) use our site? How much faster is it to use > forward() over > sendRedirect() as far as each client on our site sees it? >

Re: model 2 servlet mapping question

2000-05-04 Thread Kevin Duffey
ay, May 04, 2000 12:02 PM > To: [EMAIL PROTECTED] > Subject: Re: model 2 servlet mapping question > > > > The "referer" header is set by the browser, based on what URI it > thinks the > form > was on. But, if you're using a Model 2 approach (with a > Requ

Re: model 2 servlet mapping question

2000-05-04 Thread Shun, Vadim
The "referer" header is set by the browser, based on what URI it thinks the form was on. But, if you're using a Model 2 approach (with a RequestDispatcher.forward() from the controller servlet to the JSP page) then the browser does not know this happens -- therefore it will not set the referer t

Re: model 2 servlet mapping question

2000-05-03 Thread Craig R. McClanahan
Kevin Duffey wrote: > I can confirm this. I spoke with Magnus yesterday and he said they are > looking in to it. He is under the assumption thus far that you do need a > file for the mapping to work. I did explain that Craig showed the order of > mapping, there are 4 of them. The last one, if the

Re: model 2 servlet mapping question

2000-05-03 Thread Kevin Duffey
I can confirm this. I spoke with Magnus yesterday and he said they are looking in to it. He is under the assumption thus far that you do need a file for the mapping to work. I did explain that Craig showed the order of mapping, there are 4 of them. The last one, if the first 3 are not met, would l

Re: model 2 servlet mapping question

2000-05-03 Thread Chris Wilson
IL PROTECTED]]On Behalf Of Daniel Lopez > Sent: Wednesday, May 03, 2000 2:31 AM > To: [EMAIL PROTECTED] > Subject: Re: model 2 servlet mapping question > > > Hi Chris, > > I think that's an Orion problem. I've successfully used this technique > with JRun an

Re: model 2 servlet mapping question

2000-05-02 Thread Daniel Lopez
Hi Chris, I think that's an Orion problem. I've successfully used this technique with JRun and Resin and you DON'T need to have a file with that name, as Craig explained in a message some time ago. Somebody told me they were having similar problems with Orion and that somebody from the Orion team

model 2 servlet mapping question

2000-05-02 Thread Chris Wilson
hello all, i've really been enjoying the model 2 discussions. craig and daniel, thanks for all your informative insights. the ideas discussed have transformed how i think about developing web applications--now i just have to get my colleagues on board! :) anyhow, here's my question. i'm attem