It won't be possible to detect that the given request reached your
application because a user hit the Back button. There is no indication
in HTTP protocol that could tell you so.
Regards
Łukasz
wt., 25 sty 2022 o 22:58 albert kao napisał(a):
>
> If the user presses the Back button of a browser,
If the user presses the Back button of a browser, my application likes to
intercept that and display a text message at the current web page.
How to do that without using javascript?
The following codes show an approach with AbstractInterceptor.
Please review whether it will work.
If yes, how to ge
Hi Chris:
> What browser are you using? Is your setup action being executed again,
> or is the browser serving the page from the cache? If the browser is not
> contacting the server, there's nothing you can do.
I am using IE 7.0.
Regarding contacting the server, something very weird is happening
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chetan,
Chetan Pandey wrote:
> To avoid this problem I introduced the following
> request.getSession().setAttribute("eventForm", new EventForm()).
If you are using Struts form beans, it might be better to blank the
existing bean instead of creating a
Hi All:
I have a Web App in which I can add/edit/delete and list events using an
eventForm Object which is stored in session in the struts-config action
declaration.
Addition/Deletion/Editing works perfectly but if I click on an Event for
Editing and later try to add an Event, the previous
Can I use struts token mechanisim without a formbean ?
Thanks & Regards
Manfred Wolff <[EMAIL PROTECTED]> wrote:
Found at http://husted.com/struts/catalog.html
Use the Action Token methods to prevent duplicate submits
There are methods built into the Struts action to generate one-u
Found at http://husted.com/struts/catalog.html
Use the Action Token methods to prevent duplicate submits
There are methods built into the Struts action to generate one-use
tokens. A token is placed in the session when a form is populated and
also into the HTML form as a hidden property.
Can U suggets me an article which clearly explains using struts tokens
mechanisim?
Manfred Wolff <[EMAIL PROTECTED]> wrote:
Lixin.
I think mostly it is no problem to go back in a struts implemented
application. If it ist a problem (e.g. after a logout or if you saved
data) you can take the s
Lixin.
I think mostly it is no problem to go back in a struts implemented
application. If it ist a problem (e.g. after a logout or if you saved
data) you can take the struts token mechanism to prevend such backs.
Manfred
Lixin Chu wrote:
> A cleaner back button solution is almost a must-have fo
A cleaner back button solution is almost a must-have for logout:
after logout, the back button should not bring back the previous page.
looking at that Gmail does. any idea how it is implemented ?
f Khan [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 12, 2006 9:31 AM
> To: Struts Users Mailing List
> Subject: Re: Browser Back Button
>
>
> Hi,
>
>For browser back button solution through javascript,
> please see this link.
>
> http://www.webdev
Hi,
For browser back button solution through javascript, please see this
link.
http://www.webdeveloper.com/forum/showthread.php?t=93935
Regards
Rauf Khan
On 5/12/06, temp temp <[EMAIL PROTECTED]> wrote:
I am not clear using tokens How to use tokens to determine that user
clic
I am not clear using tokens How to use tokens to determine that user clicked on
browser back button ?
Thanks & Regards
Rob Manthey <[EMAIL PROTECTED]> wrote: And I'll be contrary and toss in a
"Yes, but ..." (apol: Eric Berne)
(as usual, corrections to my notes
And I'll be contrary and toss in a "Yes, but ..." (apol: Eric Berne)
(as usual, corrections to my notes are welcome)
Yes, but you have to do it programmatically. I don't think there's
anything in j2ee (or any other web app) interfaces or implementations
that handles this, as Phil said, so you hav
No.
When people have a problem with back buttons, 95% of the time they are
either doing one of the following:
- Confusing the GET and POST methods and their intended purpose with forms.
- Abusing client-side browser scripting for forwarding users.
On 5/11/06, temp temp <[EMAIL PROTECTED]> wrote:
Is there any way I can realize using java that the user clicked on
browsers back button ?
Thanks & Regards
-
Yahoo! Mail goes everywhere you do. Get it on your phone.
I posted the question earlier and thanks for many
respondents took time to answer my question.
While double submission is one of my problems, my
focus has been on this particular one if users click
on the browser "Back" button:
WebPage A1 --> WebPage A2 --> WebPage C
WebPage B
lem to close the current page and
display the previous page if users click on the
"Close" button provided.
Because the WebPage C can be reached by different
routes, we have System Error/Exceptions thrown if
users opt to use the browser "Back" button.
I believe that this is
properly.
But, we are getting in trouble if users use the
browser "Back" button. After several clicks on the
browser "Back" button, we get "system errors".
What to do to handle the situation?
1. save every single previous page uri in a (probably
XML) file?
2. save
Frank W. Zammetti wrote:
> Rob, might I suggest the Wiki? That's kind of the point of its
> existence :)
good call. i'm off for the weekend now, so no more "fun" for me today
;) back for more on monday.
cheers
Rob
-
To unsub
Rob, might I suggest the Wiki? That's kind of the point of its existence :)
Frank
Rob Manthey wrote:
Caroline Jen wrote:
...etc... But, we are getting in trouble if users use the
browser "Back" button. After several clicks on the
browser "Back" button, we get &qu
On 5/4/06, Rob Manthey <[EMAIL PROTECTED]> wrote:
Caroline Jen wrote:
>...etc... But, we are getting in trouble if users use the
>browser "Back" button. After several clicks on the
>browser "Back" button, we get "system errors".
>
>What to do
Caroline Jen wrote:
>... in trouble if users use the
>browser "Back" button. After several clicks on the
>browser "Back" button, we get "system errors".
>
>What to do to handle the situation?
>
>
have a look through some of these ...
http://
Caroline Jen wrote:
>...etc... But, we are getting in trouble if users use the
>browser "Back" button. After several clicks on the
>browser "Back" button, we get "system errors".
>
>What to do to handle the situation?
>...etc...
>
This mu
getting in trouble if users use the
browser "Back" button. After several clicks on the
browser "Back" button, we get "system errors".
What to do to handle the situation?
1. save every single previous page uri in a (probably
XML) file?
2. save the trail of previo
location.href will give you the same page... what you want is whatever
the *real* initial page of your app is. For instance, if right now you
would go to index.jsp as the first page, then rename that to index1.jsp
and use that as the argument. The page I gave you would then become
index.jsp.
>> That's all there is to it... this, plus the Javascript from yesterday,
>> gets you about as close to full control as you can probably reasonably
>> hope to get. As long as your OK in an IE-only world, it's pretty nice.
>> I'm sure it's not fullproof, but it
r
>> want
>> to further limit it to 6.0+ for instance.
>>
>> That's all there is to it... this, plus the Javascript from yesterday,
>> gets you about as close to full control as you can probably reasonably
>> hope to get. As long as your OK in an IE-only wo
e chromeless window probably isn't a big deal, but my gut
> tells me blocking the back functionality wouldn't be as easy, if possible
> at all).
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
>
As long as your OK in an IE-only world, it's pretty nice.
> I'm sure it's not fullproof, but it's more than adequate for typical
> users. Throw in a right-click blocking function and it's pretty good.
>
> (If anyone can duplicate both these things with FF,
but my gut
tells me blocking the back functionality wouldn't be as easy, if possible
at all).
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourcefo
Hi Frank,
Thanks for your reply. That solves my problem of back button or other key on
the keyboard. But I still have the problem with the browser back button. I am
using Tiles.
It would be nice if you can provide any pointers.
Thanks.
"Frank W. Zammetti" <[EM
Marked OT... this isn't Struts-related...
There isn't any way to do it cross-browser that I am aware of, and there
isn't any way to do it definitively. However, because you say you are
working on an Intranet application, you may have some options that you
otherwise might not...
First thing,
Hi,
I am using Struts and Tiles for an intranet application. I want to disable the
back button.
How can I achieve this?
Any help would be appreciated.
Thanks
-
Yahoo! Mail
Use Photomail to share photos without annoying attach
ce for your reply!
>
> Problem Summary:
> ---
> Unable to eliminate "Page Expired" error when a user hits on the Browser
> "Back" button in Internet Explorer 6.x. Hence, Seeking input from the
> Struts community!
>
> App Overview:
> -
>
Hello and thank you in advance for your reply!
Problem Summary:
---
Unable to eliminate "Page Expired" error when a user hits on the Browser
"Back" button in Internet Explorer 6.x. Hence, Seeking input from the
Struts community!
App Overview:
-
A S
36 matches
Mail list logo