Re: REST plugin URL syntax

2008-07-11 Thread Jeromy Evans
Jeromy Evans wrote: Dusty, you're right. I just had a quick look and I do have a custom action mapper that checks whether the pattern above references an action or method for that exact reason (it checks the list of available actions and gives precedence to those). Works great for me. I r

Re: Struts2 application doesn't work with Firefox 3

2008-07-11 Thread Dave Newton
--- On Fri, 7/11/08, Pierrot52 wrote: > Well, the application works fine with Firefox 2, Safari, > Opera, IE6 and IE7 but not with Firefox 3. > > What can I add more? You could say HOW it doesn't work. "It doesn't work" is essentially useless as a diagnostic tool. I use FF3 with S2 apps all the

Re: [S2] Recipe for Action and View

2008-07-11 Thread Dave Newton
Personally I'd either map an action to the input method or differentiate based on GET/POST requests, but that's just personal preference. Dave --- On Fri, 7/11/08, Andreas Mähler <[EMAIL PROTECTED]> wrote: > From: Andreas Mähler <[EMAIL PROTECTED]> > Subject: Re: [S2] Recipe for Action and View

Re: Problem with s:set and s:if

2008-07-11 Thread Dave Newton
Is #page one of the stack context vars? I'd consider using #attr, unless you can confirm that it is (I always forget). Or just use #request. Dave --- On Fri, 7/11/08, Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote: > I have a problem with the following code: > > value="one"> ... > > <%-- Some

Re: Struts2 application doesn't work with Firefox 3

2008-07-11 Thread Pierrot52
Well, the application works fine with Firefox 2, Safari, Opera, IE6 and IE7 but not with Firefox 3. What can I add more? Firefox 3 has a bug! I'm not going to debug my application. Regards. newton.dave wrote: > > You don't say what the problem is, so it's hard to know how to help. > > There

Re: [S2] Recipe for Action and View

2008-07-11 Thread Andreas Mähler
Hello Gabriel, yes, I indeed took that into consideration, but if i am not wrong, there are two drawbacks: 1: When I create my own base class, and would like to use the prepare-method for something else, too, I need to overwrite the old method and mustn't forget to call super.prepare() in my

Problem with s:set and s:if

2008-07-11 Thread Othon Reyes Sanchez
Hi to everyone I have a problem with the following code: <%-- Some code goes here --%> I don't know what is happening but the code conditionated by the if is not executed. If i use request instead of page in the s:set tag, and obiosly in the s:if tag, the code works fine. can somebody tell me

Re: [S2] Recipe for Action and View

2008-07-11 Thread Gabriel Belingueres
You can also opt for sharing the prepare() code through inheritance, meaning that you create a superclass action holding the prepare() code, instead of coding a custom interceptor. 2008/7/11 Andreas Mähler <[EMAIL PROTECTED]>: > Thanks for your Answer, Lukasz. > > I already know the PrepareInterce

Re: [S1] div update and struts

2008-07-11 Thread Lalchandra Rampersaud
i got some things fixed but now it gives me an error when it goes to the Action (LookupDispathAction), it says that MessageResource(update.update) is not found... has this happened to anyone else? saludos Lalchandra Rampersaud Carpe diem - Original Message - hi

Re: Struts2 application doesn't work with Firefox 3

2008-07-11 Thread Dave Newton
You don't say what the problem is, so it's hard to know how to help. There's a known issue with Dojo [1] which may or may not be the issue you're facing-kinda hard to say. It's helpful to provide enough information to know where to start looking. Dave [1] http://dojotoolkit.org/support/faq/wh

Re: Struts2 application doesn't work with Firefox 3

2008-07-11 Thread Pierrot52
I'm replying to myself to say that I've told my customers to use anything but Firefox 3 until Mozilla provides us with a patch that clears this problem. Regards. Pierrot52 wrote: > > Hello, > I have developed a Struts2 application that works well under Firefox 2, IE > 6, IE 7, Safari, and Oper

Re: textarea Encoding

2008-07-11 Thread Joachim Rohde
Hi, are the values still correct within your controller? And which Server are you using? I once had a similar problem, but I am not sure, if my solution can be applied to your problem. In my case I tried to deliver strings with umlauts as a GET-request-parameter to my controller, which faile

Re: [S2] Recipe for Action and View

