Re: [S2] Exploding memory usage with JBoss5

2009-01-24 Thread Wolfgang Knauf
Just to give some more information (maybe someone with more in-depth 
knowledge finds the time to take a look at this issue):


I have an EAR file with two EJB3 entity beans and a web client WAR.
It can be found here:
http://www.informatik.fh-wiesbaden.de/~knauf/KomponentenArchitekturen2008/kuchenzutatstruts/KuchenZutatStruts.ear
On copying it to the deploy directory of JBoss, memory usage increases 
by 20 MB. On calling the first struts page 
(http://localhost:8080/KuchenZutatStrutsWeb/ - then click the link on 
the index page), memory usage increases by another 30 MB.
This happens with every redeploy, at least during normal 
developing/testing cycles, which means one redeploy every few minutes. 
If I wait on longer period until the next redeploy, memory usage might 
decrease again.
But after 5-10 redeploys without longer pauses between (which is normal 
when trying to find/fix bugs), the machine is constantly swapping, and 
the app is poorly slow.


I suspect a JBoss 5 problem, but as I have only very basic struts 
knowledge, I don't know enough about the internals to file a struts or 
jboss JIRA.


Thanks

Wolfgang Knauf

Wolfgang Knauf wrote:

Hi all,

I have a quite small Struts 2 application running on a JBoss 5.0GA.
It contains some EJB3 entity beans, an EJB3 session bean, a handful of 
struts actions and three JSPs.
After about 5 redeploys (I use JSR88), JBoss is consuming more and more 
memory (500MB) and thus getting poorly slow.

The system is Windows XP64, JDK 1.6, deployment from Eclipse 3.4/WTP 3.0.
All my other small apps don't show this behaviour, it happens only with 
struts 2.


Has anybody seen this behavior, and has any ideas?

Thanks

Wolfgang



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts 2 Performance

2009-01-24 Thread Matthew Seaborn
What's the latest news on the Struts 2 rendering performance issues?  A browse 
through the issue log suggests that despite a number of releases it still 
hasn't been resolved.

https://issues.apache.org/struts/browse/WW-2128

https://issues.apache.org/struts/browse/WW-2808

The proposed solution appears to be an upgrade to OGNL 2.7 but this doesn't 
appear to be planned until 
v2.5.xhttps://issues.apache.org/struts/browse/WW-2128?focusedCommentId=44204#action_44204.


Matthew Seaborn
Software Architect
t+44(0) 208 484 0729
m  +44(0) 7949 465 142
e   matthew.seab...@performgroup.commailto:%3cyourname...@performgroup.com


[cid:image001.jpg@01C97E29.18C8C6E0]http://www.performgroup.com/
Sussex House
Plane Tree Crescent
London, TW13 7HE
United Kingdom
www.performgroup.comhttp://www.performgroup.com/



 [cid:image002.gif@01C97E29.18C8C6E0] http://www.omnisport.tv/ 
[cid:image003.gif@01C97E29.18C8C6E0] http://www.watchandbet.tv/






CONFIDENTIALITY - This email and any files transmitted with it, are 
confidential, may be legally privileged and are intended solely for the use of 
the individual or entity to whom they are addressed. If this has come to you in 
error, you must not copy, distribute, disclose or use any of the information it 
contains. Please notify the sender immediately and delete them from your system.

SECURITY - Please be aware that communication by email, by its very nature, is 
not 100% secure and by communicating with Perform Group by email you consent to 
us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence of 
computer viruses, the sender accepts no liability for any damage sustained as a 
result of a computer virus and it is the recipient’s responsibility to ensure 
that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely those of 
the sender and do not necessarily represent those of Perform Group.

COPYRIGHT - Copyright of this email and any attachments belongs to Perform 
Group, Companies House Registration number 6324278.

Upgrading Struts 2

2009-01-24 Thread Matthew Seaborn
We are currently running 2.0.11 and having been away from Struts 2 for a while 
I was pleased to a see a number of new releases.

Has anyone done an upgrade to either 2.0.14 or 2.1.6 from a 2.0.x release?   If 
so how smooth was the transition?

Matthew Seaborn
Software Architect
t+44(0) 208 484 0729
m  +44(0) 7949 465 142
e   matthew.seab...@performgroup.commailto:%3cyourname...@performgroup.com


[cid:image001.jpg@01C97E29.94BE05D0]http://www.performgroup.com/
Sussex House
Plane Tree Crescent
London, TW13 7HE
United Kingdom
www.performgroup.comhttp://www.performgroup.com/



 [cid:image002.gif@01C97E29.94BE05D0] http://www.omnisport.tv/ 
[cid:image003.gif@01C97E29.94BE05D0] http://www.watchandbet.tv/






CONFIDENTIALITY - This email and any files transmitted with it, are 
confidential, may be legally privileged and are intended solely for the use of 
the individual or entity to whom they are addressed. If this has come to you in 
error, you must not copy, distribute, disclose or use any of the information it 
contains. Please notify the sender immediately and delete them from your system.

SECURITY - Please be aware that communication by email, by its very nature, is 
not 100% secure and by communicating with Perform Group by email you consent to 
us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence of 
computer viruses, the sender accepts no liability for any damage sustained as a 
result of a computer virus and it is the recipient’s responsibility to ensure 
that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely those of 
the sender and do not necessarily represent those of Perform Group.

