Problems with sx tags

2008-08-13 Thread oscar perez
Hi there, I've been using sx tags for a while now and I still think they are very nice and simple to use, however I found some critical problems which make me move from them. One of the problems is that if in the returned AJAX content is included any sx tag then if there is any javascript in the re

Acces Control Within Struts2

2008-08-13 Thread tom tom
Hi, We are using struts2 2.0.6 and now we have a requirement to have some Access Control into it, That is we got some functions points and each ROLE got different access rigts against each function, if someone login to the System the UI will be presented based on these configurations. What I wa

Re: URL mapping in Struts 2

2008-08-13 Thread Kibo
Hi XML You can write your own ActionMapper. Look: http://struts.apache.org/2.x/docs/actionmapper.html I used debuger and I watched DefaultActionMapper. It help me. Jeromy Evans - Blue Sky Minds wrote: > > XML User wrote: >> Hi, >> >> How can I implement the URL mapping so that our URL w

Re: URL mapping in Struts 2

2008-08-13 Thread Jeromy Evans
XML User wrote: Hi, How can I implement the URL mapping so that our URL will always look like "www.abc.com/products/toys/acbtoy" It should not end with something like abctoy.action OR abctoy.do. Is there a way for making this happen? If so then can you please let me know with code? See t

Re: Liferay & Struts2 Portlets, ParametersInterceptor Exception, struts.portlet.action, struts.portlet.mode cannot be set

2008-08-13 Thread Edwin Quita
here's the link for the attachment: http://edwin.quita.googlepages.com/Maven2HowTo.doc hi Nils, just want to say good job on your s2 portlet jetty-pluto plugin =) because it boosted my productivity during my portlet development. in fact, i've written a short tutorial for portlet project manageme

Re: Using struts.xworkTextProvider (overriding the default TextProvider )

2008-08-13 Thread Olivier Lamy
Sorry for noise. It looks overriding methods from ActionSupport (as it implements TextProvider) helps me. Thanks, -- Olivier 2008/8/13 Olivier Lamy <[EMAIL PROTECTED]>: > Hi, > I'd like to overriding the default TextProvider to use my own > implementation (labels come from a database). > I have c

Re: Interceptors Doubt

2008-08-13 Thread Gabriel Belingueres
You may need to perform your post-processing inside a PreResultListener [1], that is, just before the result is executed. [1] http://struts.apache.org/2.1.2/docs/preresultlistener.html 2008/8/13, Raghunath <[EMAIL PROTECTED]>: > > Hi > I'm working on struts2 interceptors, which inherits WebWork.

Interceptors Doubt

2008-08-13 Thread Raghunath
Hi I'm working on struts2 interceptors, which inherits WebWork. My requirement at one interceptor: ->request--->Bread Interceptor : before invocation.invoke() ->Action <--response<---Bread Interceptor : after invocation.invoke() <--| 1)Interceptor will p

Re: Get path to the webapp

2008-08-13 Thread Dave Newton
--- On Wed, 8/13/08, Struts Two wrote: > Assuming you have a file named "test.txt" at the > root of your webapp, you can get the absolute path name to > the file with the following code snippet in ur interceptor. >     ActionContext context = actionInvocation.getInvocationContext(); >     HttpServl

Re: Get path to the webapp

2008-08-13 Thread Struts Two
Assuming you have a file named "test.txt" at the root of your webapp, you can get the absolute path name to the file with the following code snippet in ur interceptor.     ActionContext context = actionInvocation.getInvocationContext();     HttpServletRequest request = (HttpServletRequest) conte

Re: Override java.lang.Object [PropertyAccessor]

2008-08-13 Thread Edward Yakop
On Wed, Aug 13, 2008 at 8:19 PM, Martin Gainty <[EMAIL PROTECTED]> wrote: > > http://struts.apache.org/2.0.11.2/docs/bean-configuration.html > > name must be unique for the declared type > try changing the name to something unique If I set it to anything else, my property accessor won't be handlin

Using struts.xworkTextProvider (overriding the default TextProvider )

2008-08-13 Thread Olivier Lamy
Hi, I'd like to overriding the default TextProvider to use my own implementation (labels come from a database). I have configured in my struts.properties : struts.xworkTextProvider=fqcn of my TextProvider implementation. But at the end it doesn't works :-(. I have found some jira issues some says

RE: Override java.lang.Object [PropertyAccessor]

2008-08-13 Thread Martin Gainty
http://struts.apache.org/2.0.11.2/docs/bean-configuration.html name must be unique for the declared type try changing the name to something unique ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates

Re: [S2] Proper way to clear error messages in session scope

2008-08-13 Thread Diego Manilla Suárez
Well, I've put this line just below the tags and : <%((ActionSupport) ActionContext.getContext().getActionInvocation().getAction()).clearErrorsAndMessages();%> I don't like putting Java code on JSPs and I'm sure there is a better way to do it, but so far it's working. Regards, Diego. Die

Override java.lang.Object [PropertyAccessor]

2008-08-13 Thread Edward Yakop
Hi, I'm working on struts2 + qi4j plugin. One of the feature that we want to support is for struts 2 to understand qi4j property and associations. IIUC, I would need to register my own PropertyAccessor for all objects. When I tried to do this, by declaring: This error occured: Caused by: com.

Re: Liferay & Struts2 Portlets, ParametersInterceptor Exception, struts.portlet.action, struts.portlet.mode cannot be set

2008-08-13 Thread Nils-Helge Garli Hegvik
Those can safely be ignored but feel free to register a JIRA issue so we can see if we can do something to prevent these messages to appear in the log. One way to do it is to filter them with your logging configuration. Nils-H On Wed, Aug 13, 2008 at 1:12 PM, Torsten Krah <[EMAIL PROTECTED]> wrot

Liferay & Struts2 Portlets, ParametersInterceptor Exception, struts.portlet.action, struts.portlet.mode cannot be set

2008-08-13 Thread Torsten Krah
Deploying a struts2 example app to liferay (5.1.1) i am facing this error output: 13:07:39,410 INFO [STDOUT] 13:07:39,410 ERROR [com.opensymphony.xwork2.interceptor.ParametersInterceptor] ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'struts.portlet.action' on '

Re: Simple validation does not work

2008-08-13 Thread Anton Bashmakov
Hi everyone! I've solved the problem it was in the version of JBOSS, I rolled back to 4.0.5.GA and now everything works perfect. 2008/8/10 Anton Bashmakov <[EMAIL PROTECTED]> > Actually I can't find xwork 2.0.6, it's only 2.1 after 2.5 on the official > xwork site. I've downloaded strats 2.0.11.2

Re: exception unregistering portlet @undeploying the webapp, configuration manager -> null

2008-08-13 Thread Torsten Krah
Am Mittwoch, 13. August 2008 09:47:07 schrieb Nils-Helge Garli Hegvik: > Which server are you running? This does happen on JBoss 4.0.5 with Tomcat 5.5.20 (Liferay 5.x) And this does happen too on Pluto 1.1.5 with Tomcat 6.0.13. -- Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. Siehe h

Re: exception unregistering portlet @undeploying the webapp, configuration manager -> null

2008-08-13 Thread Nils-Helge Garli Hegvik
It might be related to these two issues: https://issues.apache.org/struts/browse/WW-2509 https://issues.apache.org/struts/browse/WW-2523 Which server are you running? Nils-H On 8/12/08, Torsten Krah <[EMAIL PROTECTED]> wrote: > Undeploying a struts2 webapp and deregister the portlets does resul