Re: Data Leakage in Struts 2

2008-07-27 Thread Arun M
we use STRUTS2 - SPRING- HIBERNATE in our project here is a sample piece of code... as metioned earlier... SCRAPTEXT variable once set by a request is being reused (that is) gets prefilled in the textarea of someother user in someother PC. . Action Class

Re: Data Leakage in Struts 2

2008-07-27 Thread Arun M
Thanks a lot... We included singleton=false in the applicationContext.xml Now it works perfectly ... Thanks Once Again Piero Sartini-3 wrote: Am Sonntag, 27. Juli 2008 06:04:46 schrieb Arun M: Yes , we are using spring and hibernate also along with struts. Could you suggest us, where to

Re: Data Leakage in Struts 2

2008-07-27 Thread Arun M
Thanks a lot... We included singleton=false in the applicationContext.xml Now it works perfectly ... Arun M wrote: we use STRUTS2 - SPRING- HIBERNATE in our project here is a sample piece of code... as metioned earlier... SCRAPTEXT variable once set by a request is being reused (that

Re: Data Leakage in Struts 2

2008-07-27 Thread Arun M
Thanks a lot... We included singleton=false in the applicationContext.xml Now it works perfectly ... dusty wrote: I think you need to post the relevant section from struts.xml so we can see how you declare the action as well as your spring configuration files. -D Miguel-55 wrote:

s2: user-frendly urls in struts2

2008-07-27 Thread [EMAIL PROTECTED]
Hi, I have an action which can be reached by - http://hostname/friends/viewpix.action - http://hostname/friends/viewpix.action?id= My client doesn't want the *.action* to appear in the urls so is there a way to launch the action by using friendly urls, e.g., like these: -

[S2] JSP pages not showing error/debug info

2008-07-27 Thread Ramanathan RV
Hello, When I try to access a list that is not there at all on the valuestack, I am left with empty page without any information. For instance, s:select headerKey= headerValue=Select theme=simple name=form.cesd.year list=form.shortyearsList / and form.shortyearsList donot exist at

Re: s2: user-frendly urls in struts2

2008-07-27 Thread Chris Pratt
You might want to look into the RESTful URL's plugin. But you can just override the extension. I usually set mine to .html (to hide the technology being used), but I believe you can set it no nothing as well. I use the following in struts.xml, I believe you can set the value to also.

S2: s:include tag and s:param

2008-07-27 Thread Eric D Nielsen
I've been having trouble getting s:include and s:param to work. I have a snippet I want to include in multiple pages. This snippet will want to make use of Struts 2 tags and OGNL, though at present I just need a simple c:out. The snippet looks like: %@ taglib prefix=c

Re: s2: user-frendly urls in struts2

2008-07-27 Thread Piero Sartini
Am Sonntag, 27. Juli 2008 21:44:04 schrieb Chris Pratt: You might want to look into the RESTful URL's plugin. But you can just override the extension. I usually set mine to .html (to hide the technology being used), but I believe you can set it no nothing as well. I use the following in

Re: s2: user-frendly urls in struts2

2008-07-27 Thread [EMAIL PROTECTED]
Thanks Chris and Piero. I'll give it a try. On Sun, Jul 27, 2008 at 4:05 PM, Piero Sartini [EMAIL PROTECTED]wrote: Am Sonntag, 27. Juli 2008 21:44:04 schrieb Chris Pratt: You might want to look into the RESTful URL's plugin. But you can just override the extension. I usually set mine to

Re: S2: s:include tag and s:param

2008-07-27 Thread Dave Newton
IIRC the s:param.../ tag is for parameterizing components; AFAIK it doesn't add anything to a scope. (That being said, as this question seems to come up rather frequently, maybe the include tag should add its params to the request used for the include, if that's possible?) Dave --- On Sun,

Re: [S2] Form doesn't redirect

2008-07-27 Thread Milan Milanovic
Hi, no, no error! My first form works good with ajax and updates some table value, but this second form that should save one value from textfield and redirect from that page, works fine with called submit method, but there is no redirection, it just stays on this page, it even not refresh. --

Re: [S2] Form doesn't redirect

2008-07-27 Thread Dave Newton
--- On Sun, 7/27/08, Milan Milanovic [EMAIL PROTECTED] wrote: s:form action=save validate=false s:textfield id=value tabindex=1 label=Value name=value/ s:submit theme=ajax tabindex=2 cssStyle=submit cssClass=submit align=right value=Save/ /s:form Do Ajax forms redirect? I

[S2] getting other action URL from within an action

2008-07-27 Thread Pierre Thibaudeau
Quick question for which, I can't for the life of me find an answer in the documentation. From within an Action that extends ActionSupport, how can I get access to another action's URL from knowing the name of that other action. With Struts1, I would have done something like: (new

[S2} REST plugin Security

2008-07-27 Thread Mike Watson
Hi Folks, What's the most straightforward way to secure my REST URLs? I'd assumed that I'd be able to use the standard JEE approach and secure based on URL patterns but this doesn't seem to work (on Websphere anyway) and I'm assuming it's to do with the fact everything I'm doing is happening in

Re: [S2} REST plugin Security

2008-07-27 Thread Mike Watson
I should probably add that I'm just trying to authenticate via LDAP at this stage. Authorization will be implemented later. 2008/7/28 Mike Watson [EMAIL PROTECTED]: Hi Folks, What's the most straightforward way to secure my REST URLs? I'd assumed that I'd be able to use the standard JEE

Re: how to fix Validation isses in a wizard application + Train

2008-07-27 Thread ravi_eze
we fixed the issue by writing a trainInterceptor whcih always takes a backup of the params passed through request and if the action doesnt return errors deletes them else stores them in session. The next pages to which user jumps we are first checking if there are nay backup objects in