COPYRIGHT - Copyright of this email and any attachments belongs to Perform 
Group, Companies House Registration number 6324278.

RE: Struts 2 Performance

2009-01-24 Thread Matthew Seaborn
We are currently running on 2.0.11, have there been any performance 
improvements  in subsequent releases?

From: Matthew Seaborn
Sent: 24 January 2009 13:39
To: Struts Users Mailing List
Subject: Struts 2 Performance

What's the latest news on the Struts 2 rendering performance issues?  A browse 
through the issue log suggests that despite a number of releases it still 
hasn't been resolved.

https://issues.apache.org/struts/browse/WW-2128

https://issues.apache.org/struts/browse/WW-2808

The proposed solution appears to be an upgrade to OGNL 2.7 but this doesn't 
appear to be planned until 
v2.5.xhttps://issues.apache.org/struts/browse/WW-2128?focusedCommentId=44204#action_44204.


Matthew Seaborn
Software Architect
t+44(0) 208 484 0729
m  +44(0) 7949 465 142
e   matthew.seab...@performgroup.commailto:%3cyourname...@performgroup.com


[cid:image001.jpg@01C97E2A.080A2AA0]http://www.performgroup.com/
Sussex House
Plane Tree Crescent
London, TW13 7HE
United Kingdom
www.performgroup.comhttp://www.performgroup.com/



 [cid:image002.gif@01C97E2A.080A2AA0] http://www.omnisport.tv/ 
[cid:image003.gif@01C97E2A.080A2AA0] http://www.watchandbet.tv/






CONFIDENTIALITY - This email and any files transmitted with it, are 
confidential, may be legally privileged and are intended solely for the use of 
the individual or entity to whom they are addressed. If this has come to you in 
error, you must not copy, distribute, disclose or use any of the information it 
contains. Please notify the sender immediately and delete them from your system.

SECURITY - Please be aware that communication by email, by its very nature, is 
not 100% secure and by communicating with Perform Group by email you consent to 
us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence of 
computer viruses, the sender accepts no liability for any damage sustained as a 
result of a computer virus and it is the recipient’s responsibility to ensure 
that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely those of 
the sender and do not necessarily represent those of Perform Group.

COPYRIGHT - Copyright of this email and any attachments belongs to Perform 
Group, Companies House Registration number 6324278.

Re: Upgrading Struts 2

2009-01-24 Thread Andy Sykes

Hi,

We've migrated an app from 2.0.11 to 2.1.2 (and then to 2.1.6 when it  
became GA - this was a trivial upgrade).


I found this article on the Apache wiki very useful: 
http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html

I had no major issues - and the performance of app 'seemed' a bit  
quicker (I've done no definitive tests, but the 'feel' was of snappier  
rendering). The only problem I ran into was where I had some nasty  
hack for passing dynamic parameters to an action through redirect- 
action - I was doing it in a non-standard way, which worked in 2.0.11.  
It was a quick fix to change it to the proper way to do it.


Andy.

On 24 Jan 2009, at 13:42, Matthew Seaborn wrote:

We are currently running 2.0.11 and having been away from Struts 2  
for a while I was pleased to a see a number of new releases.


Has anyone done an upgrade to either 2.0.14 or 2.1.6 from a 2.0.x  
release?   If so how smooth was the transition?


Matthew Seaborn
Software Architect
t+44(0) 208 484 0729
m  +44(0) 7949 465 142
e   matthew.seab...@performgroup.com

Sussex House
Plane Tree Crescent
London, TW13 7HE
United Kingdom
www.performgroup.com







CONFIDENTIALITY - This email and any files transmitted with it, are  
confidential, may be legally privileged and are intended solely for  
the use of the individual or entity to whom they are addressed. If  
this has come to you in error, you must not copy, distribute,  
disclose or use any of the information it contains. Please notify  
the sender immediately and delete them from your system.


SECURITY - Please be aware that communication by email, by its very  
nature, is not 100% secure and by communicating with Perform Group  
by email you consent to us monitoring and reading any such  
correspondence.


VIRUSES - Although this email message has been scanned for the  
presence of computer viruses, the sender accepts no liability for  
any damage sustained as a result of a computer virus and it is the  
recipient’s responsibility to ensure that email is virus free.


AUTHORITY - Any views or opinions expressed in this email are solely  
those of the sender and do not necessarily represent those of  
Perform Group.


COPYRIGHT - Copyright of this email and any attachments belongs to  
Perform Group, Companies House Registration number 6324278.




Re: [S2] Exploding memory usage with JBoss5

2009-01-24 Thread Wolfgang Knauf
Just to give some more information (maybe someone with more in-depth 
knowledge finds the time to take a look at this issue):






On copying it to the deploy directory of JBoss, memory usage increases 
by 20 MB. On calling the first struts page 
(http://localhost:8080/KuchenZutatStrutsWeb/ - then click the link on 
the index page), memory usage increases by another 30 MB.


I have the same app in a JSF version (same ejb layer, but different web 
client), and there I did not have memory problems. So I would remove the 
ejb layer from the suspects list ;-).
With a plain WAR file, memory usage increases by 20MB on deploy, but 
only by 5 on calling the first page. So the maximum is not reached as 
quick as with the EAR file. But the same tendency can be seen: memory 
increases on each redeploy, and sometimes goes down, but mostly it is 
growing.


