Re: Cancel Button Not Working in 1.1

2003-08-14 Thread Natalie D Rassmann
I got the cancel button to work  All I did was replace what I had..

html:cancel
   bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
/html:cancel

With the statement below:

html:cancel/

It works now.

Thanks for all your help.

Natalie

Yansheng Lin wrote:

 Try:
   html:cancel onclick=bCancel=true
   bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
   /html:cancel

 -Original Message-
 From: Bradley M. Handy [mailto:[EMAIL PROTECTED]
 Sent: August 7, 2003 1:09 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Cancel Button Not Working in 1.1

 I don't see anything wrong w/ your tag.  However, you're using the
 bean:message ... / tag in the body of the html:cancel ... / tag, you can
 get rid of the value attribute.

 Brad

 -Original Message-
 From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 2:51 PM
 To: Struts Users Mailing List
 Subject: Re: Cancel Button Not Working in 1.1

 Here is the tag I am using:

 html:cancel value=Cancel
   bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
   /html:cancel

 Bradley M. Handy wrote:

  Please post the tag you're using to render the cancel button on the page.
 
  Brad
 
  -Original Message-
  From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 07, 2003 1:07 PM
  To: Struts Users Mailing List
  Subject: Cancel Button Not Working in 1.1
 
  Hi,
 
  I am trying to use the cancel button in Struts 1.1.  It is not
  working
 
  The isCancelled(request) is always returnning false
 
  Can anyone help me?
 
  Natalie
 
  -
  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]

 -
 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: Cancel Button Not Working in 1.1

2003-08-14 Thread Natalie D Rassmann
Here is the tag I am using:

html:cancel value=Cancel
  bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
  /html:cancel

Bradley M. Handy wrote:

 Please post the tag you're using to render the cancel button on the page.

 Brad

 -Original Message-
 From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 1:07 PM
 To: Struts Users Mailing List
 Subject: Cancel Button Not Working in 1.1

 Hi,

 I am trying to use the cancel button in Struts 1.1.  It is not
 working

 The isCancelled(request) is always returnning false

 Can anyone help me?

 Natalie

 -
 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: Cancel Button Not Working in 1.1

2003-08-14 Thread Adam Hardy
I hate to say this, but that cancel button has got some bad juju on it 
somehow. It worked for me, then I upgraded to 1.1,  it stopped working. 
It happened to someone else as well as in that thread that was quoted 
earlier. I took the whole of struts and my app apart with logging and 
put it back together again, didn't find anything but it just started 
working again.

It was Sashi Ravipati who was also having the problem, he didn't pin it 
down either and I guess he either solved it or it went away, because the 
thread just died.

Adam

Mark Galbreath wrote:
html:cancel/

Doesn't work for me, either.

-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 1:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Cancel Button Not Working in 1.1

Please post the tag you're using to render the cancel button on the page.

Brad

-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 1:07 PM
To: Struts Users Mailing List
Subject: Cancel Button Not Working in 1.1

Hi,

I am trying to use the cancel button in Struts 1.1.  It is not working

The isCancelled(request) is always returnning false

Can anyone help me?

Natalie



-
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]



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


RE: Cancel Button Not Working in 1.1

2003-08-14 Thread Yansheng Lin
Try:
  html:cancel onclick=bCancel=true
  bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
  /html:cancel


-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED] 
Sent: August 7, 2003 1:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Cancel Button Not Working in 1.1


I don't see anything wrong w/ your tag.  However, you're using the
bean:message ... / tag in the body of the html:cancel ... / tag, you can
get rid of the value attribute.

Brad


-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 2:51 PM
To: Struts Users Mailing List
Subject: Re: Cancel Button Not Working in 1.1

Here is the tag I am using:

html:cancel value=Cancel
  bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
  /html:cancel

Bradley M. Handy wrote:

 Please post the tag you're using to render the cancel button on the page.

 Brad

 -Original Message-
 From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 1:07 PM
 To: Struts Users Mailing List
 Subject: Cancel Button Not Working in 1.1

 Hi,

 I am trying to use the cancel button in Struts 1.1.  It is not
 working

 The isCancelled(request) is always returnning false

 Can anyone help me?

 Natalie

 -
 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]


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



RE: Cancel Button Not Working in 1.1

2003-08-10 Thread Mark Galbreath
html:cancel/

Doesn't work for me, either.

-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 1:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Cancel Button Not Working in 1.1


Please post the tag you're using to render the cancel button on the page.

Brad

-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 1:07 PM
To: Struts Users Mailing List
Subject: Cancel Button Not Working in 1.1

Hi,

I am trying to use the cancel button in Struts 1.1.  It is not working

The isCancelled(request) is always returnning false

Can anyone help me?

Natalie



-
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: Cancel Button Not Working in 1.1

2003-08-09 Thread Bradley M. Handy
I don't see anything wrong w/ your tag.  However, you're using the
bean:message ... / tag in the body of the html:cancel ... / tag, you can
get rid of the value attribute.

Brad


-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 2:51 PM
To: Struts Users Mailing List
Subject: Re: Cancel Button Not Working in 1.1

Here is the tag I am using:

html:cancel value=Cancel
  bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
  /html:cancel

Bradley M. Handy wrote:

 Please post the tag you're using to render the cancel button on the page.

 Brad

 -Original Message-
 From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 1:07 PM
 To: Struts Users Mailing List
 Subject: Cancel Button Not Working in 1.1

 Hi,

 I am trying to use the cancel button in Struts 1.1.  It is not
 working

 The isCancelled(request) is always returnning false

 Can anyone help me?

 Natalie

 -
 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: Cancel Button Not Working in 1.1

2003-08-09 Thread Bradley M. Handy
Please post the tag you're using to render the cancel button on the page.

Brad

-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 1:07 PM
To: Struts Users Mailing List
Subject: Cancel Button Not Working in 1.1

