Re: using a custom struts.multipart.parser in struts2.1.8.1

2010-01-27 Thread Lukasz Lenart
2010/1/27 Stephen Ince : > The following may not be necessary. > Struts.xml > > >     >     name="jakartax" > class="com.loadgeneral.struts2.JakartaMultiPartRequestx" > scope="default" /> >     I'm curious why this didn't work... th

S1: Spring with Struts 1.3.5

2010-01-27 Thread Givler, Eric
Is anyone using Struts 1.3.x with the COR pattern (chain-config.xml and ComposableRequestProcessor) with Spring? If so, how are you using Spring-defined Service Beans? I haven't looked into this combination at all since I've been using Struts 1.3.x. I'm just writing my own DAOs called by Acti

Re: using a custom struts.multipart.parser in struts2.1.8.1

2010-01-27 Thread Brice Roncace
Hot dang Steve! Thanks! I have a feeling you've saved me a ton of frustration. This really should be documented somewhere. . . Brice On Wed, Jan 27, 2010 at 3:00 PM, Stephen Ince wrote: > Brice, > I went through a similiar issue. Here is how I resolved it. I spent > days on it. You have do

Re: using a custom struts.multipart.parser in struts2.1.8.1

2010-01-27 Thread Stephen Ince
Brice, I went through a similiar issue. Here is how I resolved it. I spent days on it. You have do it via a plugin. This is not documented any where. create a plugin. e.g fileupload.jar and put in under WEB-INF/lib The jar file should have the classes and a struts-plugin.xml file. struts-plugi

using a custom struts.multipart.parser in struts2.1.8.1

2010-01-27 Thread Brice Roncace
I'm trying to use a custom implementation of the org.apache.struts2.dispatcher.multipart.MultiPartRequest interface, but even after changing the appropriate struts2 constant value I still end up with the default JakartaMultiPartRequest. Here's the change I've made to my struts.xml file: {code} {

Any way to load resources in java.util.ResourceBundle

2010-01-27 Thread Bhaarat Sharma
We have seen situations where sometimes the global resource bundles are lost intermittently for some sessions. We are in a clustered/shared environment where multiple apps are deployed onto a GlassFishV2 server. Multiple apps share the struts2 core jars. We have some pages where we have written a

Re: Chain Getting Original URI

2010-01-27 Thread Brian Thompson
On Wed, Jan 27, 2010 at 9:25 AM, Dale Newfield wrote: > > P.S.: > Patient: Doctor, doctor! It hurts when I do *this*. > Doctor: Stop doing that. > > > Hopefully *this* isn't something like "walking" ;)

Re: Chain Getting Original URI

2010-01-27 Thread Dale Newfield
CRANFORD, CHRIS wrote: That doesn't solve my original problem Gabriel. It does if you are not tied to using chaining, which is almost always a bad idea. Why isn't this implemented simply as an interceptor? -Dale P.S.: Patient: Doctor, doctor! It hurts when I do *this*. Doctor: Stop doin

Re: Chain Getting Original URI

2010-01-27 Thread Brian Thompson
The original Action that threw the exception ought to be included in the stack trace. That wouldn't easily lend itself to auto-parsing though. You might be able to pass the request URI to teh error-handler with something like this in struts.xml: errorHandler

Re: struts2 and tables

2010-01-27 Thread Brian Thompson
Something like this should do the trick: -Brian On Wed, Jan 27, 2010 at 8:13 AM, Saeed Iqbal wrote: > For header this is an interesting situation i have not come across > yet. I cannot say anything. > > On Wednesday, January 27, 2010, Arpan wrote: > > Hi Saeed, > > > > Replacing that with ch

How to Test Struts 2 Actions Without a Container

2010-01-27 Thread Shane Witbeck
Hi all, I put together a blog post explaining how to test Struts actions using Spring integration without using a container: http://www.digitalsanctum.com/2010/01/25/how-to-test-struts-2-actions-without-a-container/ I thought this might be a helpful resource for those using Struts and Spring.

Re: internationalize displaytag into struts2

2010-01-27 Thread Lukasz Lenart
The simple solution is to checkout the org.displaytag.localization.I18nWebworkAdapter and adjust it to Struts 2 (as Struts 2 is formerly WebWork) Or evern better, use below code and put in displaytag.properties file line like this: locale.provider=org.demo.web.displaytag.I18nStruts2Adapter *

Re: internationalize displaytag into struts2

2010-01-27 Thread Saeed Iqbal
Label= that On Wednesday, January 27, 2010, Saeed Iqbal wrote: > Trying %{getText('xxx')} > > On Wed, Jan 27, 2010 at 6:24 PM, Nicola Bortolotti > wrote: > Sorry Saiid, I feel very dummy; I will try a little more, then I back > on it in next days.. > > I've just read it display tag reference, b

Re: struts2 and tables

2010-01-27 Thread Saeed Iqbal
For header this is an interesting situation i have not come across yet. I cannot say anything. On Wednesday, January 27, 2010, Arpan wrote: > Hi Saeed, > > Replacing that with checkbox element will give me checkbox for every row for > that column. > But still my column header or title  will not h