2008-07-11 Thread Andreas Mähler
Thanks for your Answer, Lukasz. I already know the PrepareInterceptor and it can be used for what I would like to do. But I consider a special interceptor more convinient, since I intend to use it for more than one pair of view and action. (Using PrepareInterceptor would imply the need to add

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-11 Thread Paweł Wielgus
Or You can use an Interceptor with default input for that job. Best greetings, Paweł Wielgus. 2008/7/11 Wes Wannemacher <[EMAIL PROTECTED]>: > Lyallex, > > I'm not one of the authors, but I helped... > > The example in the book doesn't work the way that typical container > managed authentication

Re: fileUpload vs custom servlet

2008-07-11 Thread Laurie Harper
webdev2 wrote: I upgraded my app to Struts2, which provides file uploading. Now my custom servlet for uploading an attachment no longer receives the request. Is there a configurable option for restoring the old functionality of having the custom servlet upload the attachment? Thanks. What

Re: @CustomValidator error

2008-07-11 Thread tangy
Yes, that was the problem. Now I have another problem: My interceptor stack is as follows:

Re: @CustomValidator error

2008-07-11 Thread Dave Newton
--- On Fri, 7/11/08, tangy <[EMAIL PROTECTED]> wrote: > I have the validators.xml file in /WEB-INF/: AFAIK this file needs to be on the classpath. The validation documentation [1] points this out in the "Registering Validators" section, stating "The simplest way to do so is to add a file name v

@CustomValidator error

2008-07-11 Thread tangy
Hi all, I'm new to Struts2 and needed some help troubleshooting an error when I try to use @CustomValidator. Here's my setup: I have the validators.xml file in /WEB-INF/: http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd";> And then I have a class called NumberFieldV

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-11 Thread Wes Wannemacher
Lyallex, I'm not one of the authors, but I helped... The example in the book doesn't work the way that typical container managed authentication / authorization worked. A successful login would be redirected to the AdminPortfolio (regardless of the original request). If you are looking for more th

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-11 Thread Jim Kiley
There are decent forums at manning.com that might be a better place to put this note -- I know the authors read the forums there. jk On Fri, Jul 11, 2008 at 11:59 AM, Lyallex <[EMAIL PROTECTED]> wrote: > I have no idea if the authors of the book Struts 2 in Action read this > list or if anyone t

For the authors of Mannings Struts 2 in Action, a question

2008-07-11 Thread Lyallex
I have no idea if the authors of the book Struts 2 in Action read this list or if anyone that does knows how to contact them but I have a question for them, or maybe someone else knows the answer Authors On page 99, chapter 4 of your book you state. "Every action in this package will now have au

textarea Encoding

2008-07-11 Thread Juan Pablo Pizarro
Hi All, I've a problem with textarea encoding. I use struts 2.0.11. I put things like áí or ü into a text area, then I pass that value to others pages (through session) and the the characters appear as "?". I looked forums and all problems had a Db involved, not mine. Any idea? Thanks. Juan Pab

question about submitting checkboxes

2008-07-11 Thread Eric Hamacher
Hello: I have a form on which there can, in theory, be an infinite number of checkboxes (Users are selecting files from a tree and there is no telling how many will be selected). The name of each checkbox is determined at runtime (= to the path of the file). That being the case, how can I set

Re: about security

2008-07-11 Thread Struts Two
Here are my thoughts [based on my experience with Websphere but I hope they can be generalized): 1- Using session for users's authentication is not a very good idea esp if there is a chance that they may have multiple browser or tabs open at the sametime. there is a great chance of session mix-u

Re: This is odd, sometimes my requests 'miss' the Struts2 filter

2008-07-11 Thread Alberto A. Flores
The spec clearly doesn't specify whether a forward or a response.redirect() is used. This means that it is up to the container to decide how this is implemented. Depending on your portability requirements, this may or may not be an issue (Tomcat vs Weblogic, Resin, etc)... Hmm, the whole poin

about security

2008-07-11 Thread hns
hi i have successfully converted and deployed struts 2.0.11 application to client but still have some security questions because i have less knowledge of jaas ,realm or role based security i have done authentication using query fire in database for user name and password when user authenticated

Re: fileUpload vs custom servlet

2008-07-11 Thread Joachim Rohde
If you don't need the file-upload interceptor then remove it from your interceptor stack or exclude it for those actions which rely on your custom fileupload-servlet. webdev2 schrieb: I upgraded my app to Struts2, which provides file uploading. Now my custom servlet for uploading an attachme

Re: This is odd, sometimes my requests 'miss' the Struts2 filter

2008-07-11 Thread Lyallex
On Thu, Jul 10, 2008 at 5:59 PM, Alberto A. Flores <[EMAIL PROTECTED]> wrote: > You are correct, the default is REQUEST (if no dispatcher is specified). ... > The spec clearly doesn't specify whether a forward or a response.redirect() > is used. This means that it is up to the container to decide

Re: Struts-Tiles - Missing Content

2008-07-11 Thread Antonio Petrelli
2008/7/10 Ryan Henson <[EMAIL PROTECTED]>: > SUCCESS! I figured out what was going wrong with my code. Whew, what a > tangled mess. Errr... then ignore my last email :-) Ciao Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Struts-Tiles - Missing Content

2008-07-11 Thread Antonio Petrelli
2008/7/10 Ryan Henson <[EMAIL PROTECTED]>: > > I do not see your data > > > > It could be that you have an empty collection, so the bean is present but it is empty, and the does not execute. Antonio - To unsubscribe, e-m