Re: Dynamic s:checkbox name?

2009-01-18 Thread abhijit . sulhyan
Makes perfect sense if interested in matching the values from checkbox list. Another variation, I think in that case would be to use the 'fieldValue' instead of name; that way the set values can be easier to retrieve as a list using the name encapsulator. s:iterator value=test_list status=status

Re: Struts 2 session problem

2009-01-18 Thread Nils-Helge Garli Hegvik
Maybe there's something I jut don't get, but two users sharing the same issue sounds more like a security hole than a feature to me... If a new users is performing a login in the same browser, I would make sure that the old session is invalidated before the new user is logged in. Nils-H On Sun,

Re: Struts 2 session problem

2009-01-18 Thread Wes Wannemacher
On Sunday 18 January 2009 02:54:35 RajibJana wrote: By conversation, I want to mean http session independent conversation. So two simultaneous users sharing the same http session can work independently, storing/retriving their own properties throughout the application without having conflict

Re: Struts 2 session problem

2009-01-18 Thread RajibJana
If a new users is performing a login in the same browser, I would make sure that the old session is invalidated before the new user is logged in. The old user may perform important operation ( may by ajax call), may hold important info in the session. Before invalidate the old session, I need

Sturts-Tiles Performance

2009-01-18 Thread Muhammad Owais
Hello;   We have migrated our old application to Sturts-Tiles. We are facing some performance issues. The old implementation does use the Sturts but not the Tiles. However the new application implements both of them.   Please assist to improve the performance issue. With regards   Muhammad

Re: exception handling

2009-01-18 Thread doahh
I know this is slightly different from the way you are trying it but this is the way I am currently doing it is: lt;global-exception-mappingsgt; lt;exception-mapping exception=java.lang.Exception result=unhandledExceptionHandler/gt; lt;/global-exception-mappingsgt; lt;global-resultsgt;

Does struts2 sanatise the input from forms?

2009-01-18 Thread doahh
I have been thinking about protecting an app form SQL injection and XSS attacks but currently know very little about this area of security. I started out using the Http Data Integrity Validation Framework (HDIV) but found it was a little to secure in that it broke bookmarks, the back button and

Re: Does struts2 sanatise the input from forms?

2009-01-18 Thread Wes Wannemacher
On Sunday 18 January 2009 09:34:23 doahh wrote: I have been thinking about protecting an app form SQL injection and XSS attacks but currently know very little about this area of security. I started out using the Http Data Integrity Validation Framework (HDIV) but found it was a little to

Re: Struts 2 session problem

2009-01-18 Thread Dave Newton
Wes Wannemacher wrote: Two users are not going to share the same session. Each user will get a new session. That's how app servers work. Check out the Seam conversation stuff. It allows the same user (or, I suppose, two different users, but that's not its primary purpose) to have multiple

Re: Sturts-Tiles Performance

2009-01-18 Thread Dave Newton
Muhammad Owais wrote: Please assist to improve the performance issue. How? We know nothing about your implementation, where you're seeing performance problems, etc. Dave - To unsubscribe, e-mail:

Re: Does struts2 sanatise the input from forms?

2009-01-18 Thread doahh
Thanks for the great answer Wes. I had to think about it a little but it all makes sense. The interceptor is a good idea for checking data, I hadn't quite gotten that far in my thinking. Wes Wannemacher wrote: On Sunday 18 January 2009 09:34:23 doahh wrote: I have been thinking about

Re: Struts 2 session problem

2009-01-18 Thread Wes Wannemacher
On Sunday 18 January 2009 12:11:33 Dave Newton wrote: Check out the Seam conversation stuff. It allows the same user (or, I suppose, two different users, but that's not its primary purpose) to have multiple session states. I could, say, have two tabs open, but each has a conversation scope.

Re: Struts 2 session problem

2009-01-18 Thread Nils-Helge Garli Hegvik
I'm guessing conversations are just different partitions in the session. At least that's how I've seen it implemented before. And I don't see how that would support having multiple _users_ in the same session. Sure, you could probably emulate it in some way, but I have serious doubts if it would

Re: Struts 2 session problem

2009-01-18 Thread Struts Two
option 2 and 3 are overheads for a large app This is an overstatment. The real question is whether This overhead causes major [performance, etc] problems for THE app , u are working on [not any large app], or not. And that is the question which you can only answer. regards, RajibJana

RE: exception handling

2009-01-18 Thread Andy
Regarding the OP - I tried your code and it worked for me so not sure why your not seeing the exception stack. Regarding to the first responder - you could take this a step further and have ActionUnhandledExceptionHandler redirect to another action (Redirect After Post)‏. Date: Sun, 18

A different exception handling question

2009-01-18 Thread Andy
Does anyone know why you can't pass the exceptionStack from a global result to an action class? Other parameters pass fine, just not that one: Ex. global-results result name=error type=redirectAction param name=actionNameerror/param param

Re: Dynamic s:checkbox name?

2009-01-18 Thread KE LI
Got it, quite useful. Thanks for all you guys' help! 2009/1/18 abhijit.sulh...@gmail.com Makes perfect sense if interested in matching the values from checkbox list. Another variation, I think in that case would be to use the 'fieldValue' instead of name; that way the set values can be

Re: Struts 2 session problem

2009-01-18 Thread RajibJana
Dave , you read my concern correctly, and my app needs the feature you have mentioned ( I guess many of such), Its not the login issue alone, the app needs multiple user sessions/conversations independent of http session, I will check how SEAM is providing such feature. Thanks Rajib

Re: Struts 2 session problem

2009-01-18 Thread dusty
Conversations are just state persisted over a session. They could be used for long transactions, wizards, etc. The issue that you may lose track of that state for a user if another user hijacks the session is not a use case for a feature but a description of a bug. Creating a separate

Re: Sturts-Tiles Performance

2009-01-18 Thread Muhammad Owais
Sir;   I am using Java 1.4, Oracle as a back end with Sturts 1.1   I have a sturt-config.xml files that maps the DispatchAction class and the tiles-config.xml Tiles XML contains the JSPs path... one view contains at least 5 JSPs.   I believe it is the way it should be?   Please also elaborate

Re: Struts 2 session problem

2009-01-18 Thread RajibJana
The issue that you may lose track of that state for a user if another user hijacks the session is not a use case for a feature but a description of a bug --The issue is windows tabs overwrite each others data that are put into the session because windows tabs share same http session. So

Sending XML data from action to YUI

2009-01-18 Thread aum strut
Hi All, I developing ajax based application using struts 2.0.11 for ajax we are using YUI for making ajax based call and currently its working fine for me.For one case i need to send XML created in my business logic to the front end The call will be created using YUI API and it must get XML