Re: refresh problem

2007-05-31 Thread Oguz Kologlu

Hi Volkan,

I had a similar issue which turned out to be a a bug in the result  
page. It seems when you have an error in an ajax result page nothing  
gets reported (probably for good reason), but it makes things  
difficult to debug.


The simplest way I find to resolve it is to make the ajax call  
directly (ie it's own page) so you can see the resultant page  
directly, and perhaps put in breakpoints/debug statements as well.


HTH,
Oz


On 01/06/2007, at 12:14 AM, Volkan OZYILMAZ wrote:


I tryed this problem with FireFox, IE6, IE7. Same results.

On 5/31/07, Mark Shifman <[EMAIL PROTECTED]> wrote:


I had a similar problem that I never really worked out and I will be
interested in
hearing if anyone has solved this.

I was wondering if this was a caching issue with your browser.  I had
the problem with
firefox.
any suggestions appreciated.
mas
Volkan OZYILMAZ wrote:
> Hello All,
>
> I use sturts 2. My web program work well but when i add a  
refresh link

> in my
> page, starting a problem.
>
> First i had use javascript:reload() function. When use this  
link, page

> sometimes not get data. But sometimes get. I change my reload()
function.
>
> 
> function refresh()
> {
>var sURL = unescape(window.location.pathname);
>window.location.href = sURL;
> }
> 
> Yenile
>
> This is old style and working.
>
> After, i prepared a small report page. It has JFreeChart's  
charts. It is

> working but when i add a refresh link it has a problem. I research
> ajax. I
> change my refresh link
>
> value="CampaignManagerCallDurationSlice.action">

>
> 
> 
>  notifyTopics="/request"
>> Yenile
>
> But result not change. I watched this process. Page not waiting  
action

> class
> work done. Page has waiting and show result but action class  
still

> working.
>
> It can be possible a settings in action mapped xml file? Or any
> suggestion?
>
> Regards,
>


--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
Volkan OZYILMAZ
Volko
http://www.volko.biz
--



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: refresh problem

2007-05-31 Thread Volkan OZYILMAZ

I tryed this problem with FireFox, IE6, IE7. Same results.

On 5/31/07, Mark Shifman <[EMAIL PROTECTED]> wrote:


I had a similar problem that I never really worked out and I will be
interested in
hearing if anyone has solved this.

I was wondering if this was a caching issue with your browser.  I had
the problem with
firefox.
any suggestions appreciated.
mas
Volkan OZYILMAZ wrote:
> Hello All,
>
> I use sturts 2. My web program work well but when i add a refresh link
> in my
> page, starting a problem.
>
> First i had use javascript:reload() function. When use this link, page
> sometimes not get data. But sometimes get. I change my reload()
function.
>
> 
> function refresh()
> {
>var sURL = unescape(window.location.pathname);
>window.location.href = sURL;
> }
> 
> Yenile
>
> This is old style and working.
>
> After, i prepared a small report page. It has JFreeChart's charts. It is
> working but when i add a refresh link it has a problem. I research
> ajax. I
> change my refresh link
>
> 
>
> 
> 
>  notifyTopics="/request"
>> Yenile
>
> But result not change. I watched this process. Page not waiting action
> class
> work done. Page has waiting and show result but action class still
> working.
>
> It can be possible a settings in action mapped xml file? Or any
> suggestion?
>
> Regards,
>


--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
Volkan OZYILMAZ
Volko
http://www.volko.biz
--


Re: refresh problem

2007-05-31 Thread Mark Shifman
I had a similar problem that I never really worked out and I will be 
interested in

hearing if anyone has solved this.

I was wondering if this was a caching issue with your browser.  I had 
the problem with

firefox.
any suggestions appreciated.
mas
Volkan OZYILMAZ wrote:

Hello All,

I use sturts 2. My web program work well but when i add a refresh link 
in my

page, starting a problem.

First i had use javascript:reload() function. When use this link, page
sometimes not get data. But sometimes get. I change my reload() function.


function refresh()
{
   var sURL = unescape(window.location.pathname);
   window.location.href = sURL;
}

Yenile

This is old style and working.

After, i prepared a small report page. It has JFreeChart's charts. It is
working but when i add a refresh link it has a problem. I research 
ajax. I

change my refresh link


   


notifyTopics="/request"

Yenile


But result not change. I watched this process. Page not waiting action 
class

work done. Page has waiting and show result but action class still
working.

It can be possible a settings in action mapped xml file? Or any 
suggestion?


Regards,




--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Refresh problem

2004-09-30 Thread Paul McCulloch
The token is set in a session scope attribute named
"org.apache.struts.action.TOKEN". It should be relatively straightforward to
include it's value within the link, as a parameter named
"org.apache.struts.taglib.html.TOKEN". I suggest you take a look at the
TokenProcessor class if you have any issues getting this working.

Paul

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 29, 2004 6:02 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Refresh problem
> 
> 
> Hi,
> 
> Ah, that will be why... I use a link to submit.  Is there any 
> way to force 
> this to happen without a form?
> 
> Thanks,
> Andy
> 
> _
> It's fast, it's easy and it's free. Get MSN Messenger today! 
> http://www.msn.co.uk/messenger
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh problem

2004-09-29 Thread Jeff Beal
andy wix wrote:
Hi,
Ah, that will be why... I use a link to submit.  Is there any way to 
force this to happen without a form?

Thanks,
Andy
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger
FYI.  You may want to read 
http://www.w3.org/2001/tag/doc/whenToUseGet.html.  This discusses (from 
a W3C standpoint, nothing Struts-specific) when developers should use 
POST and when they should use GET (i.e. parameters in a URL) to submit 
HTTP requests.  One of their guidelines (and they are only guidelines) 
is that any operation that modifies a server-side resource should use 
POST instead of GET.

