equivalent to OSUser

2007-08-11 Thread Mansour
Can we use OSUser http://www.opensymphony.com/osuser/ with struts2. If not is there any other alternatives? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with optiontransferselect when loaded via an AJAX

2007-08-11 Thread Martin Gainty
Joakkim take a look at this- Hi, There seems to be a bug in the struts 2 taglib, in the last release (Struts 2.0.6). If the jsp don't come from a struts 2 interceptor stack (from an action, for exemple), you get a null pointer exception when you hit the first struts tag (""). I hope it will be

Re: Problem with optiontransferselect when loaded via an AJAX

2007-08-11 Thread Joakim Olsson
Hi Martin, Thanks for looking into my problem. There is now a gzip:ed tar-archive at http://lingonpaj.com/Struts2Test.tar.gz Regards, Joakim On lör, 2007-08-11 at 17:25 -0400, Martin Gainty wrote: > Joakim- > > I am unable to decompress te supplied file > can you use a compression utility lik

Re: Struts tile and other tag includes

2007-08-11 Thread Martin Gainty
Jim- The simplest answer is to put all your tlds in an TLDInclude.jsp then call that block in for each jsp /**contents of TLDinclude.jsp**/ <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%@ taglib uri="/WEB-INF/

Re: Struts and arabic encoding

2007-08-11 Thread Martin Uhlir
Hi, before you gain the parameters in a servlet you should set their encoding (by default they are latin1). The best way is to use a filter like this: public class ArabicEncodingFilter implements Filter { public void init(FilterConfig filterConfig) throws ServletException { } public

Problem with optiontransferselect when loaded via an AJAX

2007-08-11 Thread Joakim Olsson
Hi, I have a page with an optiontransferselect which works ok if called directly via the action in the browser. If I load the page from within another page via an AJAX I get the following in the AJAX debug: FATAL exception raised: bad srcObj for srcFunc: onsubmit What have I done wrong? I have

Multiple actions with overlapping URL ranges

2007-08-11 Thread peterv
Hi, Is there a way in Struts 2 to make the action mapper choose the Action to be invoked based on two criteria: 1) the action's name (eg. a wildcard mapping), and 2) a boolean value obtained by invoking a method in the action? Why I need this: I want to create friendly URLs for several types of

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-11 Thread Frank W. Zammetti
What is rowId? That's not a standard attribute of the tag, hence the error makes sense I think, assuming it's being interpreted equivalent to this.rowId... also, value doesn't have any context here, I assume you mean to do this.value (which it may be interpreted as anyway), but maybe not... w

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-11 Thread Oleg Konovalov
Dave, What am I doing wrong in that Javascript ? Honestly, I don't see it. Please help ! Thank you, Oleg. On 8/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > --- Oleg Konovalov <[EMAIL PROTECTED]> wrote: > > > As of now I am getting Javascript error "Object > > doesn't support this

Re: Struts tile and other tag includes

2007-08-11 Thread Yayo
I think you're wrong but doing well ^g^ You need to include in each page the references to the tag-libs you're using and I would not call that "the code" of the page, maybe the header or the include section ^^ On 8/11/07, Jim Reynolds <[EMAIL PROTECTED]> wrote: > > I have something like this: This

Re: Conditional + visitor validation - for nested objects.

2007-08-11 Thread j alex
Hi Paul, Let me explain in detail : I have an application that needs to collect info about a primary applicant (applicant1) and one or more co-applicants (coapp1, coapp2 etc.) . So, we could be presenting the same fields from the domain model multiple times in the page - like : Primary App info :

Re: Add Web Service to Struts Web App

2007-08-11 Thread Frank W. Zammetti
No, currently this does not apply for S2... it's in my to-do list to bring this capability to S2, but I have no ETA on that at the moment. I don't know if there are other options that do something similar already for S2, I wouldn't be surprised if there was. Frank -- Frank W. Zammetti Founde

Redirect after File Upload

2007-08-11 Thread Jan Steinke
Hi There, I would like to upload some jpegs with struts 2.0.9 and redirect to another site after the Action returns SUCCESS. I tried is like this ( after reading the file upload example from the struts 2 showcases): uploadPictureForm.jsp: enctype="multipart/form-data">

Redirect after File Upload

2007-08-11 Thread Jan Steinke
Hi There, I would like to upload some jpegs with struts 2.0.9 and redirect to another site after the Action returns SUCCESS. I tried is like this ( after reading the file upload example from the struts 2 showcases): uploadPictureForm.jsp: enctype="multipart/form-data">

Re: 2.0.9 and TabbedPanel

2007-08-11 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Is there something special about getting TabbedPanel to work in 2.0.9? Nope. What's the problem? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: S1-1.3.8 Validation using 'validwhen' for radio button

2007-08-11 Thread Paul Benedict
I do not believe validwhen generates Javascript validation. It is only on the server-side. On 8/10/07, Vivek Chauhan <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am trying to do a conditional validation using 'validwhen'. > There is group of two radio buttons (values 'Yes' and 'No') and on > selecti

Re: Conditional + visitor validation - for nested objects.

2007-08-11 Thread Paul Benedict
So your error messages are customized based on user? That doesn't make sense to me. Are you sure? Paul On 8/10/07, j alex <[EMAIL PROTECTED]> wrote: > > Hi All, > > This is somewhat related to Matt's post on conditional validation at > http://www.nabble.com/Re:-Conditional-validation-p11990883.ht

Re: Add Web Service to Struts Web App

2007-08-11 Thread Leonidas Papadakis
Does this apply to Struts2 as well ? If not is there an alternative ? Thanks Leon Frank W. Zammetti wrote: One simple answer might be the StrutsWS project: http://sourceforge.net/projects/strutsws/ In CVS you'll find a version for the 1.3.x branch of Struts. Simply put, it allows you to ca