Hi,

I am trying to use the cancel button in Struts 1.1.  It is not
working

The isCancelled(request) is always returnning false

Can anyone help me?

Natalie



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



RE: Cancel Button Not Working in 1.1

2003-08-08 Thread Michael Ruppin
Maybe someone in this thread figured it out:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg72575.html

m

 -Original Message-
 From: Natalie D Rassmann
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 07, 2003 1:07 PM
 To: Struts Users Mailing List
 Subject: Cancel Button Not Working in 1.1
 
 Hi,
 
 I am trying to use the cancel button in Struts 1.1. 
 It is not
 working
 
 The isCancelled(request) is always returnning
 false
 
 Can anyone help me?
 
 Natalie
 
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Cancel Button Not Working in 1.1

2003-08-08 Thread Yansheng Lin
Hehe! Nice fix:).

-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Sent: August 8, 2003 4:05 AM
To: Struts Users Mailing List
Subject: Re: Cancel Button Not Working in 1.1


I got the cancel button to work  All I did was replace what I had..

html:cancel
   bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
/html:cancel

With the statement below:

html:cancel/

It works now.

Thanks for all your help.

Natalie

Yansheng Lin wrote:

 Try:
   html:cancel onclick=bCancel=true
   bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
   /html:cancel

 -Original Message-
 From: Bradley M. Handy [mailto:[EMAIL PROTECTED]
 Sent: August 7, 2003 1:09 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Cancel Button Not Working in 1.1

 I don't see anything wrong w/ your tag.  However, you're using the
 bean:message ... / tag in the body of the html:cancel ... / tag, you can
 get rid of the value attribute.

 Brad

 -Original Message-
 From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 2:51 PM
 To: Struts Users Mailing List
 Subject: Re: Cancel Button Not Working in 1.1

 Here is the tag I am using:

 html:cancel value=Cancel
   bean:message key=button.cancel bundle=PRTR_RESOURCE_KEY/
   /html:cancel

 Bradley M. Handy wrote:

  Please post the tag you're using to render the cancel button on the page.
 
  Brad
 
  -Original Message-
  From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 07, 2003 1:07 PM
  To: Struts Users Mailing List
  Subject: Cancel Button Not Working in 1.1
 
  Hi,
 
  I am trying to use the cancel button in Struts 1.1.  It is not
  working
 
  The isCancelled(request) is always returnning false
 
  Can anyone help me?
 
  Natalie
 
  -
  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]

 -
 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: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
I am trying this on Struts 1.1 final. Will this make any difference..


 [EMAIL PROTECTED] 07/08/03 05:11PM 
Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:
 This is how I have my cancel tag.
 
 html:cancel
 bean:message key=button.cancel/
   /html:cancel
 
  [EMAIL PROTECTED] 07/08/03 02:27PM 
 The complete content of your html:cancel tag is
 probably key to solving this problem.
 
 m
 
 --- Sashi Ravipati [EMAIL PROTECTED] wrote:
  
   isCancelled(request) is always returning false
  (Even when cancel button
  is clicked)
  
  Need some help...
  
  Thanks
  
  
   [EMAIL PROTECTED] 07/08/03 09:10AM 
  I have a html:cancel in my jsp page. and in my
  action I have
  
  if(isCancelled(request)){
return mapping.findForward(index); 
  }
  
  
  But it is not working. What am I doing wrong here.
 I
  am using Struts 1.1
  final
  
  Thanks
  
 
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Re: Cancel button not working?

2003-07-09 Thread Nagendra Kumar O V S








  i am using struts1.1 final and i don't find any probs with the cancel 
  button
  
  --nagi
  ---Original Message---
  
  
  From: Struts Users Mailing 
  List
  Date: Wednesday, July 
  09, 2003 05:46:35 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Cancel 
  button not working?
  I am trying this on Struts 1.1 final. Will this make any 
  difference.. [EMAIL PROTECTED] 07/08/03 05:11PM 
  Odd, I can't reproduce that in 1.1-rc1. Unless 
  you'reextending something which might override 
  theisCancelled(HttpServletRequest) method, or thehtml:cancel tag 
  is not contained within an html:formtag, I can't think of anything 
  else.m--- Sashi Ravipati [EMAIL PROTECTED] 
  wrote: This is how I have my cancel tag.  
  html:cancel bean:message 
  key="button.cancel"/ /html:cancel  
   [EMAIL PROTECTED] 
  07/08/03 02:27PM  The complete content of your 
  html:cancel tag is probably key to solving this problem. 
   m  --- Sashi Ravipati [EMAIL PROTECTED] 
  wrote:isCancelled(request) is always returning 
  false  (Even when cancel button  is 
  clicked)Need some help...  
Thanks   
  [EMAIL PROTECTED] 
  07/08/03 09:10AM   I have a html:cancel in 
  my jsp page. and in my  action I have   
   if(isCancelled(request)){  return 
  mapping.findForward("index");   }
But it is not working. What am I doing wrong here. 
  I  am using Struts 1.1  final  
Thanks 
  __ Do you Yahoo!? SBC 
  Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com 
  - 
  To unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED] 
  __Do you Yahoo!?SBC 
  Yahoo! DSL - Now only $29.95 per month!http://sbc.yahoo.com-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED]





	
	
	
	
	
	
	




 IncrediMail - 
Email has finally evolved - Click 
Here



Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:
I am trying this on Struts 1.1 final. Will this make any difference..



[EMAIL PROTECTED] 07/08/03 05:11PM 
Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:

This is how I have my cancel tag.

html:cancel
   bean:message key=button.cancel/
 /html:cancel
[EMAIL PROTECTED] 07/08/03 02:27PM 
The complete content of your html:cancel tag is
probably key to solving this problem.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:

isCancelled(request) is always returning false
(Even when cancel button
is clicked)
Need some help...

Thanks



