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

Re: s:radio on multiple lines

2009-01-24 Thread Daniel Ruan
What I meant before is that something like this: puts everything on the same line. And there is no place there to add a tag. I found a solution in the end, after googling a bit more and with more relevant keywords: Assuming the action exposes a map of id and some object w

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

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

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 S

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 intercept

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 validati

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

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?

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, d

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 fe

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 wrote: > The guy specifically said he wasn't psyched abo

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 shou

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 ever

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 >

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

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 un

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 hel

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 S

Re: s:radio on multiple lines

2009-01-24 Thread Lukasz Lenart
2009/1/24 Daniel Ruan : > The simple theme does not work for me... My entire app uses the simple theme > (). I also tried > theme="simple" at the s:radio level but to no avail. So then, put tag after each. Regards -- Lukasz http://www.lenart.org.pl/ --

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 (). 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 wrote: > 2009/1/24 Daniel Ruan : > > I'd like to create a group of radio buttons, on

Re: s:radio on multiple lines

2009-01-24 Thread Lukasz Lenart
2009/1/24 Daniel Ruan : > 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/ ---

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:

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 Wes Wannemacher
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, > com

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

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

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 significa

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

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 check

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 probabl

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

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

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

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 48

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 a

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/kuchenz