Re: Error when deploying portlets beside a normal Struts2 web app?

2009-06-26 Thread phillips1021
Nils-H Ignore my previous reply. I was able to get the struts2-portlet-plugin 2.1.8-SNAPSHOT to build successfully and install into my local maven repository. I tested the 2.1.8-SNAPSHOT in my example applications and everything worked very well. Thanks again. We look forward to the 2.1

Re: Error when deploying portlets beside a normal Struts2 web app?

2009-06-26 Thread phillips1021
Nils-H Thank you for fixing this issue so quickly. I was able to check out from subversion the Struts 2 trunk using svn checkout http://svn.apache.org/repos/asf/struts/struts2/trunk The struts2-core 2.1.8-SNAPSHOT was created by mvn install just fine. However I got the following error whe

Re: Performance issues in showcase sample struts 2.1.6 application

2009-06-26 Thread Musachy Barroso
You might want to start here: http://struts.apache.org/2.x/docs/performance-tuning.html musachy On Fri, Jun 26, 2009 at 12:57 PM, Daniel Guryca wrote: > Anybody ? > > Daniel > > On Fri, Jun 26, 2009 at 5:54 PM, Daniel Guryca wrote: >> I have found that devMode was set to true .. so I changed it t

Re: problem with spring plugin autowiring result tags

2009-06-26 Thread Angel D. Segarra
Thanks for the reply. My bad, I do have a bean defined, missed since I have my contexts separated. I have bean with id 'dataSource' in spring and it's trying to autowire it into the dataSource of the JR result. I suppose this is expected but I was confused as to what gets auto wired or not, I

Re: problem with spring plugin autowiring result tags

2009-06-26 Thread Dave Newton
Angel D. Segarra wrote: Specifically I am trying out the JasperReports tutorial, everything works fine untile I include the Spring plugin, now it stops working because apparently it's trying to autowire the tags. I have no beans declared in Spring and the class atribute of the action is pointing

Re: Struts Taglibs

2009-06-26 Thread Dave Newton
CRANFORD, CHRIS wrote: In our Struts1 implementation, we leveraged various tag libraries such as: struts-logic struts-logic-el struts-html struts-html-el struts-bean struts-bean-el struts-nested When migrating to struts2, are any of these taglibs still available or have they been replaced with

Re: Getting undefined error on ajax call

2009-06-26 Thread Dave Newton
Praveen.V.Kumar wrote: In ftl, I am making ajax call in tag as shown below. <@s.url id="sort" namespace="${parameters.nameSpace}" action="Sort"> <@s.param name="sortBy">${tmpSortMethodName?trim} <@s.param name="sortType">desc <@sx.a href="${sort}" key="${tmpColumnName}" targets="co

Re: How to set a file name using a header in the response?

2009-06-26 Thread Dave Newton
Jim Collings wrote: <%response.setHeader("Content-Disposition", "attachment; filename=\"filename_${fromDate}-${toDate}.doc\""); %> The above is what I currently have but I think there is a new way to do it that doesn't involve using a scriptlet. Also, the "fromDate" and "toDate" items don't wor

Re: cannot download 2.1.7

2009-06-26 Thread Dave Newton
Angel Segarra wrote: I can't find 2.1.7 anywhere for download, even though the download now button says 2.1.7, the main site still has 2.1.6 as the latest release. Am I missing something? No, but we are. Dave - To unsubscri

Re: Performance issues in showcase sample struts 2.1.6 application

2009-06-26 Thread Daniel Guryca
Anybody ? Daniel On Fri, Jun 26, 2009 at 5:54 PM, Daniel Guryca wrote: > I have found that devMode was set to true .. so I changed it to false. > > Now I'm getting something around 140 req/s which is much better but > still somewhat slow. > > What more can I set to make it run faster ? > > My cur

problem with spring plugin autowiring result tags

2009-06-26 Thread Angel D. Segarra
Specifically I am trying out the JasperReports tutorial, everything works fine untile I include the Spring plugin, now it stops working because apparently it's trying to autowire the tags. I have no beans declared in Spring and the class atribute of the action is pointing to a full class name.

Struts Taglibs

2009-06-26 Thread CRANFORD, CHRIS
In our Struts1 implementation, we leveraged various tag libraries such as: struts-logic struts-logic-el struts-html struts-html-el struts-bean struts-bean-el struts-nested When migrating to struts2, are any of these taglibs still available or have they been replaced with newer components? A ma

Re: Dynamic value supplied s:text name in struts 2

2009-06-26 Thread Graham Down
Well I got it resolved. The was set to false in the TLD file. Once set to true the following worked: JSP: <% String productTypeI18nKey = "product.type.list." + productType; %> Graham - Original Message - From: To: "Struts Users Mailing List" Sent: Thursday, June 25, 2009 6:02 PM

Re: Performance issues in showcase sample struts 2.1.6 application

2009-06-26 Thread Daniel Guryca
I have found that devMode was set to true .. so I changed it to false. Now I'm getting something around 140 req/s which is much better but still somewhat slow. What more can I set to make it run faster ? My current settings are listed below: struts.mapper.alwaysSelectFullNamespace true struts.