RE: Chain Getting Original URI

2010-01-27 Thread CRANFORD, CHRIS
That doesn't solve my original problem Gabriel. What I need is a way that I can determine which Action threw the exception so that I could include that Request URI in the exception email and logged entry. I think if I use a redirect result type, to Struts when it redirects it is considered a

Re: struts2 and tables

2010-01-27 Thread Arpan
Hi Saeed, Replacing that with checkbox element will give me checkbox for every row for that column. But still my column header or title will not have any checkbox. On Wed, Jan 27, 2010 at 5:58 PM, Saeed Iqbal wrote: > Replace the > > > paramProperty="id" headerClass="listHeader"> > >

Re: Re: Re: Re: internationalize displaytag into struts2

2010-01-27 Thread Saeed Iqbal
Trying %{getText('xxx')} On Wed, Jan 27, 2010 at 6:24 PM, Nicola Bortolotti < bortolotti.nic...@gmail.com> wrote: > Sorry Saiid, I feel very dummy; I will try a little more, then I back > on it in next days.. > > I've just read it display tag reference, but nothing new. > > As I told you, my prop

Re: Re: Re: Re: internationalize displaytag into struts2

2010-01-27 Thread Nicola Bortolotti
Sorry Saiid, I feel very dummy; I will try a little more, then I back on it in next days.. I've just read it display tag reference, but nothing new. As I told you, my properties file are already named as "package_it.properties", "package.properties", and, as I said before, in the same page, WORK

Re: Re: Re: internationalize displaytag into struts2

2010-01-27 Thread Saeed Iqbal
Now your properties file must be called package.properties :) see display tag refernce On Wed, Jan 27, 2010 at 5:30 PM, Nicola Bortolotti < bortolotti.nic...@gmail.com> wrote: > Thank you Saiid, but it continue not working.. > Probably I don't understand. I've update this constant > struts.custo

Re: Re: Re: internationalize displaytag into struts2

2010-01-27 Thread Nicola Bortolotti
Thank you Saiid, but it continue not working.. Probably I don't understand. I've update this constant struts.custom.i18n.resources=package in "struts2-core-2.1.6.jar/org/apache/struts2/default.properties" (the only default.properties file into my project), and restart server, but, AS BEFORE MODIFY

Re: struts2 and tables

2010-01-27 Thread Saeed Iqbal
Replace the On Wed, Jan 27, 2010 at 5:23 PM, Arpan wrote: > Hi Saeed, > > Thanks for the reply. But how can you display your checkbox inside that > "column Title"? > > On Wed, Jan 27, 2010 at 4:45 PM, Saeed Iqbal wrote: > > > For display you can close your display tag open an

Re: struts2 and tables

2010-01-27 Thread Arpan
Hi Saeed, Thanks for the reply. But how can you display your checkbox inside that "column Title"? On Wed, Jan 27, 2010 at 4:45 PM, Saeed Iqbal wrote: > For display you can close your display tag open and end your tag > separately. > In between you can place your checkbox. > For example: > para

Re: Re: internationalize displaytag into struts2

2010-01-27 Thread Saeed Iqbal
Like that it wont work. Mention your properties file in struts.properties or struts.xml constant struts.custom.i18n.resources=package in that the xxx in titleKey must be defined. On Wed, Jan 27, 2010 at 4:40 PM, Nicola Bortolotti < bortolotti.nic...@gmail.com> wrote: > I've just try that! > Fol

Re: Re: internationalize displaytag into struts2

2010-01-27 Thread Nicola Bortolotti
I've just try that! Follow part of coding I've created "displaytag_IT.properties", "package_it.properties", "package_en.properties" and I've wrote into every file a property as xxx=property in the test code of my jsp_page, property were founded from struts tag but not from displaytag, in the

Re: struts2 and tables

2010-01-27 Thread Saeed Iqbal
For display you can close your display tag open and end your tag separately. In between you can place your checkbox. For example: For checking all (javascript) include an id with each checkbox and have onclick with the top one to be able to code in javascript to check all others. O

Re: struts2 and tables

2010-01-27 Thread Arpan
My scenario is that I need a column only for checkboxes. In the title there will be a checkbox and a link "Delete". How can I show these using display tag. When the user will select the top checkbox, all other checkboxes in that column should be selected or unselected accordingly. On Thu, Jan 7,

Re: internationalize displaytag into struts2

2010-01-27 Thread Saeed Iqbal
Use titleKey. On Wed, Jan 27, 2010 at 3:29 PM, Nicola Bortolotti < bortolotti.nic...@gmail.com> wrote: > Hi all, first of all, sorry for terrible English. > In these days I've developed my first, simple application with > struts2, and, after putting properties file in correct place, I've > inter

internationalize displaytag into struts2

2010-01-27 Thread Nicola Bortolotti
Hi all, first of all, sorry for terrible English. In these days I've developed my first, simple application with struts2, and, after putting properties file in correct place, I've internationalized it. Then I've looked for something about how to display a table (data grid) and, on your lists, I fou