Re: Struts 2, Session Management and WorkFlow.

2010-09-17 Thread RogerV
rahulmohan wrote: The page is correct. It supports only a single conversation as of now. I have a modified version which supports multiple conversations. Couldn't get around to committing it so far. Will be happy to share the code informally. Given that it's me who is bleating

Re: Struts 2, Session Management and WorkFlow.

2010-09-17 Thread Rahul Mohan
Roger, Can I simply mail the eclipse project to you? We can discuss the usage over email and get it running. I am planning to work on this over the next week and therefore we can actually release the plugin formally in a week or two. Regards, Rahul rahulmohan wrote: The page is

Re: Struts 2, Session Management and WorkFlow.

2010-09-17 Thread RogerV
Hi Rahul, Please send it to rogerdotvarleyatgooglemaildotcom Thanks Roger -- View this message in context: http://old.nabble.com/Struts-2%2C-Session-Management-and-%22WorkFlow%22.-tp29726121p29736089.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Javascript proble in sx:civ in struts2

2010-09-17 Thread Alex Rodriguez Lopez
I don't have a definite answer, but just keep in mind that: - The Dojo plugin is deprecated, you might want to consider other ways of achieving the same thing. - For the ajax tags to work you have to include the head tag ( sx:head/ ). Please read:

Struts 1 and thread safety

2010-09-17 Thread Norbert Hirneisen
Hello, I have al large Struts 1 application with a modified DispatchAction class. Most action classes are derivatives from this class. In the webapp I have several projects defined. The project can be determined by analysing the URL. This is done in the central DispatchAction-class by using class

RE: Javascript proble in sx:civ in struts2

2010-09-17 Thread Martin Gainty
Good Advice struts anchor tag: href The URL to call to obtain the content. Note: If used with ajax context, the value must be set as an url tag value. --the javascript anchor alternative references struts-dojo-tags uri and allows a javascript handler as illustrated here: %@ taglib prefix=sx

URLRewrite, maybe?

2010-09-17 Thread Greg Akins
I'm having a bit of a mental block on this one. Using Struts2, I want to redirect paths like example.com/Partner55/index.action to example.com/index.action after I've using a Filter to get the Partner value from the URL Can anyone help point me in the right direction? Is URLRewrite the correct

s:action

2010-09-17 Thread CRANFORD, CHRIS
Can someone illustrate some good uses of the s:action tag? It's one tag that I haven't used in Struts2 but I suspect I could get a lot of utility out of it, particularly by modularizing my actions. - To unsubscribe, e-mail:

Message resources -- 2 suggestions and 1 question

2010-09-17 Thread java . rgm
On this page: http://struts.apache.org/2.2.1/docs/message-resource-files.html Suggestion -- discuss (or at least link to) PropertyResourceBundle MessageFormat patterns This page should include an example to the effect of: numUsers = {0,choice,0#No Users|1#1 User|1{0} Users} Suggestion -- Expand

Re: Transparently handling a missing image

2010-09-17 Thread java . rgm
In case it helps anyone else (or in case anyone wants to tell me how much of a bad idea this is), to solve this problem I ended up writing my own SkinFilter class (implements Filter) which looks for a skin parameter in the HttpSession. If it's there, then the servlet request is wrapped in a

Re: URLRewrite, maybe?

2010-09-17 Thread Matt Meola
I have used URLRewrite with struts2, and it works quite well. On Fri, 2010-09-17 at 12:24 -0400, Greg Akins wrote: I'm having a bit of a mental block on this one. Using Struts2, I want to redirect paths like example.com/Partner55/index.action to example.com/index.action after I've using a

S1: Problem overriding processValidate() from RequestProcessor

2010-09-17 Thread Oscar
Hi to all. I'm working on a project using Struts 1.1 because those are client requirements. I override RequestProcessor and some of it's methods. like processRoles, processActionPerform, and so on. I want to implement a logic like Struts 2 Preparable interface, where if you implement in your

Re: S1: Problem overriding processValidate() from RequestProcessor

2010-09-17 Thread Dave Newton
You only call prepareAfter if there aren't validation errors--if there are, it won't be called. On Fri, Sep 17, 2010 at 4:48 PM, Oscar oscar.kalde...@gmail.com wrote: Hi to all. I'm working on a project using Struts 1.1 because those are client requirements. I override RequestProcessor and

Re: S1: Problem overriding processValidate() from RequestProcessor

2010-09-17 Thread Oscar
But doesn't exist a way to do that? I mean, execute super.processValidate() and execute code after that? Because it will be useful to prepare stuff after you do something in the action, for example, insert something in the action and after prepare a list of items or something like that. 2010/9/17

Re: S1: Problem overriding processValidate() from RequestProcessor

2010-09-17 Thread Dave Newton
... Of course you can execute code after that. *You're* executing code after that--but when there are validation errors the code you'll execute is the check to see if there were validation errors and the type check. On Fri, Sep 17, 2010 at 5:51 PM, Oscar oscar.kalde...@gmail.com wrote: But

Re: S1: Problem overriding processValidate() from RequestProcessor

2010-09-17 Thread Oscar
But i understand that, if there are validation errors, in this line: boolean resValidacion = super.processValidate(request, response, form, mapping); resValidacion will be false, but instead that looks like the execution breaks in that point and redirects to input 2010/9/17 Dave Newton

Re: S1: Problem overriding processValidate() from RequestProcessor

2010-09-17 Thread Dave Newton
I'm skeptical--does the superclass throw an exception? On Fri, Sep 17, 2010 at 6:26 PM, Oscar oscar.kalde...@gmail.com wrote: But i understand that, if there are validation errors, in this line: boolean resValidacion = super.processValidate(request, response, form, mapping); resValidacion

Re: S1: Problem overriding processValidate() from RequestProcessor

2010-09-17 Thread Oscar
No, i was looking in the stack trace but there's no exception, just redirects to input page. 2010/9/17 Dave Newton davelnew...@gmail.com I'm skeptical--does the superclass throw an exception? On Fri, Sep 17, 2010 at 6:26 PM, Oscar oscar.kalde...@gmail.com wrote: But i understand that, if

Struts 2.2.1 gives There is no Action mapped for namespace / and action name .

2010-09-17 Thread Dean Schulze
I've got a simple Struts 2 application that I build and deploy to glassfish with Netbeans.  When I point the web browser to http://localhost:8080/Struts2Hello/login.action/ it gives this error: There is no Action mapped for namespace / and action name . My action is named login.  Why does it

Re: Struts 2.2.1 gives There is no Action mapped for namespace / and action name .

2010-09-17 Thread Dave Newton
What happens if you leave off the trailing slash? (And Javassist is required because OGNL has a dependency on it.) Dave On Saturday, September 18, 2010, Dean Schulze dean_w_schu...@yahoo.com wrote: I've got a simple Struts 2 application that I build and deploy to glassfish with Netbeans.