Wolfgang


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Only call actions from certain forms

2009-01-24 Thread Dave Newton

Andy Sykes wrote:
Cheers for the suggestions - I guess I was just looking for a sanity 
check from the list.


It seems reasonable to me--the functionality *could* be wrapped up in an 
interceptor, which might be marginally cleaner, but it's one of those 
judgment calls that in real life I probably wouldn't care much about.


The reasoning behind wanting to do this is my users are somewhat 
curious, and are prone to poking. I'd prefer for them to not see blank 
pages, stack traces, or otherwise!


Darn users... this is a pretty typical requirement and is one of the 
reason workflow engines came about; they can handle simple cases like 
this as well as disallowing jumps into the middle of multi-step 
processes etc.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



how to redirect from prepare() method in struts 2

2009-01-24 Thread sagsai

Hello friends,
I have very little experience in struts 2  I have this typical requirement
where I feel that I have to redirect form the prepare() method when the user
is not logged in (by checking whether some session entries present or not).
Actually I am trying to avoid repetitive session checking  redirecting at
the beginning of every action method, for example
public String listUsers() throes Exception
{
//if (session.get(userType) != null 
session.get(userType).equals(admin))
//then show the result
   //otherwise redirect to the login page
}

public String viewDetails() throes Exception
{
//again code for the same checking
}
so I thought that since the prepare() method is being called every time some
action is being mapped to a method in this class so why not put the code for
checking  redirecting inside of prepare
like,
public void prepare() throws Exception
{
//if the user is not logged in
//redirect to the login page
}

But the problem is that I cannot return any string (which I can specify as
result of type redirect-action in the struts.xml file)since this function
has return type void also I could not find any method to redirect forcibly.

So, my question is whether it is possible to redirect form any method which
has not been mapped as an action at all?
if it can be done then how to do it?

Any ideas regarding this problem would really help.
Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/how-to-redirect-from-prepare%28%29-method-in-struts-2-tp21643785p21643785.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Dave Newton
It would be much cleaner to put that kind of logic into an interceptor 
rather than in a prepare() method. It would cut down significantly on 
code duplication.


Dave

sagsai wrote:

Hello friends,
I have very little experience in struts 2  I have this typical requirement
where I feel that I have to redirect form the prepare() method when the user
is not logged in (by checking whether some session entries present or not).
Actually I am trying to avoid repetitive session checking  redirecting at
the beginning of every action method, for example
public String listUsers() throes Exception
{
//if (session.get(userType) != null 
session.get(userType).equals(admin))
//then show the result
   //otherwise redirect to the login page
}

public String viewDetails() throes Exception
{
//again code for the same checking
}
so I thought that since the prepare() method is being called every time some
action is being mapped to a method in this class so why not put the code for
checking  redirecting inside of prepare
like,
public void prepare() throws Exception
{
//if the user is not logged in
//redirect to the login page
}

But the problem is that I cannot return any string (which I can specify as
result of type redirect-action in the struts.xml file)since this function
has return type void also I could not find any method to redirect forcibly.

So, my question is whether it is possible to redirect form any method which
has not been mapped as an action at all?
if it can be done then how to do it?

Any ideas regarding this problem would really help.
Thanks in advance



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread sagsai

Thank you Dave,
feel like have to spend some time reading some books (which I really hate to
do) on struts like struts 2 in action :-(



newton.dave wrote:
 
 It would be much cleaner to put that kind of logic into an interceptor 
 rather than in a prepare() method. It would cut down significantly on 
 code duplication.
 
 Dave
 
 sagsai wrote:
 Hello friends,
 I have very little experience in struts 2  I have this typical
 requirement
 where I feel that I have to redirect form the prepare() method when the
 user
 is not logged in (by checking whether some session entries present or
 not).
 Actually I am trying to avoid repetitive session checking  redirecting
 at
 the beginning of every action method, for example
 public String listUsers() throes Exception
 {
 //if (session.get(userType) != null 
 session.get(userType).equals(admin))
 //then show the result
//otherwise redirect to the login page
 }
 
 public String viewDetails() throes Exception
 {
 //again code for the same checking
 }
 so I thought that since the prepare() method is being called every time
 some
 action is being mapped to a method in this class so why not put the code
 for
 checking  redirecting inside of prepare
 like,
 public void prepare() throws Exception
 {
 //if the user is not logged in
 //redirect to the login page
 }
 
 But the problem is that I cannot return any string (which I can specify
 as
 result of type redirect-action in the struts.xml file)since this
 function
 has return type void also I could not find any method to redirect
 forcibly.
 
 So, my question is whether it is possible to redirect form any method
 which
 has not been mapped as an action at all?
 if it can be done then how to do it?
 
 Any ideas regarding this problem would really help.
 Thanks in advance
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-redirect-from-prepare%28%29-method-in-struts-2-tp21643785p21644051.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Dave Newton

sagsai wrote:

Thank you Dave,
feel like have to spend some time reading some books (which I really hate to
do) on struts like struts 2 in action :-(


The Struts 2 documentation wiki covers an awful lot of the frameworks, 
combined with the sample applications there's quite a bit of information 
available for free (and not on paper).


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread sagsai

Thank you again,
You saved me a lot of pain :-)