[EMAIL PROTECTED] 07/08/03 09:10AM 
I have a html:cancel in my jsp page. and in my
action I have
if(isCancelled(request)){
 return mapping.findForward(index); 
}

But it is not working. What am I doing wrong here.
I

am using Struts 1.1
final
Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
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: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
HTML is as shown below

  input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;

 [EMAIL PROTECTED] 07/09/03 09:21AM 
Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:
 I am trying this on Struts 1.1 final. Will this make any difference..
 
 
 
[EMAIL PROTECTED] 07/08/03 05:11PM 
 
 Odd, I can't reproduce that in 1.1-rc1.  Unless you're
 extending something which might override the
 isCancelled(HttpServletRequest) method, or the
 html:cancel tag is not contained within an html:form
 tag, I can't think of anything else.
 
 m
 
 --- Sashi Ravipati [EMAIL PROTECTED] wrote:
 
This is how I have my cancel tag.

html:cancel
bean:message key=button.cancel/
  /html:cancel

[EMAIL PROTECTED] 07/08/03 02:27PM 

The complete content of your html:cancel tag is
probably key to solving this problem.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:

 isCancelled(request) is always returning false
(Even when cancel button
is clicked)

Need some help...

Thanks



[EMAIL PROTECTED] 07/08/03 09:10AM 

I have a html:cancel in my jsp page. and in my
action I have

if(isCancelled(request)){
  return mapping.findForward(index); 
}


But it is not working. What am I doing wrong here.

I

am using Struts 1.1
final

Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


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

 
 
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
 -
 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: Cancel button not working?

2003-07-09 Thread Adam Hardy
Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you are 
calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try it 
myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:
HTML is as shown below

  input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;
[EMAIL PROTECTED] 07/09/03 09:21AM 
Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:

I am trying this on Struts 1.1 final. Will this make any difference..




[EMAIL PROTECTED] 07/08/03 05:11PM 
Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:


This is how I have my cancel tag.

html:cancel
  bean:message key=button.cancel/
/html:cancel
[EMAIL PROTECTED] 07/08/03 02:27PM 
The complete content of your html:cancel tag is
probably key to solving this problem.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:


isCancelled(request) is always returning false
(Even when cancel button
is clicked)
Need some help...

Thanks




[EMAIL PROTECTED] 07/08/03 09:10AM 
I have a html:cancel in my jsp page. and in my
action I have
if(isCancelled(request)){
return mapping.findForward(index); 
}

But it is not working. What am I doing wrong here.
I


am using Struts 1.1
final
Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-


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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
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]


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


Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
it says - Cancel 

I don't know what I am missing which is making this tag not work..

Thanks



 [EMAIL PROTECTED] 07/09/03 09:50AM 
Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you are 
calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try it 
myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:
 HTML is as shown below
 
   input type=submit name=org.apache.struts.taglib.html.CANCEL
 value=Cancel onclick=bCancel=true;
 
[EMAIL PROTECTED] 07/09/03 09:21AM 
 
 Sashi, what HTML does the tag produce?
 
 Adam
 
 Sashi Ravipati wrote:
 
I am trying this on Struts 1.1 final. Will this make any difference..




[EMAIL PROTECTED] 07/08/03 05:11PM 

Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:


This is how I have my cancel tag.

html:cancel
   bean:message key=button.cancel/
 /html:cancel

[EMAIL PROTECTED] 07/08/03 02:27PM 

The complete content of your html:cancel tag is
probably key to solving this problem.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:


isCancelled(request) is always returning false
(Even when cancel button
is clicked)

Need some help...

Thanks




[EMAIL PROTECTED] 07/08/03 09:10AM 

I have a html:cancel in my jsp page. and in my
action I have

if(isCancelled(request)){
 return mapping.findForward(index); 
}


But it is not working. What am I doing wrong here.

I


am using Struts 1.1
final

Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



-


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




__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
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]
 


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


Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
I've solved my problem. Now you've checked the parameter, check to see 
if the request.attribute is set with
request.getAttribute(Globals.CANCEL_KEY);

For some reason in the RequestProcessor it sets this attribute to true 
when the request.parameter is present. Check it out. This is the one 
that the Action.isCancelled() checks. It has to be not null.

Adam

Sashi Ravipati wrote:
it says - Cancel 

I don't know what I am missing which is making this tag not work..

Thanks




[EMAIL PROTECTED] 07/09/03 09:50AM 
Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you are 
calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try it 
myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:

HTML is as shown below

 input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;
[EMAIL PROTECTED] 07/09/03 09:21AM 
Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:


I am trying this on Struts 1.1 final. Will this make any difference..





[EMAIL PROTECTED] 07/08/03 05:11PM 
Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:



This is how I have my cancel tag.

html:cancel
 bean:message key=button.cancel/
/html:cancel
[EMAIL PROTECTED] 07/08/03 02:27PM 
The complete content of your html:cancel tag is
probably key to solving this problem.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:



isCancelled(request) is always returning false
(Even when cancel button
is clicked)
Need some help...

Thanks





[EMAIL PROTECTED] 07/08/03 09:10AM 
I have a html:cancel in my jsp page. and in my
action I have
if(isCancelled(request)){
   return mapping.findForward(index); 
}

But it is not working. What am I doing wrong here.
I



am using Struts 1.1
final
Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-



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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
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]


-
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: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I set
it to not null and where Should I do this..

Can u explain how u solved ur problem..

Thanks

 [EMAIL PROTECTED] 07/09/03 11:22AM 
I've solved my problem. Now you've checked the parameter, check to see 
if the request.attribute is set with
request.getAttribute(Globals.CANCEL_KEY);

For some reason in the RequestProcessor it sets this attribute to true 
when the request.parameter is present. Check it out. This is the one 
that the Action.isCancelled() checks. It has to be not null.


Adam

Sashi Ravipati wrote:
 it says - Cancel 
 
 I don't know what I am missing which is making this tag not work..
 
 Thanks
 
 
 
 
