Re: Migration from S2.0.x to S2.1.x

2007-11-14 Thread Ted Husted
While the paperwork clears, you can always start a "Migrating From 2.0 to 2.1" page in the Struts 2 community wiki, and we can move the page over later. * http://cwiki.apache.org/S2WIKI/home.html Then, to point people to it, add a comment to the Migration Guide page. HTH, Ted

Re: How to preselect a radio button in Struts 2

2007-11-14 Thread Pankaj Gupta
Hi, I tried the same. But it didn't worked Regards, Pankaj On 11/14/07, Randy Burgess <[EMAIL PROTECTED]> wrote: > > Use the value attribute and the radio button with that value will be > selected. > > > > Regards, > Randy Burgess > Web Applications Developer > Nuvox Communications > > > > > Fr

S2: Struts way of submitting a value on change?

2007-11-14 Thread James Carr
Hi All, What is the "struts 2" way of using ajax to submit a value and calling a method on an action? Currently I am just having a select with a name that maps to a value via OGNL, then just using javascript to read and submit the value onchange. I keep thinking struts does this out of the box?

Re: multi part request.

2007-11-14 Thread Laurie Harper
Sivaswamynatha K wrote: In my struts 1.2.9 application, I have a requirement to attach a file. So in my jsp page I use enctype="multipart/form-data". Its working fine I'm not clear how this... and file gets attached. It's a tabbed page and when I click another tab, I want to keep track the ta

Re: [struts] JAAS and Struts Re-authentication Question

2007-11-14 Thread Laurie Harper
I don't think Container Managed Security has provisions for logging users out, other than by expiring the session (and not even then if you're relying on HTTP authentication rather than form-based). If you have a separate 'login' page (as opposed to having a login form on each page) you might

RE: Re: forward to a particular id in a page from

2007-11-14 Thread Richard . Ferri
It sounds like you want to use mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, November 14, 2007 6:47 PM To: user@struts.apache.org Subject: Re: forward to a particular id in a page from Hi, > > i have an html id in a jsp page . > > i have, > in my struts config.xml >

Re: conditional matching using s:if

2007-11-14 Thread Laurie Harper
Without seeing more of your code I can't be sure, but (see inline): SudarshanP wrote: Hi Struts2 users, I am new to Struts2 Have a problem with s:if tag, below is the code snippet 'branchsData' is a javaobject having 'branch' as its property if that's the case, why are you trying to iterate

Re: forward to a particular id in a page from

2007-11-14 Thread Laurie Harper
shakeel_code wrote: Hi, i have an html id in a jsp page . i have, in my struts config.xml but i want to go directly to that id in the jsp page when the forward happens. i also tried, but it was of no help can anyone help me? I'm not sure if I understand what you want... Do you

Re: Without ActionServlet can i use struts ....?

2007-11-14 Thread Laurie Harper
Friend Here wrote: without ActionServlet can i use struts ? could u plz explain abt this ... How would you envision using Struts without ActionServlet, which is the primary entry point for a request which will be served by Struts (for Struts 1 at least)? And why does using ActionServlet pres

Re: [s2] How can I access the RequestMap from an Interceptor?

2007-11-14 Thread Gary Affonso
Thilo Ettelt wrote: Yes, I know :) But I don't want to depend on HttpServletRequest. I would like to have the Request*Map*. Unfortunetely from looking at the code I only found out how to contruct a RequestMap from a HttpServletRequest. Omkar showed you how to get to the invocationContext(). F

Re: [s2] How can I access the RequestMap from an Interceptor?

