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

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: 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 Hegviknil...@gmail.com wrote: Don't have any more ideas, but generally, the message cannot find bean in any scope means exactly what it

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, phillips1021bphill...@ku.edu 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)

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 steven.mitch...@umb.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, Jun 25, 2009 5:17 pm Subject: RE: Struts1 or Struts2 Chris, My opinion is that you will take an

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,

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)

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 html:cancel for the Cancel and something else. I also included this.isCancelled() conditional check in the execute() method; as well as included

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

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 them but

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 Lindholmgreg.lindh...@gmail.com 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

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

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 sx.a tag as shown below. @s.url id=sort namespace=${parameters.nameSpace} action=Sort @s.param name=sortBy${tmpSortMethodName?trim}/@s.param

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: result type=stream param name=contentType${mimeType}/param param name=contentLength${length}/param param name=contentDispositioninline; filename=${fileName}/param param name=inputNameinputStream/param param

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

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

2009-06-26 Thread Graham Down
Well I got it resolved. The rtexprvalue was set to false in the TLD file. Once set to true the following worked: JSP: % String productTypeI18nKey = product.type.list. + productType; % s:text name=%=productTypeI18nKey%/ Graham - Original Message - From: gd...@jslss.com To: Struts

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

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 result/ tags. I have no beans declared in Spring and the class atribute of the action is pointing to a full

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 Gurycadun...@gmail.com 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 ?

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

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 work. I've

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 sx.a tag as shown below. @s.url id=sort namespace=${parameters.nameSpace} action=Sort @s.param name=sortBy${tmpSortMethodName?trim}/@s.param @s.param name=sortTypedesc/@s.param /@s.url @sx.a href=${sort} key=${tmpColumnName}

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: 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 result/ tags. I have no beans declared in Spring and the class atribute of the action is

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: 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 Gurycadun...@gmail.com wrote: Anybody ? Daniel On Fri, Jun 26, 2009 at 5:54 PM, Daniel Gurycadun...@gmail.com wrote: I have found that devMode was set to

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

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