-- Jeff Beal
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Refresh problem

2004-09-29 Thread andy wix
Hi,
Ah, that will be why... I use a link to submit.  Is there any way to force 
this to happen without a form?

Thanks,
Andy
_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Refresh problem

2004-09-29 Thread Paul McCulloch
The  tag will (or should!) render a hidden field, on your html
form, containing the token value. 

Paul

> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 29, 2004 5:18 PM
> To: [EMAIL PROTECTED]
> Subject: Refresh problem
> 
> 
> Hi,
> 
> I have a screen which lists some names in a table and has a 
> delete option 
> which calls an action to delete the associated name and then 
> the view page 
> shows the updated list.
> If you do a delete and then select refresh on the browser, 
> the resulting 
> request is for another delete which is clearly undesirable.  
> I am trying to 
> use tokens to fix this but always get a false from the call to (NOT) 
> istokenValid (i.e., I cannot now do the delete at all).
> 
> my struts-config enties are:
> 
> type="com.me.test.actions.SetTokenAction">
>  name="success"
> path="fulluser.names.view"/>  
>  
> 
> type="com.me.test.actions.DeleteNameAction">
>  name="success"
> path="/do/viewNames"/>
> 
> 
> and the actions are:
> [SetTokenAction]
>   
>   saveToken(request);
>   return (mapping.findForward("success"));
> 
> [DeleteNameAction]
> 
>   
>   if (!isTokenValid(request))
> return (mapping.findForward("success"));
> 
> // do the delete
> .
> 
> // reset the token
> resetToken(request);
> 
> 
> When in the view page, both clicking delete and doing a 
> refresh change the 
> token's value.
> The Action class API states that the 'isTokenValid' method 
> compares the 
> session token with the one in the request but I never see one in the 
> request.
> 
> The logic seems sound so am I missing something (except a 
> servicable brain)?
> 
> Thanks,
> Andy
> 
> _
> Express yourself instantly with MSN Messenger! Download today 
> - it's FREE! 
> hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh problem.

2004-08-18 Thread Kunal Parikh
Hi nitin!
I would attack this issue in two possible ways.
Option 1:
=
addForm.do - Action.saveToken() in execute;
listRecords.do - displays records +
	if( this.isTokenValid( request, true ) ) // true will reset the token  
(i.e. on refresh, the token will not match)
	{
		// do save
	}
	// fetch records from DB