newton.dave wrote:
 
 sagsai wrote:
 Thank you Dave,
 feel like have to spend some time reading some books (which I really hate
 to
 do) on struts like struts 2 in action :-(
 
 The Struts 2 documentation wiki covers an awful lot of the frameworks, 
 combined with the sample applications there's quite a bit of information 
 available for free (and not on paper).
 
 Dave
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-redirect-from-prepare%28%29-method-in-struts-2-tp21643785p21644192.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



s:radio on multiple lines

2009-01-24 Thread Daniel Ruan
Hi There,

I'd like to create a group of radio buttons, one on each line, because the
label is lengthy.  By default, s:radio puts all radios on one single line.
How do I change that?

Thanks,

Daniel


RE: how to redirect from prepare() method in struts 2

2009-01-24 Thread Andy

Just got done reading Struts2 In Action and highly recommend it, as well as the 
documentation :)



 From: w...@wantii.com
 To: user@struts.apache.org
 Subject: Re: how to redirect from prepare() method in struts 2
 Date: Sat, 24 Jan 2009 14:48:53 -0500
 
 On Saturday 24 January 2009 14:11:44 Dave Newton wrote:
  sagsai wrote:
   Thank you Dave,
   feel like have to spend some time reading some books (which I really hate
   to do) on struts like struts 2 in action :-(
 
  The Struts 2 documentation wiki covers an awful lot of the frameworks,
  combined with the sample applications there's quite a bit of information
  available for free (and not on paper).
 
  Dave
 
 Awww... Come on, Dave... If the guy wants to buy a book, I don't see a 
 problem 
 with that!
 
 -Wes
 -- 
 
 Wes Wannemacher
 Author - Struts 2 In Practice 
 Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
 http://www.manning.com/wannemacher
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 

_
Windows Live™: E-mail. Chat. Share. Get more ways to connect. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_allup_howitworks_012009

Re: s:radio on multiple lines

2009-01-24 Thread Lukasz Lenart
2009/1/24 Daniel Ruan danielr...@gmail.com:
 I'd like to create a group of radio buttons, one on each line, because the
 label is lengthy.  By default, s:radio puts all radios on one single line.
 How do I change that?

Use them=simple instead of xhtml


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: s:radio on multiple lines

2009-01-24 Thread Daniel Ruan
The simple theme does not work for me... My entire app uses the simple theme
(constant name=struts.ui.theme value=simple /).  I also tried
theme=simple at the s:radio level but to no avail.

Thanks,

Daniel

On Sat, Jan 24, 2009 at 3:00 PM, Lukasz Lenart lukasz.len...@googlemail.com
 wrote:

 2009/1/24 Daniel Ruan danielr...@gmail.com:
  I'd like to create a group of radio buttons, one on each line, because
 the
  label is lengthy.  By default, s:radio puts all radios on one single
 line.
  How do I change that?

 Use them=simple instead of xhtml


 Regards
 --
 Lukasz
 http://www.lenart.org.pl/

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: s:radio on multiple lines

2009-01-24 Thread Lukasz Lenart
2009/1/24 Daniel Ruan danielr...@gmail.com:
 The simple theme does not work for me... My entire app uses the simple theme
 (constant name=struts.ui.theme value=simple /).  I also tried
 theme=simple at the s:radio level but to no avail.

So then, put br/ tag after each.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Wes Wannemacher
On Saturday 24 January 2009 14:56:22 Andy wrote:
 Just got done reading Struts2 In Action and highly recommend it, as well as
 the documentation :)


I can say with confidence that the author is working hard to make the follow-
up a first class guide on some of the plugins like Conventions and Spring, as 
well as integrating s2.1 with things like JPA, JQuery, Sitemesh and many other 
things not covered in S2IA.

