Re: Performance issue

2008-12-13 Thread yorlick kilroy
but then howcome I'm getting such immense perfomace increases. I did a bit of profiling in eclpise IDE and it turned out that OGNL is the main performance killer ? On Sat, Dec 13, 2008 at 11:53 PM, Dave Newton wrote: > --- On Sat, 12/13/08, yorlick kilroy wrote: >> since I'm replacing all struts2

Re: Performance issue

2008-12-13 Thread Dave Newton
--- On Sat, 12/13/08, yorlick kilroy wrote: > since I'm replacing all struts2 accessor tags and expressions > in my jsps I use the '$' instead of the '%' and '#'. If you're accessing value stack objects via ${...} it's still OGNL under the hood--the S2 request wrapper will look for objects on th

Re: Performance issue

2008-12-13 Thread yorlick kilroy
since I'm replacing all struts2 accessor tags and expressions in my jsps I use the '$' instead of the '%' and '#'. Obviously there are convenience drawbacks such as the tags that let you push a value onto the ognl stack but the performance advantages overweigh the conveniences that struts2 tags of

Re: Validation and dispatcher

2008-12-13 Thread Andy Sykes
I guess I'm going to answer my own question here, though the fact that my question seems extremely ungoogleable(!) suggests I'm going about this ass-backwards... What I did was check hasFieldErrors() at the end of validation method of the form submission - if true, then I just rebuild my ob

set max size of c:out value

2008-12-13 Thread gbattine
Hello guys, I'm working for the first time on Struts. I need your help for a easy (I think) question. In my Jsp I've a table in which I populate rows from a list in a bean, in this way. ... This table must be only in reading way and it works correc

Re: Performance issue

2008-12-13 Thread Dave Newton
--- On Sat, 12/13/08, yorlick kilroy wrote: > Any way heres what I did. I replaced the struts2 tags > with JSTL Core tags: [...] Are you accessing value stack objects via JSP 2.0 EL's ${...} notation, or have you put values into a JEE scope? Dave --

Re: Performance issue

2008-12-13 Thread yorlick kilroy
Hi Hardik, I had exactly the same problem with struts2. I wrote a struts2 webapp that produces a huge amount of output in JSPs. My JSPs took about 10 seconds to produce the content. The bottleneck is OGNL. OGNL has an extremely poor performance. Struts2 is an excellent framework but the struts2 te

Re: <%= %> in

2008-12-13 Thread Nils-Helge Garli Hegvik
A little more details on what you're trying to achieve would be nice. Nils-H On Sat, Dec 13, 2008 at 3:15 PM, srinivasa_v . wrote: > Hi > I am unable to use <%= %> in working fine but at someplace i need to use > <%=%> > regards > srinivas > > > * > > org.apache.jasper.JasperException*: > /re

Re:

2008-12-13 Thread Nils-Helge Garli Hegvik
Why don't you try using the value attribute of the textfield tag instead? Nils-H On Sat, Dec 13, 2008 at 9:03 AM, srinivasa_v . wrote: > HI All, > I want to dispay value in text box tht i get from session, is this the right > way to do > > > > > > > regards > srinivas > -

Re: Performance issue

2008-12-13 Thread Dave Newton
--- On Sat, 12/13/08, Hardik Shah wrote: > [...] i dont know how to turn on profiliing [...] http://struts.apache.org/2.0.14/docs/profiling.html Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional c

Re: Performance issue

2008-12-13 Thread Hardik Shah
Thanks For Showing interest ,but i dont know how to turn on profiliing ,please help me i think its takes data from database in real speed but when trying to display in new browser window takes time,i dont think time spent in action processing Thnaks Hardik Hi Hardik, what takes this time,

Validation and dispatcher

2008-12-13 Thread Andy Sykes
Hi all, I've got an action called "edit" that prepares some objects for use in a form (Lists for select tags, etc), then dispatches to the JSP form. It's dependent on having a parameter passed to it via a GET url (e.g. edit.action?id=4) to build these objects. This form submits to another

<%= %> in

2008-12-13 Thread srinivasa_v .
Hi I am unable to use <%= %> in regards srinivas * org.apache.jasper.JasperException*: /releaseTransfer/EmpReleaseTransApprovalRequestForm.jsp(385,5) According to TLD or attribute directive in tag file, attribute value does not accept any expressions at org.apache.jasper.compiler.DefaultError

Re: Struts 2 - Conditional Validation

2008-12-13 Thread ManiKanta G
Hi, > Thanks for the reply. Checkbox always has a value of true/false. > Well this is not case with all the frameworks... Truly speaking browser will send only the field name and value to the server (along with some headers). But S2 deals in this way such that checkbox will have false if it was

user@struts.apache.org

2008-12-13 Thread srinivasa_v .
HI All, I want to dispay value in text box tht i get from session, is this the right way to do regards srinivas