Re: action tag

2008-04-26 Thread Jeromy Evans
Kibo wrote: Hi konference I would like use tag action but from action I need only property, dont executed/rendered. When I use this: rendered it result and view. When I use this: the action probably dont execute and the value is empty -- struts.xml

action tag

2008-04-26 Thread Kibo
Hi konference I would like use tag action but from action I need only property, dont executed/rendered. When I use this: rendered it result and view. When I use this: the action probably dont execute and the value is empty -- struts.xml /index.jsp

Re: Struts 2 - Where does all the CPU go

2008-04-26 Thread Jeromy Evans
Matthew Seaborn wrote: In an attempt to find out where all the CPU cycles go I ran JProfiler against a request for a Struts 2 page containing a form with around 40 tags running under Tomcat 5.5, using SiteMesh for styling. The details are below, but FreeMarker seems to be the primary guil

Re: OGNL/Freemarker Performance

2008-04-26 Thread Jeromy Evans
Martin Gainty wrote: Thanks Jeromy- I would utilise the rhino javasript utilities to compress (java with -c option) all of your js files http://www.dojotoolkit.org/docs/shrinksafe e.g. java -jar custom_rhino.jar -c infile.js > outfile.js 2>&1 Rhino jars are available for download at http://w

struts navigation

2008-04-26 Thread kovariadam
Hello, I'm developing an application in struts portal framework from ibm, and have 2 actions. From one action i need to pass parameter to the other action and to transfer to it. i've tried to use something like this: mapping.findforward("/action2.do"); request.setAttribute(key, obj); But this ap

Re: migration from struts 1 to 2

2008-04-26 Thread Dave Newton
Just some clarifications. --- sukritthareja <[EMAIL PROTECTED]> wrote: > 2.web.xml > - Add following elements to web.xml > > >org.springframework.web.context.ContextLoaderListener > > This is only necessary if you're using Spring. If you're not, i

Re: migration from struts 1 to 2

2008-04-26 Thread sukritthareja
Here are the steps for Migrating from Struts 1 to Struts 2. You are required to make changes in the below mentioned layers” 1. JARs - Add Struts 2 JARs in WEB-INF/lib 2. web.xml - Add following elements to web.xml http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

Re: Struts 2 - Where does all the CPU go

2008-04-26 Thread Dave Newton
IIRC you had said you already extracted the FreeMarker templates from the core jar, right? Dave --- Matthew Seaborn <[EMAIL PROTECTED]> wrote: > In an attempt to find out where all the CPU cycles go I ran JProfiler > against a request for a Struts 2 page containing a form with around 40 tags > r

Re: OGNL/Freemarker Performance

2008-04-26 Thread Martin Gainty
Thanks Jeromy- I would utilise the rhino javasript utilities to compress (java with -c option) all of your js files http://www.dojotoolkit.org/docs/shrinksafe e.g. java -jar custom_rhino.jar -c infile.js > outfile.js 2>&1 Rhino jars are available for download at http://www.mozilla.org/rhino/

Struts 2 - Where does all the CPU go

2008-04-26 Thread Matthew Seaborn
In an attempt to find out where all the CPU cycles go I ran JProfiler against a request for a Struts 2 page containing a form with around 40 tags running under Tomcat 5.5, using SiteMesh for styling. The details are below, but FreeMarker seems to be the primary guilty party. Does anyone know h

Re: OGNL/Freemarker Performance

2008-04-26 Thread Jeromy Evans
Matthew Seaborn wrote: In answer (in part) to my own question: · By removing the *validate=”true”* from my form tag cut over two seconds from the page render time. I loose the client side validation, but it is worth it. · By changing the head tag’s theme from “ajax” to “xhtml” cut down on

RE: OGNL/Freemarker Performance

2008-04-26 Thread Matthew Seaborn
When the page is being rendered, all of the database loading has already been done and stored as DTOs (extracted from the in the action. The database hit only took a few ms and is called in an Interceptor. So the time shown is purely the cost of rendering. The page is a form with about 50 str

Re: Struts 2.1

2008-04-26 Thread Frans Thamura
On Sat, Apr 26, 2008 at 7:21 PM, Matthew Seaborn < [EMAIL PROTECTED]> wrote: > I heard that Struts 2.2 is going to eliminate the dependency on OGNL, > this so?. There is a JIRA Issue suggesting an upgrade to OGNL > 2.7(WW-2128) , does anyone > k

RE: OGNL/Freemarker Performance

2008-04-26 Thread Matthew Seaborn
In answer (in part) to my own question: * By removing the validate="true" from my form tag cut over two seconds from the page render time. I loose the client side validation, but it is worth it. * By changing the head tag's theme from "ajax" to "xhtml" cut down on a large numb

Struts 2.1

2008-04-26 Thread Matthew Seaborn
I heard that Struts 2.2 is going to eliminate the dependency on OGNL, this so?. There is a JIRA Issue suggesting an upgrade to OGNL 2.7 (WW-2128) , does anyone know if this will happen? Does anyone know the planned release date for 2.1? Ma

tabbedPanel and Form

2008-04-26 Thread Kibo
Hi friends I use tabbedPanel with forms: --- <%-- id="one" --%>

Re: OGNL/Freemarker Performance

2008-04-26 Thread Jeromy Evans
Matthew Seaborn wrote: I have been doing some profiling on my Struts 2 applications (also using SiteMesh and Spring) and have found, like many others, that most of the request/response time is taken rendering of the JSP page (assuming I am reading the profile correctly). What exactly is