(Okay, I'll quit plugging now :) )

-Wes
-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



interceptor problem

2009-01-24 Thread François Rouxel
Hi,
here's my code.
I want to show an error message if it's impossible to commit.
and it works, but at the second time I submit.
the first time, it seems that it did not take it.. It shows the message  that I 
put in the action before...(inside the invoke...)
is it a stack problem?

can anybody help me?



 public String intercept(ActionInvocation invocation) throws Exception {
String retour = Action.ERROR;
try {
sf.getCurrentSession().beginTransaction();
retour = invocation.invoke();
sf.getCurrentSession().getTransaction().commit();
} catch(Exception e) {
try{
Transaction tx = sf.getCurrentSession().getTransaction();
if(tx != null  tx.isActive()) {
tx.rollback();
}
}catch (Exception e1) {
e1.printStackTrace();
}
retour = Action.ERROR;
MyActionSupport myActionSupport = (MyActionSupport) 
invocation.getAction();
myActionSupport.clearMessages();
myActionSupport.addActionError(error);
}
return retour;
}





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



I: model created more than 1 times

2009-01-24 Thread Gianluca Musella

Does someone can explain me this behaviour please?

I'm absolutely sure that my model is created more than one times. This
is a problem for me.

Can you explain me the lifecycle of the model?

Thanks in advance

Gianluca


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



ActionMapper doesn't add Parameter

2009-01-24 Thread Stephan Schröder

the objectiv is to be able to have url like .../public/123.mp3 so this
customized ActionMapper was written.

public class MyActionMapper extends DefaultActionMapper {

   static ActionMapper fallback = new DefaultActionMapper();

   private static String getSongIdFromUrl(String s, String regex){

   Matcher m = Pattern.compile(regex).matcher(s);
   return m.find() ? m.group(1) : null;
   }

   @Override
   public ActionMapping getMapping(HttpServletRequest request,
   ConfigurationManager configManager) {
   String uri = getUri(request);
   String regex = /public/(\\d+).mp3;
   String id = getSongIdFromUrl(uri, regex);
   if(id!=null){
   ActionMapping m = new ActionMapping();
   m.setExtension();
   m.setMethod(download);
   m.setNamespace(/public);
   m.setName(fileDownload);
   Map params = new TreeMap();
   params.put(id, id);
   m.setParams(params);
   return m;
   }
   return fallback.getMapping(request, configManager);
   }
}

the problem is, that the id-Attribute altough correctly extracted from the
url dosn't become part of the parameter-list. The url
.../public/123.mp3?id=123 works by the way but is of course redundant. Why
doesn't 

params.put(id, id);
m.setParams(params);

work?
-- 
View this message in context: 
http://www.nabble.com/ActionMapper-doesn%27t-add-Parameter-tp21645204p21645204.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: I: model created more than 1 times

2009-01-24 Thread Wes Wannemacher
On Saturday 24 January 2009 15:57:56 Gianluca Musella wrote:
 Does someone can explain me this behaviour please?

 I'm absolutely sure that my model is created more than one times. This
 is a problem for me.

 Can you explain me the lifecycle of the model?

 Thanks in advance

 Gianluca


Which version of struts are you using? There was a bug at some point where 
getModel() was called more than once, something like the following - 

if (getModel() != null) {
  model = getModel();
}

This came up a few times and prior to the fix, the workaround was to 
instantiate the model in a prepare() method. 

-Wes

-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread stanlick
Wes is right Dave... if the guy wants to buy a book, who are we to
discourage it?  Your demand will not be affected in the least!  Also, I
would like to give a shout out to the upcoming Struts 2 in Practice book.  I
have been reviewing it, and it absolutely rocks!  Of course my boy Wes
learned everything about the framework from reading Struts 2 in Action.

Peace (and Words),
Scott

On Sat, Jan 24, 2009 at 2:38 PM, Wes Wannemacher w...@wantii.com wrote:

 On Saturday 24 January 2009 14:56:22 Andy wrote:
  Just got done reading Struts2 In Action and highly recommend it, as well
 as
  the documentation :)
 

 I can say with confidence that the author is working hard to make the
 follow-
 up a first class guide on some of the plugins like Conventions and Spring,
 as
 well as integrating s2.1 with things like JPA, JQuery, Sitemesh and many
 other
 things not covered in S2IA.

 (Okay, I'll quit plugging now :) )

 -Wes
 --

 Wes Wannemacher
 Author - Struts 2 In Practice
 Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
 http://www.manning.com/wannemacher


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Dave Newton
The guy specifically said he wasn't psyched about reading a book. I 
provided alternatives. Life goes on.


stanl...@gmail.com wrote:

Wes is right Dave... if the guy wants to buy a book, who are we to
discourage it?  Your demand will not be affected in the least!  Also, I
would like to give a shout out to the upcoming Struts 2 in Practice book.  I
have been reviewing it, and it absolutely rocks!  Of course my boy Wes
learned everything about the framework from reading Struts 2 in Action.

Peace (and Words),
Scott

On Sat, Jan 24, 2009 at 2:38 PM, Wes Wannemacher w...@wantii.com wrote:


On Saturday 24 January 2009 14:56:22 Andy wrote:

Just got done reading Struts2 In Action and highly recommend it, as well

as

the documentation :)


I can say with confidence that the author is working hard to make the
follow-
up a first class guide on some of the plugins like Conventions and Spring,
as
well as integrating s2.1 with things like JPA, JQuery, Sitemesh and many
other
things not covered in S2IA.

(Okay, I'll quit plugging now :) )

-Wes
--

Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org







-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread stanlick
Can I ask a personal question Dave?  Does this have anything to do with your
illiteracy? :)

P.S. And why are you not finishing your leather bound volume?  I already
said I would pay in advance!

On Sat, Jan 24, 2009 at 3:28 PM, Dave Newton newton.d...@yahoo.com wrote:

 The guy specifically said he wasn't psyched about reading a book. I
 provided alternatives. Life goes on.


 stanl...@gmail.com wrote:

 Wes is right Dave... if the guy wants to buy a book, who are we to
 discourage it?  Your demand will not be affected in the least!  Also, I
 would like to give a shout out to the upcoming Struts 2 in Practice book.
  I
 have been reviewing it, and it absolutely rocks!  Of course my boy Wes
 learned everything about the framework from reading Struts 2 in Action.

 Peace (and Words),
 Scott

 On Sat, Jan 24, 2009 at 2:38 PM, Wes Wannemacher w...@wantii.com wrote:

  On Saturday 24 January 2009 14:56:22 Andy wrote:

 Just got done reading Struts2 In Action and highly recommend it, as well

 as

 the documentation :)

  I can say with confidence that the author is working hard to make the
 follow-
 up a first class guide on some of the plugins like Conventions and
 Spring,
 as
 well as integrating s2.1 with things like JPA, JQuery, Sitemesh and many
 other
 things not covered in S2IA.

 (Okay, I'll quit plugging now :) )

 -Wes
 --

 Wes Wannemacher
 Author - Struts 2 In Practice
 Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
 http://www.manning.com/wannemacher


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Wes Wannemacher
On Saturday 24 January 2009 17:05:04 stanl...@gmail.com wrote:

 P.S. And why are you not finishing your leather bound volume?  I already
 said I would pay in advance!


http://www.packtpub.com/apache-struts-2-web-application-development-beginners-
guide/book

/Speaking of buying books :)

