Re: LOG4J in Struts2

2007-12-14 Thread hezjing
Hi Rajasekhar You can study the struts2-showcase-2.0.11.war which comes with the Struts2 distribution. You will see WEB-INF\lib\log4j-1.2.9.jar, WEB-INF\classes\log4j.properties and the Java files in WEB-INF\src\java\org\apache\struts2\showcase\action directory. On 12/14/07, Rajasekhar [EMAIL

RE: LOG4J in Struts2

2007-12-14 Thread Rajasekhar
Thank you for your response i will work out with an example -Original Message- From: hezjing [mailto:[EMAIL PROTECTED] Sent: Friday, December 14, 2007 2:10 PM To: Struts Users Mailing List Subject: Re: LOG4J in Struts2 Hi Rajasekhar You can study the struts2-showcase-2.0.11.war

Re: REST plugin and security

2007-12-14 Thread Martin Gilday
Hi Don, I think we are using WS-Security, but I have not been too involved in it. I just wanted to confirm that a reasonable equivalent was available. Is it possible with the S2 plugin to do one of the classical examples of getting resources by date e.g. /orders/2007/12/13. It would be great

Re: [S2]Checkbox value

2007-12-14 Thread carmi_cd
i already solved it.. i hope this help other new struts user just replaced it with this one.. s:checkbox name=userId fieldValue=%{getUserId()}/ carmi_cd wrote: hello i have a checkbox which supposed to have the value of UserId property of the action class I try to do it this way but

Struts + Xwork + xwork-conversion.properties

2007-12-14 Thread volnei Granado Munhoz
Hi, i'm using xwork 2.1 with struts 2.1 and Guice to Inject my dependencies. My struts.xml contains the follow line constant name=struts.objectFactory value=guice / and when i start my servlet container the NPE is throwed and aplication is broken... When remove or comment the

Tabbedpannel issue

2007-12-14 Thread Rajasekhar
hi to all i am getting issue in tabbebpannel like maintaining the state of tab in multipletabs means when i refresh the page previous tab should be selected that was last accessed tab. in this context selectTab is property is given but it's showing Depricated Message On Jsp please

Re: Required validator dosen't work

2007-12-14 Thread Arpan Debroy
Thank you Laurie , Using 'Long' is the correct way to get 'required' validator worked. But now I want show error message when user will put string or character instead of any long value. What validator to use? On Dec 11, 2007 7:13 PM, Laurie Harper [EMAIL PROTECTED] wrote: The 'requiredstring'

Re: STRUTS2.1 JARS

2007-12-14 Thread Pedro Herrera
go to : http://people.apache.org/builds/struts/2.1.0/ Herrera Rajasekhar-3 wrote: Hi to all how can i download struts2.1 jars is this released? if so can you send me url Best Regards, Rajasekhar Yenduva B.tech(IT), Jr J2EE Developer, Miracle Software Systems, Inc

STRUTS2.1 JARS

2007-12-14 Thread Rajasekhar
Hi to all how can i download struts2.1 jars is this released? if so can you send me url Best Regards, Rajasekhar Yenduva B.tech(IT), Jr J2EE Developer, Miracle Software Systems, Inc Website: www.miraclesoft.com Email: [EMAIL PROTECTED] Work: 248-233-1814 Mobile: 9290842877

Re: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-14 Thread Jeromy Evans
volnei Granado Munhoz wrote: Hi, i'm using xwork 2.1 with struts 2.1 and Guice to Inject my dependencies. My struts.xml contains the follow line constant name=struts.objectFactory value=guice / and when i start my servlet container the NPE is throwed and aplication is broken... When

RES: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-14 Thread volnei Granado Munhoz
Hi Jeromy, I think this is not a configuration problem (probably a Xwork|Struts bug), my object factory works fine when I don't use xwork-conversion.properties, it's inject all of my objects except the converter objects. You can show me your configs?? Thanks... -Mensagem original-

RE: Problem with web.xml and Struts 1.3

2007-12-14 Thread Indresh Chadha
Even I'm facing the same issue. The only difference in my problem is that I'm not using the struts jar but the actual source code. So the struts classes are getting compiled in the WEB-INF/classes folder. When I start my server it gives me the same error. The ActionServlet.java contains the

Re: Required validator dosen't work

2007-12-14 Thread Alberto A. Flores
You may want to read on http://struts.apache.org/2.x/docs/type-conversion.html The last topic Type Conversion Error Handling. I had the same problem. It turns out that there's no validation concept of a type (similar to Struts1), however Struts 2 will give you control over type conversion

Re: cannot redirect to an URL

2007-12-14 Thread Paranoid_Fabio
Yes. The first time i saw the errore message I thought the same. It was like the content of the variable was the page itself, rather then the url. But I checked it and I can assure you that the content of the variable is actually the url, not the page itself. Nils-Helge Garli wrote: The

Re: formBean I18N

2007-12-14 Thread Alberto A. Flores
Do you mean changing the name of the method? Or calling the resource bundle to generate a string (using the proper locale)? Chris Pat wrote: Hello Is it possible to have the reset() of a formBean be internationalized? I can do it on the jsp. However how do I refer to the correct language

cannot redirect to an URL

2007-12-14 Thread Paranoid_Fabio
Hello. I've a problem whit redirect and i'm really going mad. All i want to do is very simple. I've an action that sends a post to a server. The server answer with a page to which i've to redirect the client. When the server answer, i read the page in a buffer and i extract the url to which i've

formBean I18N

2007-12-14 Thread Chris Pat
Hello Is it possible to have the reset() of a formBean be internationalized? I can do it on the jsp. However how do I refer to the correct language message resource bundle in the formBean itself? tia

Re: Problem with web.xml and Struts 1.3

2007-12-14 Thread Alberto A. Flores
How are you deploying your application? Are you both getting the same Stacktrace? Even if you use the Struts source code, there are many dependencies that come as part of the Struts distribution (commons-logging, digester, etc). I will start debugging as follows: - Unpack your war manually.

[S2] Writing an enhanced tree component...

2007-12-14 Thread Joachim Ansorg
Hi all, for the application I'm working on I need a tree component which is more configurable/capable than the current Struts2 s:tree component. Basically I want to use it like this: t:tree rootNode=%{rootNode} typeProperty=type childCollectionPropert=children t:treeNode type=group

RE: Required validator doesn't work

2007-12-14 Thread Engelking, Nicholas
There is a convince validator for types that uses the backing type errors to generate validation errors. I use it to ensure that letters aren't entered in my number fields. The annotation is ConversionErrorFieldValidator For example: @ConversionErrorFieldValidator(message=Please enter only

Re: cannot redirect to an URL

2007-12-14 Thread Paranoid_Fabio
I solved the problem.. It was just a stupid error in a xml file :( Thank you anyway for the advice. Paranoid_Fabio wrote: Yes. The first time i saw the errore message I thought the same. It was like the content of the variable was the page itself, rather then the url. But I checked it

Struts 2 + Sitemesh decorator mapping

2007-12-14 Thread Filipe David Manana
Hi, Anyone using Struts 2 with multiple Sitemesh decorators? I am trying to map a decorator to a specific subset of my webapp's URI space. The structure of my src/main/webapp dir is: [EMAIL PROTECTED]:~/apache/struts/cdbweb2/src/main/webapp$ tree . |-- WEB-INF | |-- decorators | | `--

Re: portlet with a servlet

2007-12-14 Thread Nils-Helge Garli Hegvik
Sorry I can't be of much help, as I have never tried a scenario like this. I assume this happens because the WSRP-container request and the servlet request acts as two different clients. I did find an interesting thread [1] that's not really the same as your problem, but might contain some

Re: Poor Performance Hangs in IE

2007-12-14 Thread Andrea Rizzini
Any development on the strange behaviour that forms hangs for about 5-6 minutes when loading data from the database? I have a similar problem on an application. On the tsting environment ie7 and firefox works perfectly on ie6 xpsp2 forms hangs for several minutes before completry displaying all

Re: formBean I18N

2007-12-14 Thread Chris Pat
Hi Alberto The second. To result with a localized text string for the value of the field when reset() is called. Alberto A. Flores [EMAIL PROTECTED] wrote: Do you mean changing the name of the method? Or calling the resource bundle to generate a string (using the proper locale)? Chris Pat

Re: Poor Performance Hangs in IE

2007-12-14 Thread Martin Gainty
took a look at enabling 'cache' and 'compression' capabilities in IE http://msdn2.microsoft.com/en-us/library/bb250442.aspx HTH M-- - Original Message - From: Andrea Rizzini [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, December 14, 2007 11:59 AM

Re: formBean I18N

2007-12-14 Thread Alberto A. Flores
Take a look at: http://struts.apache.org/1.x/apidocs/org/apache/struts/validator/Resources.html#getMessage(javax.servlet.http.HttpServletRequest,%20java.lang.String) Hope this helps... It should be straight forward. Chris Pat wrote: Hi Alberto The second. To result with a localized text

Re: Required validator dosen't work

2007-12-14 Thread Dave Newton
--- Arpan Debroy [EMAIL PROTECTED] wrote: Using 'Long' is the correct way to get 'required' validator worked. But now I want show error message when user will put string or character instead of any long value. What validator to use? If you're using the defaultStack this is done for you; type

Parameters to rendering report in format XLS

2007-12-14 Thread Manoel Pimentel
Hi to everyone I use the action of jasper type to rendering report in format XLS in my application, it work very fine, but, now I need set the few parameters like JRXlsExporterParameter.IS_DETECT_CELL_TYPE. Please, i need to know, how I can put this options in my struts.xml. Regards,

StrutsTypeConverter API

2007-12-14 Thread Alberto A. Flores
Does anyone knows why the API for the StrutsTypeConverter abstract class takes an array of Strings instead of a single one (the convertFromString method)? The sample app seems to be always checking for the first element. Is OGNL supposed to add more? Any feedback will be appreciated...

Re: [struts] Struts 2 + Sitemesh decorator mapping

2007-12-14 Thread Dale Newfield
Filipe David Manana wrote: Anyone using Struts 2 with multiple Sitemesh decorators? Yep. You mention using more than one decorator, but the decorators.xml file you show only has one. It's scanned in order, and the first matching one is used. Do you have your other decorator (with /*)

Re: portlet with a servlet

2007-12-14 Thread Brian Relph
Thank you for the response. After more investigation, and looking over the WSRP specification, it appears that the remote portlet producer is responsible for maintaining a users session with a portlet. The particular producer i am using is from ibm, and it seems that its interpretation (or maybe

Re: RES: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-14 Thread Jeromy Evans
Sorry, that's what I meant - the guice plugin may not be setup for 2.1 correctly (as in a bug in the plugin). I'll take a look at it myself when I get a chance too. volnei Granado Munhoz wrote: Hi Jeromy, I think this is not a configuration problem (probably a Xwork|Struts bug), my object

Re: [S2]Checkbox formatting..

2007-12-14 Thread Jeromy Evans
Setting the checkbox theme to simple will give you a plain HTML checkbox: s:checkbox theme=simple name=userId fieldValue=%{getUserId()}/ Otherwise you need to create your own theme for the checkbox: http://struts.apache.org/2.0.11/docs/themes-and-templates.html carmi_cd wrote:

Re: Problem with web.xml and Struts 1.3

2007-12-14 Thread Indresh Chadha
I'm deploying the ear file on Websphere 5.1. This error occurs only when I try to use the source code. If I use the struts jar file and place it in the lib folder, it works as desired. I've checked in my war file also, the web.xml is present. I'm using th fully qualified name