You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kommana, Sridhar" <Ko...@principal.com> on 2004/04/09 23:02:20 UTC

Servlet filters with Struts

Hi,

  Iam using TimerFilter in my application which gives the response time taken for executing the each Action class. Does this will affect the performance of the application on production environment. Is there any known performance or stability issues with Servlet filters with Struts?

Thanks in advance,

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Storing encrypted passwords for database connection

Posted by Ramil Mirhasanov <ra...@dolunay.com.tr>.
In my project I want to encrypt database users' passwords.
They can be stored in .properties file or deployment descriptor, maybe.
Are there any suggestions how to implement this task?
Are there some mechanisms in struts framework that support the encrypted
storage of passwords?

Thank you in advance!
Ramil


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Servlet filters with Struts

Posted by Craig McClanahan <cr...@apache.org>.
as as wrote:

>Hi,
> 
>I have the same issue.Seems struts is running pretty slow (or porbably its becuase of back end database connections to mysQL using Hberntae).Any waqys I can improve the perfrmance. I am using Weblogic 7.0
>  
>

The most important consideration when dealing with performance issues is 
to understand where the bottlenecks are that are affecting you.  For 
many web applications it tends to be database access, but there's no way 
to generalize, because every application is different.

One approach to investigating this, for example, would be to copy the 
database access logic of your webapp into a stand-alone test program, 
and run some timing tests there, with no web container or user interface 
framework involved. 

> 
>Thanks so much as this will highly help in running my jsp's faster ( I did try including jsp pre-compilation into jasper).
> 
>  
>
Precompiling JSPs only helps make the very first request to that page 
run faster ... it has zero impact on ongoing performance.

>Regards,
>Sam.
>
>  
>
Craig

PS:  The servlet container's implementation of a filter will typically 
have about the same performance impact
as a RequestDispatcher.forward() call, which isn't much -- basically 
it's a lookup and a method call.  Obviously, anything your Filter 
actually does will affect the timing, but adding simple stuff like "how 
long did this request take to process" and then logging that will have 
little or no visible impact unless your webapp is overloaded with users 
or something like that.

>Bill Siggelkow <bi...@bellsouth.net> wrote:
>Well of course it will affect performance because the container is doing 
>stuff it would not be doing otherwise -- the question is more like "will 
>the negative performance impact be significant?" I would say if you 
>calculating the elapsed time it should not be. It depends on what your 
>filter is doing with the data -- it is simply logging it out to the 
>console it should be OK -- the other thing that is nice about filters is 
>that they can easily be turned off via the filter mapping.
>
>
>Kommana, Sridhar wrote:
>  
>
>>Hi,
>>
>>Iam using TimerFilter in my application which gives the response time taken for executing the each Action class. Does this will affect the performance of the application on production environment. Is there any known performance or stability issues with Servlet filters with Struts?
>>
>>Thanks in advance,
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>---------------------------------
>Do you Yahoo!?
>Yahoo! Tax Center - File online by April 15th
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Servlet filters with Struts

Posted by as as <sa...@yahoo.com>.
Hi,
 
I have the same issue.Seems struts is running pretty slow (or porbably its becuase of back end database connections to mysQL using Hberntae).Any waqys I can improve the perfrmance. I am using Weblogic 7.0
 
Thanks so much as this will highly help in running my jsp's faster ( I did try including jsp pre-compilation into jasper).
 
Regards,
Sam.

Bill Siggelkow <bi...@bellsouth.net> wrote:
Well of course it will affect performance because the container is doing 
stuff it would not be doing otherwise -- the question is more like "will 
the negative performance impact be significant?" I would say if you 
calculating the elapsed time it should not be. It depends on what your 
filter is doing with the data -- it is simply logging it out to the 
console it should be OK -- the other thing that is nice about filters is 
that they can easily be turned off via the filter mapping.


Kommana, Sridhar wrote:
> Hi,
> 
> Iam using TimerFilter in my application which gives the response time taken for executing the each Action class. Does this will affect the performance of the application on production environment. Is there any known performance or stability issues with Servlet filters with Struts?
> 
> Thanks in advance,


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th

Re: Servlet filters with Struts

Posted by Bill Siggelkow <bi...@bellsouth.net>.
Well of course it will affect performance because the container is doing 
stuff it would not be doing otherwise -- the question is more like "will 
the negative performance impact be significant?"  I would say if you 
calculating the elapsed time it should not be.   It depends on what your 
filter is doing with the data -- it is simply logging it out to the 
console it should be OK -- the other thing that is nice about filters is 
that they can easily be turned off via the filter mapping.


Kommana, Sridhar wrote:
> Hi,
> 
>   Iam using TimerFilter in my application which gives the response time taken for executing the each Action class. Does this will affect the performance of the application on production environment. Is there any known performance or stability issues with Servlet filters with Struts?
> 
> Thanks in advance,


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org