I feel so dirty, now, having plugged my own book while Dave showed restraint 
and did the right thing :)

-Wes

-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Wes Wannemacher
On Saturday 24 January 2009 17:05:04 stanl...@gmail.com wrote:
 Can I ask a personal question Dave?  Does this have anything to do with
 your illiteracy? :)

 P.S. And why are you not finishing your leather bound volume?  I already
 said I would pay in advance!


On that same page...

Dave, did you write your own bio? Or, did you flame the database guy at Packt 
on this very list 

quote - 

He's a regular (if crabby) fixture on the Struts user mailing list, prodding 
people to read the documentation and think outside the box.

-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Dave Newton

Wes Wannemacher wrote:

On Saturday 24 January 2009 17:05:04 stanl...@gmail.com wrote:

P.S. And why are you not finishing your leather bound volume?  I already
said I would pay in advance!


Believe me--I've been trying :| It's been an... interesting process.


Dave, did you write your own bio?


How could you tell?

He's a regular (if crabby) fixture on the Struts user mailing list, prodding 
people to read the documentation and think outside the box.


Oh, that's how. I also snuck in a few Oh, snap!s up in thay-ure.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Only call actions from certain forms

2009-01-24 Thread Andy Sykes

Actually, having an interceptor makes some sense in this case.

How can interceptors short circuit the stack and action to return a  
result code? The ideal situation here would be that the protector  
interceptor is above the validation interceptor, checks for the form  
token, and chucks an error result code, protecting the validators from  
null parameters and so on.


I can't see anything in the documentation about achieving this - the  
ActionInvocation javadoc suggests that  
ActionInvocation.setResultCode() will not short-circuit the stack, and  
that the action's own result code will override the interceptor-set  
result.


Andy.

On 24 Jan 2009, at 17:56, Dave Newton wrote:


Andy Sykes wrote:
Cheers for the suggestions - I guess I was just looking for a  
sanity check from the list.


It seems reasonable to me--the functionality *could* be wrapped up  
in an interceptor, which might be marginally cleaner, but it's one  
of those judgment calls that in real life I probably wouldn't care  
much about.


The reasoning behind wanting to do this is my users are somewhat  
curious, and are prone to poking. I'd prefer for them to not see  
blank pages, stack traces, or otherwise!


Darn users... this is a pretty typical requirement and is one of the  
reason workflow engines came about; they can handle simple cases  
like this as well as disallowing jumps into the middle of multi-step  
processes etc.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Only call actions from certain forms

2009-01-24 Thread Wes Wannemacher
On Saturday 24 January 2009 20:17:49 Andy Sykes wrote:
 Actually, having an interceptor makes some sense in this case.

 How can interceptors short circuit the stack and action to return a
 result code? The ideal situation here would be that the protector
 interceptor is above the validation interceptor, checks for the form
 token, and chucks an error result code, protecting the validators from
 null parameters and so on.


Well, the invoke method returns a string indicating which result to dispatch 
to. Take a look at a few of the other interceptors to see. For instance, if 
validation fails, the validation interceptor returns input. 

 I can't see anything in the documentation about achieving this - the
 ActionInvocation javadoc suggests that
 ActionInvocation.setResultCode() will not short-circuit the stack, and
 that the action's own result code will override the interceptor-set
 result.


When an interceptor calls invocation.invoke() it either moves to the next 
interceptor, or calls the method, depending on where it is in the stack. It 
fairly intuitive. 

-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Only call actions from certain forms

2009-01-24 Thread Andy Sykes
Doh. I was being very stupid - I looked in the XWork source and  
realised it's really straightforward.


I'm blaming this one of lack of sleep :)

Cheers,
Andy.

On 25 Jan 2009, at 01:25, Wes Wannemacher wrote:


On Saturday 24 January 2009 20:17:49 Andy Sykes wrote:

Actually, having an interceptor makes some sense in this case.

How can interceptors short circuit the stack and action to return a
result code? The ideal situation here would be that the protector
interceptor is above the validation interceptor, checks for the form
token, and chucks an error result code, protecting the validators  
from

null parameters and so on.



Well, the invoke method returns a string indicating which result to  
dispatch
to. Take a look at a few of the other interceptors to see. For  
instance, if

validation fails, the validation interceptor returns input.


I can't see anything in the documentation about achieving this - the
ActionInvocation javadoc suggests that
ActionInvocation.setResultCode() will not short-circuit the stack,  
and

that the action's own result code will override the interceptor-set
result.



When an interceptor calls invocation.invoke() it either moves to the  
next
interceptor, or calls the method, depending on where it is in the  
stack. It

fairly intuitive.

--

Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and  
more

http://www.manning.com/wannemacher


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [S2] Store a request and invoke it later

2009-01-24 Thread Andreas Mähler

Thank you, Dave.

I think Martin misunderstood me. I was planning to store everything in 
the session anyway. What I would like to know is _what_ I have to store 
and _how_ to invoke the right action later in order to make the login 
stuff transparent.


