Re: [OT] Bandwidth calculation

2009-05-18 Thread Ramanathan RV
If you have hosted your container behind a web server like apache, the logs from the web-server would give you the measure. If not, then you could write a filter that intercepts all requests and dumps the size of the response. Thanks Ram On Mon, May 18, 2009 at 8:27 PM, Burton Rhodes

[Struts2]ExecAndWaitInterceptor and BackgroundProcess issue

2008-08-21 Thread Ramanathan RV
Hello, I seem to have hit an issue with using ExecAndWaitInterceptor because of the way it is designed. The background process is invoked in this fashion: *public void run() { try { beforeInvocation(); result =

Re: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-08-11 Thread Ramanathan RV
Hello, This has always been a problem. And a quick and decent way of solving this is to forget OGNL and write your own implementation. Below listed the code from AppFuse project which essentially creates a tag to expose all the constants. *package com.company.app.webapp.taglib; import

Re: Struts 2 and radio buttons

2008-08-11 Thread Ramanathan RV
Hi, I would rather suggest you write some CSS code to achieve this. Something as simple like label { display: block; } should work. Changing a theme only makes sense when you need to make some drastic changes like modifying layout of forms. On Sun, Aug 10, 2008 at 1:48 AM, Michael Finney

S2 and Spring - exception mapping

2008-07-29 Thread Ramanathan RV
Hello, As per spring documentation, it is said that whenever an exception occurs, spring framework would eventually rollback transaction, if any active is present. I am using spring in combination with S2 and I do map all the exceptions taking the user to error page. I am just wondering if when

Re: S2 and Spring - exception mapping

2008-07-29 Thread Ramanathan RV
Hey, Thanks guys. I got the answer. Spring indeed releases the connection. On Tue, Jul 29, 2008 at 11:27 PM, Ramanathan RV [EMAIL PROTECTED]wrote: Hello, As per spring documentation, it is said that whenever an exception occurs, spring framework would eventually rollback transaction, if any

[S2] JSP pages not showing error/debug info

2008-07-27 Thread Ramanathan RV
Hello, When I try to access a list that is not there at all on the valuestack, I am left with empty page without any information. For instance, s:select headerKey= headerValue=Select theme=simple name=form.cesd.year list=form.shortyearsList / and form.shortyearsList donot exist at

Struts2 - OGNL Calling static method

2008-06-30 Thread Ramanathan RV
Hello I wish to call a static method from the view and make the results available to my view. I believed I would have to do something like this to achieve that : s:set name=docs scope=request value=@[EMAIL PROTECTED](product)/ The above piece of code indeed calls the method. But the result

[S2] Selecting value in radio elements

2008-04-16 Thread Ramanathan RV
Hello, s:radio list=#{'Y':'Yes','N':'No'} name=r2/ In this list, how do I preselect No? -- Thanks Ram

Type conversion with enum elements

2008-04-15 Thread Ramanathan RV
Hello, I wish to display/read value that belongs to an enumerated type. Struts seems to handle Class and Enum differently. For instance, *xwork-conversion* com.company.utils.Constants.EducationalQualification=com.company.ui.utils.EducationalQualificationConverter