[EMAIL PROTECTED] 07/09/03 09:50AM 
 
 Try logging what is in this cancel parameter 
 (org.apache.struts.taglib.html.CANCEL) in the same place where you are

 calling isCancelled()
 
 Actually I've just realised I'm suffering the same problem. I'll try
it 
 myself. Let me know what you find as well!
 
 Adam
 
 Sashi Ravipati wrote:
 
HTML is as shown below

  input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;

[EMAIL PROTECTED] 07/09/03 09:21AM 

Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:


I am trying this on Struts 1.1 final. Will this make any difference..





[EMAIL PROTECTED] 07/08/03 05:11PM 

Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:



This is how I have my cancel tag.

html:cancel
  bean:message key=button.cancel/
/html:cancel

[EMAIL PROTECTED] 07/08/03 02:27PM 

The complete content of your html:cancel tag is
probably key to solving this problem.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:



isCancelled(request) is always returning false
(Even when cancel button
is clicked)

Need some help...

Thanks





[EMAIL PROTECTED] 07/08/03 09:10AM 

I have a html:cancel in my jsp page. and in my
action I have

if(isCancelled(request)){
return mapping.findForward(index); 
}


But it is not working. What am I doing wrong here.

I



am using Struts 1.1
final

Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



-



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




__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
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]

 
 
 
 -
 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: Cancel button not working?

2003-07-09 Thread Adam Hardy
Via logging is basically how I solved it - by figuring out where in 
struts I was going wrong.

What it means now is that RequestProcessor is not setting that attribute 
- you don't need to set it by hand, struts should.

It's just one little if clause. According to your logging, 
request.getParameter(org.apache.struts.taglib.html.CANCEL) has a 
value, right? The parameter is not null?

If the parameter is not null but the attribute is null, that means that 
you have either not got the same struts code as me (1.1 final) or your 
RequestProcessor is not executing the processPopulate() method.

I would check 2 things:

that org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY == 
org.apache.struts.taglib.html.CANCEL  (i.e. that the parameter name / 
cancel button name in your HTML is correct)

and that RequestProcessor.processPopulate() is executing. This method 
also puts the data into the action form, so you could use that as a 
check unless you can grab the source code and put some logging in there.

As you can tell I'm intrigued.
Adam
Sashi Ravipati wrote:
request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I set
it to not null and where Should I do this..
Can u explain how u solved ur problem..

Thanks


[EMAIL PROTECTED] 07/09/03 11:22AM 
I've solved my problem. Now you've checked the parameter, check to see 
if the request.attribute is set with
request.getAttribute(Globals.CANCEL_KEY);

For some reason in the RequestProcessor it sets this attribute to true 
when the request.parameter is present. Check it out. This is the one 
that the Action.isCancelled() checks. It has to be not null.

Adam

Sashi Ravipati wrote:

it says - Cancel 

I don't know what I am missing which is making this tag not work..

Thanks





[EMAIL PROTECTED] 07/09/03 09:50AM 
Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you are


calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try
it 

myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:


HTML is as shown below

input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;
[EMAIL PROTECTED] 07/09/03 09:21AM 
Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:



I am trying this on Struts 1.1 final. Will this make any difference..






[EMAIL PROTECTED] 07/08/03 05:11PM 
Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:




This is how I have my cancel tag.

html:cancel
bean:message key=button.cancel/
/html:cancel
[EMAIL PROTECTED] 07/08/03 02:27PM 
The complete content of your html:cancel tag is
probably key to solving this problem.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:




isCancelled(request) is always returning false
(Even when cancel button
is clicked)
Need some help...

Thanks






[EMAIL PROTECTED] 07/08/03 09:10AM 
I have a html:cancel in my jsp page. and in my
action I have
if(isCancelled(request)){
  return mapping.findForward(index); 
}

But it is not working. What am I doing wrong here.
I




am using Struts 1.1
final
Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-




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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
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]


-
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]


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


Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
I check the first thing u asked and it is same 
i.e
org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY ==
org.apache.struts.taglib.html.CANCEL

and regarding the processPopulate(), I am not sure how I can do this.

I just downloaded the Struts 1.1 final again and tested but the result
is the same. 

Could u send me the Code u have in your action class. I will try to see
if I missed some thing.

Thanks


 [EMAIL PROTECTED] 07/09/03 11:54AM 
Via logging is basically how I solved it - by figuring out where in 
struts I was going wrong.

What it means now is that RequestProcessor is not setting that attribute

- you don't need to set it by hand, struts should.

It's just one little if clause. According to your logging, 
request.getParameter(org.apache.struts.taglib.html.CANCEL) has a 
value, right? The parameter is not null?

If the parameter is not null but the attribute is null, that means that 
you have either not got the same struts code as me (1.1 final) or your 
RequestProcessor is not executing the processPopulate() method.

I would check 2 things:

that org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY == 
org.apache.struts.taglib.html.CANCEL  (i.e. that the parameter name / 
cancel button name in your HTML is correct)

and that RequestProcessor.processPopulate() is executing. This method 
also puts the data into the action form, so you could use that as a 
check unless you can grab the source code and put some logging in there.

As you can tell I'm intrigued.
Adam

Sashi Ravipati wrote:
 request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I
set
 it to not null and where Should I do this..
 
 Can u explain how u solved ur problem..
 
 Thanks
 
 
[EMAIL PROTECTED] 07/09/03 11:22AM 
 
 I've solved my problem. Now you've checked the parameter, check to see

 if the request.attribute is set with
 request.getAttribute(Globals.CANCEL_KEY);
 
 For some reason in the RequestProcessor it sets this attribute to true

 when the request.parameter is present. Check it out. This is the one 
 that the Action.isCancelled() checks. It has to be not null.
 
 
 Adam
 
 Sashi Ravipati wrote:
 