2007-11-14 Thread Thilo Ettelt
Yes, I know :) But I don't want to depend on HttpServletRequest. I would like to have the Request*Map*. Unfortunetely from looking at the code I only found out how to contruct a RequestMap from a HttpServletRequest. Isn't there some kind of function that provides me with the Map? (Except the I

Re: [S2] Help for Ajax Tabbed Panel

2007-11-14 Thread Raghuveer Rawat
Still not able to make it working. I had s:url inside the tabbed panel which I have moved out but still output of MyArticlesDetail.jsp is not coming back into tab of the MyArticle.jsp Not sure what is causing this issue. Any help if someone is able to make tabbelpanel working. Tabbed Panel code l

struts2: some action mapping clarificacions needed

2007-11-14 Thread hernan gonzalez
I have a wildcard mapping, say If I have a form ... which results in (html stripped) and inside I have some submit buttons which go to other methods (besides load) I can accomplish that by using the "method" and "action" attrbiute of the "submit" struts-tag, eg (case 1)

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-14 Thread chengas123
I do see Dale's point now about the security risk. I'd generally agree with Dave that using a static method is basically the same as a scriptlet. However, in this case I can't say it really belongs in my bean. It's really more of a formatting issue. I'd hate to have my bean have two getters f

Re: [s2] How can I access the RequestMap from an Interceptor?

2007-11-14 Thread Omkar patil
Thilo, You can directly access an HttpServletRequest in the Interceptor using following - ActionContext ac = invocation.getInvocationContext(); HttpServletRequest request = (HttpServletRequest) ac.get(ServletActionContext.HTTP_REQUEST); - Omkar Thilo Ettelt wrote: Hey, som

Re: [s2] How can I access the RequestMap from an Interceptor?

2007-11-14 Thread Dave Newton
>From ServletConfigInterceptor: final Object action = invocation.getAction(); final ActionContext context = invocation.getInvocationContext(); if (action instanceof ServletRequestAware) { HttpServletRequest request = (HttpServletRequest) context.get(HTTP_REQUEST); ((ServletRequestAware) ac

[s2] How can I access the RequestMap from an Interceptor?

2007-11-14 Thread Thilo Ettelt
Hey, somehow I can't find a way to access the RequestMap from within an Interceptor. What is the right way? - Thilo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [struts] JAAS and Struts Re-authentication Question

2007-11-14 Thread Adam Gordon
If you mean protecting the page w/ a security constraint, I think that would be a problem in that JAAS would detect that it's a protected resource and prompt the user to log in before hitting the login page and upon a successful login would redirect the user to the login page after they've alre

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-14 Thread Dave Newton
Another issue, a more stylistic one, is that using methods like this is barely better than scriptlets. Some would argue that this type of work belongs on the server side, especially if you're working with non-programming designers (although some can be trained to use a set of well-defined static me

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-14 Thread Dale Newfield
chengas123 wrote: Ahh, yes, that was my problem. I'm afraid I wasn't expecting that. I don't really see how allowing static method access presents a security problem. I am opening myself up to any obvious risks by turning this on? If someone submits a value in a form that you mirror back to

Re: How to preselect a radio button in Struts 2

2007-11-14 Thread Martin Gainty
XWork expression too- http://struts.apache.org/2.0.11/docs/radio.html M-- - Original Message - From: "Randy Burgess" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, November 14, 2007 9:05 AM Subject: Re: How to preselect a radio button in Struts 2 > Use the value at

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-14 Thread chengas123
Ahh, yes, that was my problem. I'm afraid I wasn't expecting that. I don't really see how allowing static method access presents a security problem. I am opening myself up to any obvious risks by turning this on? Thanks, Ben DNewfield wrote: > > > Have you turned off this capability (or r

Re: [struts] Escaping Characters in Struts Property Tag

2007-11-14 Thread Martin Gainty
Hi Ben Have you looked at using static reference? @[EMAIL PROTECTED] or standard OGNL http://struts.apache.org/2.0.11/docs/ognl-basics.html e.g. if accessible from pageContext #attr.comments M-- - Original Message - From: "chengas123" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 13,

Re: S2.1.1 sx:datetimepicker seem to ignore displayFormat on submit

2007-11-14 Thread Giovanni Azua
hi, Ok good to know! thanks! We need a special integer-based format and not Date but this makes the conversion actually simpler. Thanks! Best regards, Giovanni Musachy Barroso wrote: Actually it was wrong in 2.0.x, on 2.1 the date will always be submitted as RFC 3339, if you define your fi

Re: How to preselect a radio button in Struts 2

2007-11-14 Thread Randy Burgess
Use the value attribute and the radio button with that value will be selected. Regards, Randy Burgess Web Applications Developer Nuvox Communications > From: Pankaj Gupta <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Wed, 14 Nov 2007 10:42:20 +0530 > To: > Subject: How t

Re: S2.1.1 sx:datetimepicker seem to ignore displayFormat on submit

2007-11-14 Thread Musachy Barroso
Actually it was wrong in 2.0.x, on 2.1 the date will always be submitted as RFC 3339, if you define your field as a Date, or a Calendar object you won't have to do any conversion at all. musachy On Nov 14, 2007 5:24 AM, Giovanni Azua <[EMAIL PROTECTED]> wrote: > hi, > > In version 2.0.9 I had a d

S2: autocompleter + action

2007-11-14 Thread Stefano Greco
Hi, I have a problem. I'm trying to use autocompleter reading list from an action using the attribute href. As the example in the showcase i make this: File struts.xml like: ... ... ... /sampleAJAX.jsp /ajax/JSONList.js

Re: [struts] [S2] Recursive

2007-11-14 Thread Dave Newton
I did something similar with tiles that included themselves; I suppose regular old includes would work as well. d. --- Chris Pratt <[EMAIL PROTECTED]> wrote: > On Nov 13, 2007 10:51 PM, Dale Newfield > <[EMAIL PROTECTED]> wrote: > > > > Chris Pratt wrote: > > > I have an folder hierarchy that I'

multi part request.

2007-11-14 Thread Sivaswamynatha K
Hello, In my struts 1.2.9 application, I have a requirement to attach a file. So in my jsp page I use enctype="multipart/form-data". Its working fine and file gets attached. It's a tabbed page and when I click another tab, I want to keep track the tab index. (I have tab index as hidden field).

S2.1.1 sx:datetimepicker seem to ignore displayFormat on submit

2007-11-14 Thread Giovanni Azua
hi, In version 2.0.9 I had a datetimepicker with custom user-defined conversion that worked fine. After migrating to S 2.1.1 my conversion class on submit receives the beginDate in the wrong format, instead of the expected ".MM.dd" I get something like dd-MM-T. Seems like a defect new

Re: Migration from S2.0.x to S2.1.x

2007-11-14 Thread Antonio Petrelli
2007/11/14, Giovanni Azua <[EMAIL PROTECTED]>: > > hi, > > I have been collecting a few points required for migrating from S2.0.x > to S2.1.x and I would like to bookkeep this info somewhere. Of course, > if we do it in Wiki it will benefit others too ... where exactly could > we enter this? Th

Migration from S2.0.x to S2.1.x

2007-11-14 Thread Giovanni Azua
hi, I have been collecting a few points required for migrating from S2.0.x to S2.1.x and I would like to bookkeep this info somewhere. Of course, if we do it in Wiki it will benefit others too ... where exactly could we enter this? best regards, Giovanni Jeromy Evans wrote: There's no migr