Option 2:
=
addRecordForm.do - displays the form
addRecord.do - does the actual addRecord, and does a REDIRECT to  
listRecords.do
listRecords.do  - display records

HTH,
Kunal
On Wed, 18 Aug 2004 05:10:41 -0700 (PDT), nitin dubey  
<[EMAIL PROTECTED]> wrote:

The user is refreshing on the LIST page. :)
--- nitin dubey <[EMAIL PROTECTED]> wrote:
Hello,
I have a page wherein I am listing a set of records.
This page also has a button for adding new record.
Now if the user clicks the [Add New] button, adds
the
record(after which he is directed to the same
listing
page) and refreshes the same record is added once
more.  Here onwards every refresh ends up adding 1
more record to database.  Any suggesstions to get
rid
of this problem ?
I have tried  but no
success :(
nitin

__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Refresh problem.

2004-08-18 Thread Harjot Singh
Hi Nitin 


Have a look at this 

(Search for 'token' on this page)
http://www.scioworks.net/camino_doc/manual/strutsIntro/struts1_0.html

Hope you find a solution.

Harjot

- Original Message - 
From: "nitin dubey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 18, 2004 8:05 AM
Subject: Refresh problem.


> Hello,
> 
> I have a page wherein I am listing a set of records. 
> This page also has a button for adding new record. 
> Now if the user clicks the [Add New] button, adds the
> record(after which he is directed to the same listing
> page) and refreshes the same record is added once
> more.  Here onwards every refresh ends up adding 1
> more record to database.  Any suggesstions to get rid
> of this problem ?
> 
> I have tried  but no
> success :(
> 
> 
> nitin
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh problem.

2004-08-18 Thread Deepak
Either redirect to the LIST page or use token for the Add page

- Original Message - 
From: "nitin dubey" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 18, 2004 5:40 PM
Subject: Re: Refresh problem.


> The user is refreshing on the LIST page. :)
> --- nitin dubey <[EMAIL PROTECTED]> wrote:
> 
> > Hello,
> > 
> > I have a page wherein I am listing a set of records.
> > 
> > This page also has a button for adding new record. 
> > Now if the user clicks the [Add New] button, adds
> > the
> > record(after which he is directed to the same
> > listing
> > page) and refreshes the same record is added once
> > more.  Here onwards every refresh ends up adding 1
> > more record to database.  Any suggesstions to get
> > rid
> > of this problem ?
> > 
> > I have tried  but no
> > success :(
> > 
> > 
> > nitin
> > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> > http://promotions.yahoo.com/new_mail
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
> 
> 
> __
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh problem.

2004-08-18 Thread nitin dubey
The user is refreshing on the LIST page. :)
--- nitin dubey <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I have a page wherein I am listing a set of records.
> 
> This page also has a button for adding new record. 
> Now if the user clicks the [Add New] button, adds
> the
> record(after which he is directed to the same
> listing
> page) and refreshes the same record is added once
> more.  Here onwards every refresh ends up adding 1
> more record to database.  Any suggesstions to get
> rid
> of this problem ?
> 
> I have tried  but no
> success :(
> 
> 
> nitin
> 
> 
>   
> __
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh problem

2004-06-01 Thread Hubert Rabago
search the mailing list archive for information on Token Processing.  
Here's a start:
http://marc.theaimsgroup.com/?l=struts-user&w=2&r=1&s=token&q=b

Also, consider redirecting to the "list" page after processing a delete, or
performing any DB update you don't want repeated by a refresh operation.

Hubert

--- terry Highfield <[EMAIL PROTECTED]> wrote:
> HI,
> 
> I have a list of related items on my JSP page and each item in the list has
> 
> a delete button. This tells the action to remove the item from the 
> ArrayList, thank fully this works nicely.
> 
> The trouble is; after deleting an item I click "refresh" on the browser, 
> this will then delete the next item on the list. Consequently clicking on 
> the "refresh" button repeatedly will/can remove all items in the list.
> 
> Does any one know a way around this problem? Is there a way to tell from
> the 
> action if the "refresh" on the browser has been clicked?
> 
> Thank you in advance for your replies,
> 
> Terry
> 




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]