it says - Cancel 

I don't know what I am missing which is making this tag not work..

Thanks





[EMAIL PROTECTED] 07/09/03 09:50AM 

Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you are
 
 
calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try
 
 it 
 
myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:


HTML is as shown below

 input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;

[EMAIL PROTECTED] 07/09/03 09:21AM 

Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:



I am trying this on Struts 1.1 final. Will this make any
difference..






[EMAIL PROTECTED] 07/08/03 05:11PM 

Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:




This is how I have my cancel tag.

html:cancel
 bean:message key=button.cancel/
/html:cancel

[EMAIL PROTECTED] 07/08/03 02:27PM 

The complete content of your html:cancel tag is
probably key to solving this problem.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:




isCancelled(request) is always returning false
(Even when cancel button
is clicked)

Need some help...

Thanks






[EMAIL PROTECTED] 07/08/03 09:10AM 

I have a html:cancel in my jsp page. and in my
action I have

if(isCancelled(request)){
   return mapping.findForward(index); 
}


But it is not working. What am I doing wrong here.

I




am using Struts 1.1
final

Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



-




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




__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
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]




-
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: Cancel button not working?

2003-07-09 Thread Adam Hardy
I think the only way you will solve this is by downloading the source 
and putting some logging statnements in there.  It's easy enough to use 
the struts source by putting the 
org/apache/struts/action/RequestProcessor.java in your own source 
directory and recompiling and deploying. I don't think you need the 
whole lot.

Here's my base action class for what its worth
Adam
Sashi Ravipati wrote:
I check the first thing u asked and it is same 
i.e
org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY ==
org.apache.struts.taglib.html.CANCEL

and regarding the processPopulate(), I am not sure how I can do this.

I just downloaded the Struts 1.1 final again and tested but the result
is the same. 

Could u send me the Code u have in your action class. I will try to see
if I missed some thing.
Thanks



[EMAIL PROTECTED] 07/09/03 11:54AM 
Via logging is basically how I solved it - by figuring out where in 
struts I was going wrong.

What it means now is that RequestProcessor is not setting that attribute

- you don't need to set it by hand, struts should.

It's just one little if clause. According to your logging, 
request.getParameter(org.apache.struts.taglib.html.CANCEL) has a 
value, right? The parameter is not null?

If the parameter is not null but the attribute is null, that means that 
you have either not got the same struts code as me (1.1 final) or your 
RequestProcessor is not executing the processPopulate() method.

I would check 2 things:

that org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY == 
org.apache.struts.taglib.html.CANCEL  (i.e. that the parameter name / 
cancel button name in your HTML is correct)

and that RequestProcessor.processPopulate() is executing. This method 
also puts the data into the action form, so you could use that as a 
check unless you can grab the source code and put some logging in there.

As you can tell I'm intrigued.
Adam
Sashi Ravipati wrote:

request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I
set

it to not null and where Should I do this..

Can u explain how u solved ur problem..

Thanks



[EMAIL PROTECTED] 07/09/03 11:22AM 
I've solved my problem. Now you've checked the parameter, check to see


if the request.attribute is set with
request.getAttribute(Globals.CANCEL_KEY);
For some reason in the RequestProcessor it sets this attribute to true


when the request.parameter is present. Check it out. This is the one 
that the Action.isCancelled() checks. It has to be not null.

Adam

Sashi Ravipati wrote:


it says - Cancel 

I don't know what I am missing which is making this tag not work..

Thanks






[EMAIL PROTECTED] 07/09/03 09:50AM 
Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you are


calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try
it 


myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:



HTML is as shown below

input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;
[EMAIL PROTECTED] 07/09/03 09:21AM 
Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:




I am trying this on Struts 1.1 final. Will this make any
difference..






[EMAIL PROTECTED] 07/08/03 05:11PM 
Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:





This is how I have my cancel tag.

html:cancel
   bean:message key=button.cancel/
/html:cancel
[EMAIL PROTECTED] 07/08/03 02:27PM 
The complete content of your html:cancel tag is
probably key to solving this problem.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:





isCancelled(request) is always returning false
(Even when cancel button
is clicked)
Need some help...

Thanks







[EMAIL PROTECTED] 07/08/03 09:10AM 
I have a html:cancel in my jsp page. and in my
action I have
if(isCancelled(request)){
 return mapping.findForward(index); 
}

But it is not working. What am I doing wrong here.
I





am using Struts 1.1
final
Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-





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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
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: Cancel button not working?

2003-07-09 Thread Chen, Gin
Why not just extend the RequestProcessor with your own (fixed)
implementation.
Makes more sense then recompiling the source.
We do this all the time for authentication filters etc.
-Tim

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:34 PM
To: Struts Users Mailing List
Subject: Re: Cancel button not working?


I think the only way you will solve this is by downloading the source 
and putting some logging statnements in there.  It's easy enough to use 
the struts source by putting the 
org/apache/struts/action/RequestProcessor.java in your own source 
directory and recompiling and deploying. I don't think you need the 
whole lot.

Here's my base action class for what its worth
Adam

Sashi Ravipati wrote:
 I check the first thing u asked and it is same 
 i.e
 org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY ==
 org.apache.struts.taglib.html.CANCEL
 
 and regarding the processPopulate(), I am not sure how I can do this.
 
 I just downloaded the Struts 1.1 final again and tested but the result
 is the same. 
 
 Could u send me the Code u have in your action class. I will try to see
 if I missed some thing.
 
 Thanks
 
 
 