Maybe I am also going to check out Spring Security, as Wes suggested, 
but ATM I am using my own little AuthenticationInterceptor that supplies 
every Action (if desired) with the UserLogin-bean and redirects to the 
login-action if the bean is mandatory (indicated by annotation). It's 
working nicely, and I would like to keep it :-)


Greetings,
~Andreas


Dave Newton schrieb:

Martin Gainty wrote:

1)store in db
2)if static.. place in properties file
3)you can use OGNL to place values into 'application' scope


...

3) Seems like 'session' would be more appropriate since we're talking 
about storing an individual user's request, to be re-used after a login. 
And it would be put into session by the interceptor that checked if the 
user was logged in, which wouldn't do it via OGNL.


2) It's unlikely a user's request would be known in advance.

1) I can't think of any reason why I'd want to store the request in a DB 
since it only needs to persist over login attempts.


Dave



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [S2] Store a request and invoke it later

2009-01-24 Thread Ralf Fischer

Hi Andreas,


Am 25.01.2009 um 02:53 schrieb Andreas Mähler:

Thank you, Dave.

I think Martin misunderstood me. I was planning to store everything  
in the session anyway. What I would like to know is _what_ I have to  
store and _how_ to invoke the right action later in order to make  
the login stuff transparent.


Hint: storing *everything* into the session might be unwise in some  
circumstances, as all resources on a server are limited, even cheap  
memory.


So you want a login page displayed when a user accesses a secured are  
an the application and show the correct page after successful  
authentication. There are several ways to do this with struts. I would  
use a simple redirect result as long as you have to deal with HTTP- 
GETs only, as it's pretty hard to redirect a POST. I have not tried it  
but should work like this:


- Create a global result[1] which leads to the login page.
- When your interceptor thinks a login is required, store the  
requested URL to the session and return the global login result from  
your interceptor.
- When the login action ends successfully, if an URL is in the  
session, redirect to it using a simple redirect result with a  
parametrized url [2].


As for POSTs, even if I don't like it, you should be able to store  
action, namespace, method and the parameters of the ActionInvocation  
to the session and retrieve them later to invoke the action via chain  
result. Using chain result at all is discouraged anyway[3].


I think this is not necessary: the usual use-case here is a user has  
clicked on a deep-link into the application (form a bookmark,  
newsletter or who-knows-where) and needs to be authorized first. For  
his convenience we want to get him to the page he wanted directly  
after the login. Whether this fits for your application, I don't know.


Cheers,
-Ralf

[1] 
http://struts.apache.org/2.0.11.1/docs/result-configuration.html#ResultConfiguration-GlobalResults
[2] http://struts.apache.org/2.1.6/docs/redirect-result.html
[3] http://struts.apache.org/2.1.6/docs/action-chaining.html

Maybe I am also going to check out Spring Security, as Wes  
suggested, but ATM I am using my own little  
AuthenticationInterceptor that supplies every Action (if desired)  
with the UserLogin-bean and redirects to the login-action if the  
bean is mandatory (indicated by annotation). It's working nicely,  
and I would like to keep it :-)


Greetings,
~Andreas


Dave Newton schrieb:

Martin Gainty wrote:

1)store in db
2)if static.. place in properties file
3)you can use OGNL to place values into 'application' scope

...
3) Seems like 'session' would be more appropriate since we're  
talking about storing an individual user's request, to be re-used  
after a login. And it would be put into session by the interceptor  
that checked if the user was logged in, which wouldn't do it via  
OGNL.

2) It's unlikely a user's request would be known in advance.
1) I can't think of any reason why I'd want to store the request in  
a DB since it only needs to persist over login attempts.

Dave



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Dynamic Cache with Tiles

2009-01-24 Thread Muhammad Owais
Dear;
 
I am using WebSphere 6. Along with sturts and tiles. 
 
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.express.iseries.doc/info/iseriesexp/ae/tdyn_wsclientcache.html
 
Referring to the above link, under the heading component subelement, there is a 
table with the heading Type. It contains the value sessionID.  
 
I could not understand the implementation of it. I will be highly obliged if 
you can forward me a sample. 
 
This is what I am trying to do:
 
cache-entry
  classservlet/class
  name/root/includes/appmainmenu.jsp/name
  cache-id
    component id=node type=tiles_attribute
  requiredtrue/required
    /component
    dependency-id
    component type=sessionID
  requiredtrue/required
    /component
    /dependency-id
    timeout15/timeout
  /cache-id
/cache-entry
 
Thanking you in advance.






With regards
 
Muhammad Owais Bilal Awan,
+966-56-5823-940


  

Re: s:radio on multiple lines

2009-01-24 Thread Daniel Ruan
What I meant before is that something like this:

s:radio name=selectedId list=myMap/

puts everything on the same line.  And there is no place there to add a
br/ tag.

I found a solution in the end, after googling a bit more and with more
relevant keywords:

s:iterator value=myMap.values()
s:radio name=selectedId list=#{id: name}/br/
/s:iterator

Assuming the action exposes a map of id and some object with the [id, name]
properties.  The map key id is the object id field and selectedId receives
the id of the selected object.

http://www.daniweb.com/forums/thread159633.html
http://struts.apache.org/2.x/docs/how-do-i-render-a-single-radio-button.html

I also came across a discussion in the XWork world about adding a vertical
parameter to the radio tag.  That'd be a great idea.  Hope we will have that
in next version of Struts2 too.

