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 o
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
tors.html
regards,
Christoph
Von:semog12
An: user@struts.apache.org,
Datum: 09.12.2013 13:04
Betreff:Re: Token Session Interceptor and back button
Hi,
Thank for the replies but when I was trying your solution I encounter
another situation.
I am using tiles to crea
this:
page_head.jsp:
Thanks,
André Gomes
--
View this message in context:
http://struts.1045723.n5.nabble.com/Token-Session-Interceptor-and-back-button-tp5714861p5714880.html
Sent from the Struts - User mailing list archive at Nabble.com
at. Were you thinking
> of something else?
>
>
> Miguel
>
> On Thu, 2013-12-05 at 14:59 -0600, Paul Benedict wrote:
>
> > Make sure your back-button action refreshes the page. You can't reuse a
> > token from the browser's cache. It needs to regenerate
0600, Paul Benedict wrote:
> Make sure your back-button action refreshes the page. You can't reuse a
> token from the browser's cache. It needs to regenerated.
>
>
> On Thu, Dec 5, 2013 at 12:39 PM, semog12 wrote:
>
> > Hi,
> >
> > I am using the token sess
Make sure your back-button action refreshes the page. You can't reuse a
token from the browser's cache. It needs to regenerated.
On Thu, Dec 5, 2013 at 12:39 PM, semog12 wrote:
> Hi,
>
> I am using the token session interceptor for a form and I have this
> situation:
>
Hi,
I am using the token session interceptor for a form and I have this
situation:
1) I am in the form page;
2) I leave the form page;
3) Go back to the form page by the "back" button;
4) Submit the form;
And of course the form is not submitted and the token returns
"invalid.to
lem here:
> http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html
> maybe they will help You.
>
> Best greetings,
> Paweł Wielgus.
>
>
> 2010/11/9 Maurizio Cucchiara :
> > Probably I'm wrong, but don't you achieve this by disabling bro
Hi all,
You can read some old tests about this problem here:
http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html
maybe they will help You.
Best greetings,
Paweł Wielgus.
2010/11/9 Maurizio Cucchiara :
> Probably I'm wrong, but don't you achieve this
Probably I'm wrong, but don't you achieve this by disabling browser
caching via http headers?
2010/11/9 Ken McWilliams :
> I know it depends on the browser but this is a best effort thing and am
> looking for input on my current plan.
>
> When user signs on send the current date/time of the client
I know it depends on the browser but this is a best effort thing and am
looking for input on my current plan.
When user signs on send the current date/time of the client along with
credentials and record the offset in the session (if any).
All subsequent pages will have a hidden date/time field.
Hello,
I want to user struts workflow extension in my application.
When I tried to access demo application on this site I found that I am not
able to retain the value on back.
For e.g.
Step 1)On first page I entered 1 as my first operand
Step 2)I said Next .I entered 2 on second screen.
Ste
la quale si
> proviene e usare quella invece di codice Javascript.
>
> Ciao
> Antonio
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.
2009/2/23 PEGASUS84 :
>
> Antonio se sei italiano potresti dirmi in italiano
Translation (please do not answer here)
Traduzione (non rispondere qui).
Non lo fare, perché usare Javascript per tornare "indietro" ti porterà
ad inconsistenze nella navigazione. Cosa succede se entri in quella
pagina d
Antonio se sei italiano potresti dirmi in italiano
--
View this message in context:
http://www.nabble.com/back-button-tp22159144p22159702.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe
2009/2/23 PEGASUS84 :
>
> today my question is:"How to create a back button wirh struts 2?"
> i used this code action="javascript:history.back();"/>
Don't do it, since using Javascript code to get "back" will lead to
inconsistencies during the na
thanks,
i'm successful using onclick="javascript:history.back();" instead using
action="javascript:history.back();"
Nils-Helge Garli wrote:
>
> I'm still not convinced... But did you try google?
>
> http://www.google.no/search?q=javascript+back+bu
I'm still not convinced... But did you try google?
http://www.google.no/search?q=javascript+back+button
Nils-H
On Mon, Feb 23, 2009 at 11:59 AM, PEGASUS84 wrote:
>
> certainly;
> but i must create a back button in a jsp page
> but the tag submit with action=javascript:histor
certainly;
but i must create a back button in a jsp page
but the tag submit with action=javascript:history.back(); doesn't work
Nils-Helge Garli wrote:
>
> Maybe you can explain what your requirement is. Your browser already
> has a back button ;)
>
> Nils-H
>
> On
Maybe you can explain what your requirement is. Your browser already
has a back button ;)
Nils-H
On Mon, Feb 23, 2009 at 11:44 AM, PEGASUS84 wrote:
>
> good moorning.
> today my question is:"How to create a back button wirh struts 2?"
> i used this code action=&q
good moorning.
today my question is:"How to create a back button wirh struts 2?"
i used this code
but this metod don't operate.
Does someone help me?
--
View this message in context:
http://www.nabble.com/back-button-tp22159144p22159144.html
Sent from the Struts - User mailing
om: taj uddin
> Subject: How to work with back button using javascript?
> To: "struts2"
> Date: Monday, February 2, 2009, 3:28 AM
> Hi,
>
> In my application i tried using the back button with
> javascript but its not working and instead it was calling
> the
Hi,
In my application i tried using the back button with javascript but its not
working and instead it was calling the action specified in the form tag.
IN Detail:
when i click the back button, it was not rendering the previous page..instead
it was calling the xyz action. So, pls help
In case you missed the reply the first time you asked:
http://www.nabble.com/how-to-disable-the-back-button-in-Struts-1.2.3---to18982816.html#a18989078
Nils-H
On Mon, Aug 18, 2008 at 9:51 AM, Fernandes Celinio SGCF
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> I want to forbid the
Hi,
I want to forbid the user to go back.
This Javascript trick does not work in actions:
window.history.forward(1);
Is there a way to disable the back button in Struts ?
Thanks
=
Ce message et toutes les pieces jointes (ci
Fernandes Celinio SGCF wrote:
Hi,
I want to forbid the user to go back.
Javascript does not work in actions:
Well, obviously; Javascript runs on the client, actions run on the server.
window.history.forward(1);
Is there a way to disable the back button in Struts ?
Thanks
That code
Hi,
I want to forbid the user to go back.
Javascript does not work in actions:
window.history.forward(1);
Is there a way to disable the back button in Struts ?
Thanks
=
Ce message et toutes les pieces jointes (ci-apres le
l,
>
> I am attempting to resolve the ajax back button problem and have gotten
> into a situation. I am using struts v 2.0.11 and I know it comes with its
> own dojotoolkit. However I cannot find any support for the back button.
> I looked throughout and found dojotoolkit v1.1 and down
Hello again everyone,
I guess I would like to give an update on my struts 2 and ajax integration.
I appreciate everyone's responses as they have helped a lot to resolve my
problem with ajax and the back button. My seemingly last problem I have has
to do with IE (no surprise).
I
Hi,
I use dojo 1.1 and struts-dojo-tags at the same time and it works.
her you find the documentation.
http://dojotoolkit.org/book/book-dojo/part-3-javascript-programming-dojo-and-dijit/multiple-versions-dojo-page
cree schrieb:
Hello All,
I am attempting to resolve the ajax back button
Owen Berry wrote:
>
> Dojo 0.4 back button support:
>
> http://dojotoolkit.org/book/dojo-book-0-4/part-7-utilities/back-button-and-bookmarking
>
> What version of Dojo is included with Struts 2.0.11? Is it 0.4?
>
>
>From my readings it supported 0.4.x, da
Dojo 0.4 back button support:
http://dojotoolkit.org/book/dojo-book-0-4/part-7-utilities/back-button-and-bookmarking
What version of Dojo is included with Struts 2.0.11? Is it 0.4?
On Mon, Jun 30, 2008 at 2:15 PM, cree <[EMAIL PROTECTED]> wrote:
>
> Thank you all for your replies.
Thank you all for your replies.
I guess at this point I would ask if there is any back button fix at all
under struts 2? Or should I go with:
Musachy Barroso wrote:
>
> Just to confirm what Dave said, do not mix Dojo versions. If you need
> Dojo 1.x, you are better off not using th
Just to confirm what Dave said, do not mix Dojo versions. If you need
Dojo 1.x, you are better off not using the s2 ajax tags at all.
musachy
On Mon, Jun 30, 2008 at 1:23 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- On Mon, 6/30/08, cree <[EMAIL PROTECTED]> wrote:
>> I guess in short I am loo
--- On Mon, 6/30/08, cree <[EMAIL PROTECTED]> wrote:
> I guess in short I am looking to see if there is any way
> that I can utilize the back.js in the other jsp or throughout
> the two jsp's or if there is support in struts 2.0.11's dojo toolkit.
S2 currently uses Dojo 0.4.3 (give or take). I'd
Hello All,
I am attempting to resolve the ajax back button problem and have gotten into
a situation. I am using struts v 2.0.11 and I know it comes with its own
dojotoolkit. However I cannot find any support for the back button. I
looked throughout and found dojotoolkit v1.1 and downloaded it
ot; <[EMAIL PROTECTED]> wrote:
Hi all,
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've discovered html:cancel
which works nicely for ...c
2008/3/19, Dimitris Mouchritsas <[EMAIL PROTECTED]>:
>
> Antonio Petrelli wrote:
> > 2008/3/19, Dimitris Mouchritsas <[EMAIL PROTECTED]>:
> >
> >> we're using struts 1.2.4 in our project and I'm trying to implement a
> >> back butt
Antonio Petrelli wrote:
2008/3/19, Dimitris Mouchritsas <[EMAIL PROTECTED]>:
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've di
2008/3/19, Dimitris Mouchritsas <[EMAIL PROTECTED]>:
>
> we're using struts 1.2.4 in our project and I'm trying to implement a
> back button for a 3 step registration procedure. The problem is I'd
> like to do it without using javascript. I've discovere
Hi all,
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've discovered html:cancel
which works nicely for ...canceling. But I couldn't f
sathish kumar wrote:
and another doubt is...
how can i override the theme
i mean, by default use ajax theme
what should i do if i need to change it...
You can't use a different theme, since that tag is only implemented /
supported in the Ajax theme. However, you can customize that the
hi...
i found the answer for prob
actually,,i got confused while loading data from database to
tag
i.e,
i had a table in my database which has 'id' and 'value'...
in select tag the option should be my value and while submitting it should
send the 'id' to my server.
in this case, i used a Hash
--- sathish kumar <[EMAIL PROTECTED]> wrote:
> can u clear my doubt regarding double select.
> i need to load data from database
> (select options should be loaded from database...)
> can you help me?
What, exactly, are you asking?
Dave
--
>
>> > I'm using Struts 2.0.6
>> > I noticed the following behaviour of the doubleselect UI tag, present
>> also
>> > in the Struts showcase.
>> > A non default item is choosen in the first select and something else is
>> > choosen
castronomy wrote:
> >
> > I'm using Struts 2.0.6
> > I noticed the following behaviour of the doubleselect UI tag, present
> also
> > in the Struts showcase.
> > A non default item is choosen in the first select and something else is
> > choosen in the
gt; in the Struts showcase.
> A non default item is choosen in the first select and something else is
> choosen in the linked select.
> After submit if one returns to the form page using the 'back' button in
> the browser the content of the double select is inconsistent.
> Wha
I'm using Struts 2.0.6
I noticed the following behaviour of the doubleselect UI tag, present also
in the Struts showcase.
A non default item is choosen in the first select and something else is
choosen in the linked select.
After submit if one returns to the form page using the 'back&
I just found out this wonderful attribute "redirect" in the forward element
!
Thank you all.
debussy007 wrote:
>
> Hello all,
>
> I am quite beginner and need some help with the flow of my application.
>
> When a user click on the Back Button from a specific
Hello all,
I am quite beginner and need some help with the flow of my application.
When a user click on the Back Button from a specific page, the last request
is called again,
How can I avoid this behaviour ?
See below for the concrete situation where this is a problem for me :
I have a first
ow to disable refresh button and back button
hi all
can any one explain me how to disable both back
button
and refresh button
thanks
jalaludeen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
: Tuesday, May 08, 2007 5:34 PM
To: Struts Users Mailing List
Subject: Re: disable back button
2007/5/8, Laurie Harper <[EMAIL PROTECTED]>:
>
> jalal udeen wrote:
> > how to disable back button
>
> Unplug the mouse... ;-)
Or paint an X on the back button on your monitor :
: Re: how to disable refresh button and back button
I don't believe you can.
jalal udeen wrote:
> hi all
>can any one explain me how to disable both back
> button and refresh button thanks jalaludeen
>
---
2007/5/8, Laurie Harper <[EMAIL PROTECTED]>:
jalal udeen wrote:
> how to disable back button
Unplug the mouse... ;-)
Or paint an X on the back button on your monitor :-P
Anyway, if you google "disable back button" in google, you can find what you
need (or wh
jalal udeen wrote:
how to disable back button
Unplug the mouse... ;-)
L.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 5/7/07, jalal udeen <[EMAIL PROTECTED]> wrote:
hi all
can any one explain me how to disable both back button
and refresh button
This is browser-dependent and does not relate to Struts.
-
To unsub
I don't believe you can.
jalal udeen wrote:
hi all
can any one explain me how to disable both back button
and refresh button
thanks
jalaludeen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
hi all
can any one explain me how to disable both back button
and refresh button
thanks
jalaludeen
how to disable back button
m? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this me
arameters) to a stack.
Pop occurs when back is clicked
When the user chooses an option from the main menu, you clear the stack
Back button (tag??) uses stack.peek(1) to get the prev page and it's
parameters.
David Harland wrote:
Hi,
I have a page that can be reached from various other page
Hi,
I have a page that can be reached from various other pages. On this page is a
button that will send them back to the page they came from via the action for
that page. Is there a clever way of doing this with struts 2 other than putting
a hidden variable in the page to check.
Thanks
Dave.
rything from cache - since no debug statement is printed.
I have checked other places also. Clicking back button doesn't go to the
server. Since no debug statement is printed.
Only the presence of the above line makes a weird difference.
Chetan Pandey wrote:
> To avoid th
tead of creating a new one. Something like this:
EventForm ef = (EventForm)form;
ef.setFoo(null);
ef.setBar(null);
// etc.
> I go to the form page and then click add. It goes to the Preview page.
> Everything shows perfectly. Now I click on the Back Button. Lo and Behold
> ! The
her problem
I go to the form page and then click add. It goes to the Preview page.
Everything shows perfectly. Now I click on the Back Button. Lo and Behold
! The Add Fields are all empty.
Pls can someone tell me how to get rid of this problem.
ng if they would
like to place a "SECOND" order with the new information and get confirmation
that they understand they will be charged again.
(*Chris*)
On 10/4/06, Jason King <[EMAIL PROTECTED]> wrote:
Using the token does account for the user hitting the back button.
Having
Using the token does account for the user hitting the back button.
Having been building web apps for almost 10 years now, I'm very much of
the back button is evil school. If there's an element on the page that
allows going to the beginning of the workflow and token is used t
that as the
> token value). Then if the data changes, it's a different token?
> (*Chris*)
>
Interesting! Hadn't thought of that. Have you used this method?
Thanks for the reply!
--
View this message in context:
http://www.nabble.com/New-twist-on-old-topic--Back-button-issue-
Hadn't thought of that. Have you used this method?
Thanks for the reply!
--
View this message in context:
http://www.nabble.com/New-twist-on-old-topic--Back-button-issue-with-Token-tf2382440.html#a6646822
Sent from the Struts - User mailin
I don't know if I agree with your last statement. I often prefer to use the
back button rather than buttons that are on the screen right in front of my
face, so it's often much less about site design and more about user
preference. But not accounting for someone using the back bu
If the user has a workflow that involves cycling back, give them a link
or button to cycle back with. If the users need to use the back button
as a regular part of their use of the application the application is
poorly designed.
Chris Pratt wrote:
How about basing the value of the tag on some
Forgive me for bringing up what seems to be a topic that's been discussed
here a lot: Issues with the back button.
I am using the token mechanism to prevent multiple form submits.
My jsp is invoked with a ForwardAction where I set the token.
The jsp submits to an action that checks if the to
Hello,
Forgive me for bringing up what seems to be a topic that's been discussed
here a lot: Issues with the back button.
I am using the token mechanism to prevent multiple form submits.
My jsp is invoked with a ForwardAction where I set the token.
The jsp submits to an action that chec
yes, it works. thanks. this should be the simplest way of supporting this.
On 6/26/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 6/25/06, Lixin Chu <[EMAIL PROTECTED]> wrote:
> is there a clearner way of doing this if I want to protect every page
except
> the login/out ?
What about the 'nocac
d(1);
//-->
-Original Message-
From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 5:10 AM
To: Struts Users Mailing List
Subject: Re: [again] how to disable browser's back button after logout ?
is there a clearner way of doing this if I want to pr
On 6/25/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
Wendy, is the link to the live dtd on the site? i think it should be a
first-level item on the Struts site, or at least in Action 1. Looking at DTD's
online is very valuable and something I need often.
It's linked from Section 4.8 at the b
You can also write yourself a Servlet Filter. You could say for all pages under
/directoryofyourchoosing/*, add these elements.
Lixin Chu <[EMAIL PROTECTED]> wrote: this may be posted before though i can not
find any in the archive:
how to make sure that browser's back button will
Wendy, is the link to the live dtd on the site? i think it should be a
first-level item on the Struts site, or at least in Action 1. Looking at DTD's
online is very valuable and something I need often.
Wendy Smoak <[EMAIL PROTECTED]> wrote: On 6/25/06, Lixin Chu
wrote:
> is there a clearner w
On 6/25/06, Lixin Chu <[EMAIL PROTECTED]> wrote:
is there a clearner way of doing this if I want to protect every page except
the login/out ?
What about the 'nocache' attribute of in
struts-config.xml? I haven't used it, just had occasion to be reading
the DTD the other day... :)
http://str
is there a clearner way of doing this if I want to protect every page except
the login/out ?
che; the log out page is benign. -- Paul
Lixin Chu <[EMAIL PROTECTED]> wrote: this may be posted before though i
can not find any in the archive:
how to make sure that browser's back button will bring back the previous
page after log out ?
Googled, and added these into our logout
before though i can not
find any in the archive:
how to make sure that browser's back button will bring back the previous
page after log out ?
Googled, and added these into our logout action, but still no effect:
response.setHeader("Cache-Control", "no-cache");
this may be posted before though i can not find any in the archive:
how to make sure that browser's back button will bring back the previous
page after log out ?
Googled, and added these into our logout action, but still no effect:
response.setHeader("Cache-Control&q
hello,
in the shale use cases is it already set to client...
damn problem
stephan
2006/6/13, Ian.Priest <[EMAIL PROTECTED]>:
The back button is actually a problem with JSF in general as if the user
hits "back" they are now on a different view to the one the server
thinks the
The back button is actually a problem with JSF in general as if the user
hits "back" they are now on a different view to the one the server
thinks they have, but it's particularly emphasised in dialogs.
If you don't using dialogs you can overcome it by setting the JSF
save-sta
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: 13 June 2006 18:52
To: Struts Users Mailing List
Subject: Re: [shale] back button issue
On 6/13/06, stephan opitz <[EMAIL PROTECTED]> wrote:
> while rebuiding the login procedure from the use-cases, i
re from the use-cases, i found the
> problem with the browser back button...
>
> shale does not know that the actual view was finished.
>
> anybody has some answers?
This is most likely related to SHALE-48 [1]. Unfortunately, there's
no resolution yet. Please comment on the iss
On 6/13/06, stephan opitz <[EMAIL PROTECTED]> wrote:
while rebuiding the login procedure from the use-cases, i found the
problem with the browser back button...
shale does not know that the actual view was finished.
anybody has some answers?
This is most likely related to SHALE
dear shale friends,
i'm want to using shale...
while rebuiding the login procedure from the use-cases, i found the
problem with the browser back button...
shale does not know that the actual view was finished.
anybody has some answers?
st
Julian Tillmann wrote:
> my question is simple: is an action finalized when the user hits the "back"
> button of the browser?
>
Good heavens no.
Actions are only instantiated once during application lifetime*. If
you're lucky enough to have finalize called at all it
Hi
I'm sorry, I wasn't being specific, I meant a struts action. You see, we've
got some actions which get data from a database and sometimes it takes a
while, so some of the users hit the back button and I'd like to know whether
this ends the connection by itself (if implem
On 5/17/06, Emilia Ipate <[EMAIL PROTECTED]> wrote:
Hello!
Could you be more explicit? What do you understand when saying action? Are you
referring to a HTTP request action?
Anyway, you should remember that, when the user hits the "back" button of the
browser, there is no
Hello!
Could you be more explicit? What do you understand when saying action? Are you
referring to a HTTP request action?
Anyway, you should remember that, when the user hits the "back" button of the
browser, there is no interaction (no request sent) between the client (browser
Hello
my question is simple: is an action finalized when the user hits the "back"
button of the browser?
thanks &
ciao 4 now
Julian
--
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http
> Manfred
>
> Lixin Chu wrote:
>
>> 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 ?
>>
>>
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
ke the struts token mechanism to prevend such backs.
Manfred
Lixin Chu wrote:
> 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
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-h
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 ?
1 - 100 of 231 matches
Mail list logo