[EMAIL PROTECTED] 07/09/03 11:54AM 
 
 Via logging is basically how I solved it - by figuring out where in 
 struts I was going wrong.
 
 What it means now is that RequestProcessor is not setting that attribute
 
 - you don't need to set it by hand, struts should.
 
 It's just one little if clause. According to your logging, 
 request.getParameter(org.apache.struts.taglib.html.CANCEL) has a 
 value, right? The parameter is not null?
 
 If the parameter is not null but the attribute is null, that means that 
 you have either not got the same struts code as me (1.1 final) or your 
 RequestProcessor is not executing the processPopulate() method.
 
 I would check 2 things:
 
 that org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY == 
 org.apache.struts.taglib.html.CANCEL  (i.e. that the parameter name / 
 cancel button name in your HTML is correct)
 
 and that RequestProcessor.processPopulate() is executing. This method 
 also puts the data into the action form, so you could use that as a 
 check unless you can grab the source code and put some logging in there.
 
 As you can tell I'm intrigued.
 Adam
 
 Sashi Ravipati wrote:
 
request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I
 
 set
 
it to not null and where Should I do this..

Can u explain how u solved ur problem..

Thanks



[EMAIL PROTECTED] 07/09/03 11:22AM 

I've solved my problem. Now you've checked the parameter, check to see
 
 
if the request.attribute is set with
request.getAttribute(Globals.CANCEL_KEY);

For some reason in the RequestProcessor it sets this attribute to true
 
 
when the request.parameter is present. Check it out. This is the one 
that the Action.isCancelled() checks. It has to be not null.


Adam

Sashi Ravipati wrote:


it says - Cancel 

I don't know what I am missing which is making this tag not work..

Thanks






[EMAIL PROTECTED] 07/09/03 09:50AM 

Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you are


calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try

it 


myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:



HTML is as shown below

input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;

[EMAIL PROTECTED] 07/09/03 09:21AM 

Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:




I am trying this on Struts 1.1 final. Will this make any
 
 difference..
 





[EMAIL PROTECTED] 07/08/03 05:11PM 

Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:





This is how I have my cancel tag.

html:cancel
bean:message key=button.cancel/
/html:cancel

[EMAIL PROTECTED] 07/08/03 02:27PM 

The complete content of your html:cancel tag is
probably key to solving this problem.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:





isCancelled(request) is always returning false
(Even when cancel button
is clicked)

Need some help...

Thanks







[EMAIL PROTECTED] 07/08/03 09:10AM 

I have a html:cancel in my jsp page. and in my
action I have

if(isCancelled(request)){
  return mapping.findForward(index); 
}


But it is not working. What am I doing wrong here.

I





am using Struts 1.1
final

Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



-





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




__
Do

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
Thanks for the attachment , 

but this is interesting

cancel button  works fine in Struts 1.1b2 and when I have
replaced the .jar files with Struts final 1.1 (Downloaded on July 3rd)
it
does not work.

Also the HTML version of the tags is different

in 1.1 Beta2 it is 
input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel

in Strits 1.1 final it is
input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;

Another problem I realised now is that the Validate method is also
called in case of cancel button which shouldnt happen.

Thanks


 [EMAIL PROTECTED] 07/09/03 04:34PM 
I think the only way you will solve this is by downloading the source 
and putting some logging statnements in there.  It's easy enough to use 
the struts source by putting the 
org/apache/struts/action/RequestProcessor.java in your own source 
directory and recompiling and deploying. I don't think you need the 
whole lot.

Here's my base action class for what its worth
Adam

Sashi Ravipati wrote:
 I check the first thing u asked and it is same 
 i.e
 org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY ==
 org.apache.struts.taglib.html.CANCEL
 
 and regarding the processPopulate(), I am not sure how I can do this.
 
 I just downloaded the Struts 1.1 final again and tested but the result
 is the same. 
 
 Could u send me the Code u have in your action class. I will try to
see
 if I missed some thing.
 
 Thanks
 
 
 
[EMAIL PROTECTED] 07/09/03 11:54AM 
 
 Via logging is basically how I solved it - by figuring out where in 
 struts I was going wrong.
 
 What it means now is that RequestProcessor is not setting that
attribute
 
 - you don't need to set it by hand, struts should.
 
 It's just one little if clause. According to your logging, 
 request.getParameter(org.apache.struts.taglib.html.CANCEL) has a 
 value, right? The parameter is not null?
 
 If the parameter is not null but the attribute is null, that means
that 
 you have either not got the same struts code as me (1.1 final) or your

 RequestProcessor is not executing the processPopulate() method.
 
 I would check 2 things:
 
 that org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY == 
 org.apache.struts.taglib.html.CANCEL  (i.e. that the parameter name
/ 
 cancel button name in your HTML is correct)
 
 and that RequestProcessor.processPopulate() is executing. This method 
 also puts the data into the action form, so you could use that as a 
 check unless you can grab the source code and put some logging in
there.
 
 As you can tell I'm intrigued.
 Adam
 
 Sashi Ravipati wrote:
 
request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I
 
 set
 
it to not null and where Should I do this..

Can u explain how u solved ur problem..

Thanks



[EMAIL PROTECTED] 07/09/03 11:22AM 

I've solved my problem. Now you've checked the parameter, check to see
 
 
if the request.attribute is set with
request.getAttribute(Globals.CANCEL_KEY);

For some reason in the RequestProcessor it sets this attribute to true
 
 
when the request.parameter is present. Check it out. This is the one 
that the Action.isCancelled() checks. It has to be not null.


Adam

Sashi Ravipati wrote:


it says - Cancel 

I don't know what I am missing which is making this tag not work..

Thanks






[EMAIL PROTECTED] 07/09/03 09:50AM 

Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you
are


calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try

it 


myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:



HTML is as shown below

input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;

[EMAIL PROTECTED] 07/09/03 09:21AM 

Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:




I am trying this on Struts 1.1 final. Will this make any
 
 difference..
 





[EMAIL PROTECTED] 07/08/03 05:11PM 

Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:





This is how I have my cancel tag.

html:cancel
bean:message key=button.cancel/
/html:cancel

[EMAIL PROTECTED] 07/08/03 02:27PM 