On Sat, Jan 24, 2009 at 3:30 PM, Lukasz Lenart lukasz.len...@googlemail.com
 wrote:

 2009/1/24 Daniel Ruan danielr...@gmail.com:
  The simple theme does not work for me... My entire app uses the simple
 theme
  (constant name=struts.ui.theme value=simple /).  I also tried
  theme=simple at the s:radio level but to no avail.

 So then, put br/ tag after each.


 Regards
 --
 Lukasz
 http://www.lenart.org.pl/

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Handling Browser Back/Forward Button in Struts2

2009-01-24 Thread shekher awasthi
Hi Hi Paweł,

i tried all the way in secure way

i implimented SSL and now my tomcat is running on port 8443 usinh https
protocol
i have created a custom interceptor for setting the header values

when user click logg off button this custom interceptor is working setting
the header values below is the code i am using

ActionContext context=invocation.getInvocationContext();
HttpServletResponse
response=(HttpServletResponse)context.get(StrutsStatics.HTTP_RESPONSE);
if(response!=null){
System.out.println(**setting
header**);
response.setHeader(Cache-Control, must-revalidate);
response.setHeader(Cache-Control, max-age=0);
response.setHeader(Pragma, no-cache);//HTTP 1.1
response.setDateHeader (Expires, 0); //prevents caching at
the proxy
response.setHeader(Cache-Control,no-store); //HTTP 1.1

}

and on my logot message i have something like this

META content=MSHTML 6.00.2900.2180 name=GENERATOR
META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE
META HTTP-EQUIV=EXPIRES CONTENT=-1
META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE

but still results are same
i can go back to secure page using browser back button
any idea  why this is going on??

or do i need to set anything apart from this?

-shekher

On Fri, Jan 23, 2009 at 9:06 PM, shekher awasthi
shekher.awas...@gmail.comwrote:

 Can you guide me the way how to use SSL in struts2 i am looking in to this

 IDE i am using is MyEclispe

 and i am testing it using tomcat

 On Fri, Jan 23, 2009 at 7:33 PM, Paweł Wielgus poulw...@gmail.com wrote:

 Hi Shekher,
 all my testing was under SSL connection. So without pragma and cache
 control it's not working - sadly.

 Best greetings,
 Paweł Wielgus.

 2009/1/22 shekher awasthi shekher.awas...@gmail.com:
   Hi Paweł,
 
  another way we can do this by using SSL
  as we are dealing in secure zone so using SSL for this might be a good
 case.
 
  the application i have seen so far who have dealt with this back/forward
  button always using HTTPS protocol.
 
  i am also diving in to this case study and will share the results
 
 
  On 1/22/09, shekher awasthi shekher.awas...@gmail.com wrote:
 
  one of the banking application site which i tested today
 
  when user get logged off from and try to hit the back button he will be
  shown a different page
  instead the one in the cache
  so i am also loking in to this aspect.
 
 
   On 1/22/09, shekher awasthi shekher.awas...@gmail.com wrote:
 
  using javascript is not a sure short solution
  as i tested it throughly and javascript behaviour is not consistent
  throught
 
  regarding setting header i did this i developed a custom interceptor
 which
  is doing this
 
  but again its not worked as expected.
  i am still clueless how online banking application doing this trick
 
  i am still on RD mode for this if find anything will share it
 
 
   On 1/22/09, Paweł Wielgus poulw...@gmail.com wrote:
 
  Hi Ehtesham,
  it was said before on this thread that user can simply turn of
  javascript whenever he wants,
  thats why i was looking for more server controlled solution. But
 thank
  You for pointing it out, You made me to add it to my blog post.
 
  Best greetings,
  Paweł Wielgus.
 
  2009/1/22 Ehteshamul Haque ehsho...@yahoo.com:
  
  
  
   Hi,
  
   I am not that much expert I I used the following javascript code
 before
  in each page and it workded fine.
  
  
   script language=JavaScript
   var x=window.history.length;
   if (window.history[x]!=window.location)
   {
   window.history.forward();
   }
   /script
  
   If it work for you I will be very happy.
  
   Thank you.
  
   -Ehtesham
  
  
   --- On Thu, 1/22/09, Paweł Wielgus poulw...@gmail.com wrote:
  
   From: Paweł Wielgus poulw...@gmail.com
   Subject: Re: Handling Browser Back/Forward Button in Struts2
   To: Struts Users Mailing List user@struts.apache.org
   Date: Thursday, January 22, 2009, 12:34 AM
  
   Hi Shekher,
   it was very interesting subject, so i dig a little more.
   Here [1] is what i found, with some tests.
   Basicly it turns out that You should add headers in page and to
  response.
  
   [1] -
 
 http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html
  
   Best greetings,
   Paweł Wielgus.
  
   2009/1/21 shekher awasthi shekher.awas...@gmail.com:
   Is it possible that either i should only put these header in the
  logout
   action
  
   where i am removing the session and den redirecting the user to
 index
  page
   something like this
  
   HttpServletResponse response=null;
   response=ServletActionContext.getResponse();
  
   response.setHeader(Pragma, no-cache);
   response.setHeader(Cache-Control, no-cache);
   response.setHeader(Expires, 0);
  
   or can we create a interceptor which can do this for all the
 request
  wheer
   we want this feature??
  
   2009/1/21