Re: [S2] Can't setBufferSize on StreamResult from action configuration (Struts2 2.1.6)

2009-06-26 Thread Dale Newfield
Francisco José Aquino García wrote: ${mimeType} ${length} inline; filename="${fileName}" inputStream ${buffSize} false The result doesn't evaluate bufferSize. You can't put in OGNL there. I've been peeking a little into org.a

Getting undefined error on ajax call

2009-06-26 Thread Praveen . V . Kumar
Hi, I'm using struts 2.1.6, struts2-dojo-plugin-2.1.6.jar, xwork-2.1.2, freemarker 2.3.13, ognl 2.6.11 and jboss 5.0.1. In ftl, I am making ajax call in tag as shown below. <@s.url id="sort" namespace="${parameters.nameSpace}" action="Sort"> <@s.param name="sortBy">${tmpSortMethodName?trim}

Performance issues in showcase sample struts 2.1.6 application

2009-06-26 Thread Daniel Guryca
Hi, I have just deployed included showcase sample application on to my tomcat 6. I'm very amazed how SLOWLY it runs. I'm looking for a framework for my company and Struts 2 seems very good to me (I have a previous experience with grails which is good for smaller applications but too unstable and

Re: S2.1.6 problem with devMode

2009-06-26 Thread Musachy Barroso
yeah, known bug, it is fixed in trunk and will be in 2.1.7 musachy On Fri, Jun 26, 2009 at 7:28 AM, Greg Lindholm wrote: > When I set devMode to true I get the exception below. > Struts 2.1.6, Tomcat 5.5, starting Tomcat from within Eclipse. > If devMode is false all works fine. > Anyone have any

How to set a file name using a header in the response?

2009-06-26 Thread Jim Collings
<%response.setHeader("Content-Disposition", "attachment; filename=\"filename_${fromDate}-${toDate}.doc\""); %> The above is what I currently have but I think there is a new way to do it that doesn't involve using a scriptlet. Also, the "fromDate" and "toDate" items don't work. I've tried quoting

S2.1.6 problem with devMode

2009-06-26 Thread Greg Lindholm
When I set devMode to true I get the exception below. Struts 2.1.6, Tomcat 5.5, starting Tomcat from within Eclipse. If devMode is false all works fine. Anyone have any ideas? 2009-06-26 10:21:06,250 INFO com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:31 - Parsing configuration

canncellable with isCanncelled()

2009-06-26 Thread Sam Wun
Hi, There are 3 buttons on the jsp web page, first one is submit (sign in), another one is Cancel, the third one is something else. I used for the Cancel and something else. I also included this.isCancelled() conditional check in the execute() method; as well as included canecellable="true" in th

Re: Exceptions thrown by constructor different from those thown by execute() ?

2009-06-26 Thread musomesa
I see your point that there has to be some design to handle? that contingency (exceptions coming from the constructor) but with so many opportunities for us to do things via interceptors I would let the framework have a total monopoly on the constructors. Essentially we (application developers) s

cannot download 2.1.7

2009-06-26 Thread Angel Segarra
I can't find 2.1.7 anywhere for download, even though the download now button says 2.1.7, the main site still has 2.1.6 as the latest release. Am I missing something? Thanks, Angel Somos verde. Piense antes de imprimir. AVISO DE CONFIDENCIALIDAD Si usted ha recibido este email por error, favo

Re: Struts1 or Struts2

2009-06-26 Thread musomesa
SInce you are comited to a re-write, go for it. Chris -Original Message- From: Mitchell, Steven To: Struts Users Mailing List Sent: Thu, Jun 25, 2009 5:17 pm Subject: RE: Struts1 or Struts2 Chris, My opinion is that you will take an initial productivity hit while the team gets

Re: Error when deploying portlets beside a normal Struts2 web app?

2009-06-26 Thread Nils-Helge Garli Hegvik
It should be fixed now in trunk. Let me now if it works or not. Nils-H On Wed, Jun 24, 2009 at 6:01 PM, phillips1021 wrote: > > I added to the Jira bug report another example application that demonstrates > the problem.  The example application is a simple Struts 2 (using 2.1.6) > application tha

Re: Pre setAttribute for a form

2009-06-26 Thread Sam Wun
yah, this is old school answers. :D I have resolved the problem already by applying old school technique. :D On Fri, Jun 26, 2009 at 6:21 PM, Nils-Helge Garli Hegvik wrote: > Don't have any more ideas, but generally, the message "cannot find > bean in any scope" means exactly what it says: The be

Re: Pre setAttribute for a form

2009-06-26 Thread Nils-Helge Garli Hegvik
Don't have any more ideas, but generally, the message "cannot find bean in any scope" means exactly what it says: The bean is not in a scope where it can be found. Which means that either it is set in request scope, and attempted to be used in a different request (typically what happens when you do

Re: Return to previous page without javascript

2009-06-26 Thread Stefano Tranquillini
Not really. i usued the tiles and i've some problem. i've in mind an idea: - keep track inside a jsp of the current page (is possible from jsp to put the url inside the session?, i tried and i fell, no one thing work ) - each action, when success, return to an action that perform a redirect (but ho