The complete content of your html:cancel tag is
probably key to solving this problem.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:





isCancelled(request) is always returning false
(Even when cancel button
is clicked)

Need some help...

Thanks







[EMAIL PROTECTED] 07/08/03 09:10AM 

I have a html:cancel in my jsp page. and in my
action I have

if(isCancelled(request)){
  return mapping.findForward(index); 
}


But it is not working. What am I doing wrong here.

I





am using Struts 1.1
final

Thanks



__
Do you Yahoo!?
SBC 

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
Hi Tim,
I guess the way I litter my code with debugging log statements is not 
the way you debug  - just overriding a function wouldn't get me very 
far.  But each to his own.

Adam
Chen, Gin wrote:
Why not just extend the RequestProcessor with your own (fixed)
implementation.
Makes more sense then recompiling the source.
We do this all the time for authentication filters etc.
-Tim
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:34 PM
To: Struts Users Mailing List
Subject: Re: Cancel button not working?
I think the only way you will solve this is by downloading the source 
and putting some logging statnements in there.  It's easy enough to use 
the struts source by putting the 
org/apache/struts/action/RequestProcessor.java in your own source 
directory and recompiling and deploying. I don't think you need the 
whole lot.

Here's my base action class for what its worth
Adam
Sashi Ravipati wrote:

I check the first thing u asked and it is same 
i.e
org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY ==
org.apache.struts.taglib.html.CANCEL

and regarding the processPopulate(), I am not sure how I can do this.

I just downloaded the Struts 1.1 final again and tested but the result
is the same. 

Could u send me the Code u have in your action class. I will try to see
if I missed some thing.
Thanks




[EMAIL PROTECTED] 07/09/03 11:54AM 
Via logging is basically how I solved it - by figuring out where in 
struts I was going wrong.

What it means now is that RequestProcessor is not setting that attribute

- you don't need to set it by hand, struts should.

It's just one little if clause. According to your logging, 
request.getParameter(org.apache.struts.taglib.html.CANCEL) has a 
value, right? The parameter is not null?

If the parameter is not null but the attribute is null, that means that 
you have either not got the same struts code as me (1.1 final) or your 
RequestProcessor is not executing the processPopulate() method.

I would check 2 things:

that org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY == 
org.apache.struts.taglib.html.CANCEL  (i.e. that the parameter name / 
cancel button name in your HTML is correct)

and that RequestProcessor.processPopulate() is executing. This method 
also puts the data into the action form, so you could use that as a 
check unless you can grab the source code and put some logging in there.

As you can tell I'm intrigued.
Adam
Sashi Ravipati wrote:


request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I
set


it to not null and where Should I do this..

Can u explain how u solved ur problem..

Thanks




[EMAIL PROTECTED] 07/09/03 11:22AM 
I've solved my problem. Now you've checked the parameter, check to see


if the request.attribute is set with
request.getAttribute(Globals.CANCEL_KEY);
For some reason in the RequestProcessor it sets this attribute to true


when the request.parameter is present. Check it out. This is the one 
that the Action.isCancelled() checks. It has to be not null.

Adam

Sashi Ravipati wrote:



it says - Cancel 

I don't know what I am missing which is making this tag not work..

Thanks







[EMAIL PROTECTED] 07/09/03 09:50AM 
Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you are


calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try
it 



myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:




HTML is as shown below

input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;
[EMAIL PROTECTED] 07/09/03 09:21AM 
Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:





I am trying this on Struts 1.1 final. Will this make any
difference..






[EMAIL PROTECTED] 07/08/03 05:11PM 
Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:






This is how I have my cancel tag.

html:cancel
  bean:message key=button.cancel/
/html:cancel
[EMAIL PROTECTED] 07/08/03 02:27PM 
The complete content of your html:cancel tag is
probably key to solving this problem.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:






isCancelled(request) is always returning false
(Even when cancel button
is clicked)
Need some help...

Thanks








[EMAIL PROTECTED] 07/08/03 09:10AM 
I have a html:cancel in my jsp page. and in my
action I have
if(isCancelled(request)){
return mapping.findForward(index); 
}

But it is not working. What am I doing wrong here.
I






am using Struts 1.1
final
Thanks



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
It's to be expected that the validate won't be called, since it makes 
the same test as isCancelled() to check whether to run the form's validate.

The extra javascript for the onclick event stops any javascript 
validation from the validator plug-in from running. I doubt it's 
relevant here.

You really need to get into that RequestProcessor.processPopulate() 
method to debug it in any way you find to your liking. That's the crux 
of the matter here. You've got the 'cancelled' request parameter, but 
you haven't got the 'cancelled' request attribute, and it's that method 
that is meant to create the attribute.

Good luck,
Adam
Sashi Ravipati wrote:
Thanks for the attachment , 

but this is interesting

cancel button  works fine in Struts 1.1b2 and when I have
replaced the .jar files with Struts final 1.1 (Downloaded on July 3rd)
it
does not work.
Also the HTML version of the tags is different

in 1.1 Beta2 it is 
input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel

in Strits 1.1 final it is
input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;
Another problem I realised now is that the Validate method is also
called in case of cancel button which shouldnt happen.
Thanks



[EMAIL PROTECTED] 07/09/03 04:34PM 
I think the only way you will solve this is by downloading the source 
and putting some logging statnements in there.  It's easy enough to use 
the struts source by putting the 
org/apache/struts/action/RequestProcessor.java in your own source 
directory and recompiling and deploying. I don't think you need the 
whole lot.

Here's my base action class for what its worth
Adam
Sashi Ravipati wrote:

I check the first thing u asked and it is same 
i.e
org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY ==
org.apache.struts.taglib.html.CANCEL

and regarding the processPopulate(), I am not sure how I can do this.

I just downloaded the Struts 1.1 final again and tested but the result
is the same. 

Could u send me the Code u have in your action class. I will try to
see

if I missed some thing.

Thanks




[EMAIL PROTECTED] 07/09/03 11:54AM 
Via logging is basically how I solved it - by figuring out where in 
struts I was going wrong.

What it means now is that RequestProcessor is not setting that
attribute

- you don't need to set it by hand, struts should.

It's just one little if clause. According to your logging, 
request.getParameter(org.apache.struts.taglib.html.CANCEL) has a 
value, right? The parameter is not null?

If the parameter is not null but the attribute is null, that means
that 

you have either not got the same struts code as me (1.1 final) or your


RequestProcessor is not executing the processPopulate() method.

I would check 2 things:

that org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY == 
org.apache.struts.taglib.html.CANCEL  (i.e. that the parameter name
/ 

cancel button name in your HTML is correct)

and that RequestProcessor.processPopulate() is executing. This method 
also puts the data into the action form, so you could use that as a 
check unless you can grab the source code and put some logging in
there.

As you can tell I'm intrigued.
Adam
Sashi Ravipati wrote:


request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I
set


it to not null and where Should I do this..

Can u explain how u solved ur problem..

Thanks




[EMAIL PROTECTED] 07/09/03 11:22AM 
I've solved my problem. Now you've checked the parameter, check to see


if the request.attribute is set with
request.getAttribute(Globals.CANCEL_KEY);
For some reason in the RequestProcessor it sets this attribute to true


when the request.parameter is present. Check it out. This is the one 
that the Action.isCancelled() checks. It has to be not null.

Adam

Sashi Ravipati wrote:



it says - Cancel 

I don't know what I am missing which is making this tag not work..

Thanks







[EMAIL PROTECTED] 07/09/03 09:50AM 
Try logging what is in this cancel parameter 
(org.apache.struts.taglib.html.CANCEL) in the same place where you
are


calling isCancelled()

Actually I've just realised I'm suffering the same problem. I'll try
it 



myself. Let me know what you find as well!

Adam

Sashi Ravipati wrote:




HTML is as shown below

input type=submit name=org.apache.struts.taglib.html.CANCEL
value=Cancel onclick=bCancel=true;
[EMAIL PROTECTED] 07/09/03 09:21AM 
Sashi, what HTML does the tag produce?

Adam

Sashi Ravipati wrote:





I am trying this on Struts 1.1 final. Will this make any
difference..






[EMAIL PROTECTED] 07/08/03 05:11PM 
Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.
m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:






This is how I have my cancel tag.

html:cancel
  bean:message key=button.cancel/
/html:cancel
[EMAIL PROTECTED] 

Re: Cancel button not working?

2003-07-09 Thread Kris Schneider
In the example app that ships with Struts, both SaveRegistrationAction and
SaveSubscriptionAction use isCancelled. You should see a message logged like:

Transaction '...' was cancelled

if it's working properly. For a sanity check, try deploying struts-example.war
and see what happens.

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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



Re: Cancel button not working?

2003-07-08 Thread Sashi Ravipati

 isCancelled(request) is always returning false (Even when cancel button
is clicked)

Need some help...

Thanks


 [EMAIL PROTECTED] 07/08/03 09:10AM 
I have a html:cancel in my jsp page. and in my action I have

if(isCancelled(request)){
  return mapping.findForward(index); 
}


But it is not working. What am I doing wrong here. I am using Struts 1.1
final

Thanks


Re: Cancel button not working?

2003-07-08 Thread Michael Ruppin
The complete content of your html:cancel tag is
probably key to solving this problem.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:
 
  isCancelled(request) is always returning false
 (Even when cancel button
 is clicked)
 
 Need some help...
 
 Thanks
 
 
  [EMAIL PROTECTED] 07/08/03 09:10AM 
 I have a html:cancel in my jsp page. and in my
 action I have
 
 if(isCancelled(request)){
   return mapping.findForward(index); 
 }
 
 
 But it is not working. What am I doing wrong here. I
 am using Struts 1.1
 final
 
 Thanks
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Cancel button not working?

2003-07-08 Thread Sashi Ravipati
This is how I have my cancel tag.

html:cancel
bean:message key=button.cancel/
  /html:cancel

 [EMAIL PROTECTED] 07/08/03 02:27PM 
The complete content of your html:cancel tag is
probably key to solving this problem.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:
 
  isCancelled(request) is always returning false
 (Even when cancel button
 is clicked)
 
 Need some help...
 
 Thanks
 
 
  [EMAIL PROTECTED] 07/08/03 09:10AM 
 I have a html:cancel in my jsp page. and in my
 action I have
 
 if(isCancelled(request)){
   return mapping.findForward(index); 
 }
 
 
 But it is not working. What am I doing wrong here. I
 am using Struts 1.1
 final
 
 Thanks
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Re: Cancel button not working?

2003-07-08 Thread Michael Ruppin
Odd, I can't reproduce that in 1.1-rc1.  Unless you're
extending something which might override the
isCancelled(HttpServletRequest) method, or the
html:cancel tag is not contained within an html:form
tag, I can't think of anything else.

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:
 This is how I have my cancel tag.
 
 html:cancel
 bean:message key=button.cancel/
   /html:cancel
 
  [EMAIL PROTECTED] 07/08/03 02:27PM 
 The complete content of your html:cancel tag is
 probably key to solving this problem.
 
 m
 
 --- Sashi Ravipati [EMAIL PROTECTED] wrote:
  
   isCancelled(request) is always returning false
  (Even when cancel button
  is clicked)
  
  Need some help...
  
  Thanks
  
  
   [EMAIL PROTECTED] 07/08/03 09:10AM 
  I have a html:cancel in my jsp page. and in my
  action I have
  
  if(isCancelled(request)){
return mapping.findForward(index); 
  }
  
  
  But it is not working. What am I doing wrong here.
 I
  am using Struts 1.1
  final
  
  Thanks
  
 
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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