Re: Struts 2 performance

2009-07-29 Thread Dale Newfield
Musachy Barroso wrote: Just to save you some time (because I just spend sometime myself on this), I would suggest you to use the profiler that comes with JRockit: http://www.oracle.com/technology/products/jrockit/index.html You will have to run your application with the JRockit jre to use it.

Re: EJB Injection in Interceptor

2009-07-29 Thread Robin Mannering
Just to clear up my actual question from the thread below as feedback has run dry unfortunately. Is there anybody working daily with Struts 2 and EJB 3.0? If so, what is the best way to obtain local references to EJB 3 session beans from within Struts 2 action classes? Thanks for any thought

Change the URL dynamically

2009-07-29 Thread Sanchayan Bandyopadhyay
I need to create an struts application which will be hosted in a particular domain say http://www.abcd.com Here there will be some pages which will be accessed through other domains also. Say I have 3 more domains - www.xx.xom www.yy.com www.zz.com >From all these three domains my D

Re: Struts 2 performance

2009-07-29 Thread Musachy Barroso
Yes, and not. It is a good idea to remove any interceptor that you don't need, like i18n for example, or the double params if you are not using it. Before making any assumptions I would suggest you to profile your application, and see what is consuming the mos memory and time. Just to save you some

Struts 2 performance

2009-07-29 Thread Say Jon
Hi guys, I have been using Struts 2 for a while for some of my web apps. Performance is OK. I'm getting less than 400ms when I use the timerinterceptor for a regular "retrieve" operation. I'm just wondering, with the interceptor architecture it seems that there are many "layers" to go thru' when S2

Re: New to Struts, a Question

2009-07-29 Thread Thomas Sattler
In my struts.xml file, I have the UserDisplayAction class and a blank (no "name=") result for userDisplay.jsp. Does it pick up from there? On Wed, Jul 29, 2009 at 8:40 PM, Dave Newton wrote: > Dennis Atkinson wrote: > >> Dave, >> >> OK, I can make it work. I just don't understand WHY it wor

Re: New to Struts, a Question

2009-07-29 Thread Dave Newton
Dennis Atkinson wrote: Dave, OK, I can make it work. I just don't understand WHY it works. If I change to this: My Acccount I get exactly what I expect; the screen loads with the data filled in properly. But what I don't understand is how Struts knows to load userDisplay.jsp. I assume it p

Re: New to Struts, a Question

2009-07-29 Thread Dennis Atkinson
Dave, OK, I can make it work. I just don't understand WHY it works. If I change to this: My Acccount I get exactly what I expect; the screen loads with the data filled in properly. But what I don't understand is how Struts knows to load userDisplay.jsp. I assume it parses the "userDisplay"

Re: New to Struts, a Question

2009-07-29 Thread Dave Newton
Dennis Atkinson wrote: The menu says: My Acccount Can I direct this to an action class, rather than to a jsp file? Action URLs are URLs like any other, including a JSP. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.

Re: New to Struts, a Question

2009-07-29 Thread Dennis Atkinson
Burton, Thanks very much for the reply. I have tried this and it works great. I appreciate the assistance. Is it possible to do the same thing, but on a menu selection? The menu says: My Acccount Can I direct this to an action class, rather than to a jsp file? __

Re: New to Struts, a Question

2009-07-29 Thread Burton Rhodes
I think you want to investigate an 'actionredirect' on 'success' instead of just displaying the user jsp file. This will 'handoff' control to your user action. On 7/29/09, Dennis Atkinson wrote: > Hello everyone. > > I am new to Struts2, and I like what I see so far. I want to use it for all > m

New to Struts, a Question

2009-07-29 Thread Dennis Atkinson
Hello everyone. I am new to Struts2, and I like what I see so far. I want to use it for all my web programming. I have a question, and I hope I don't sound too foolish for asking it. I created a login screen, which has two fields, "id" and "password". I fill those fields, press the "Login" b

RE: Submitting Patch for 1.3.11

2009-07-29 Thread David T. Webb
Paul, STR-3193 Created and assigned to you for review. Thanks and please let me know if you have any questions or need me to rework anything. -- Sincerely, David Webb, President BrightMove, Inc. http://www.brightmove.com 320 High Tide Dr, Suite 101B Saint Augustine Beach, FL 32080 (904) 861-239

Re: Accented characters replaced during parameter input

2009-07-29 Thread Vítor Souza
Thanks, it worked! But still I'm very curious as why the container behaves like this, if everything points to using UTF. This is really weird. Is this the expected behavior according to the Servlet/JSP specs? Anyways, life goes on. Thanks again. Vítor Souza Greg Lindholm-2 wrote: > > Just ha

RE: Submitting Patch for 1.3.11

2009-07-29 Thread David T. Webb
Thanks to all who replied. I am creating the Jira bug now. -- Sincerely, David Webb, President BrightMove, Inc. http://www.brightmove.com 320 High Tide Dr, Suite 101B Saint Augustine Beach, FL 32080 (904) 861-2396 (866) 895-6299 (Fax) -Original Message- From: paulus.benedic...@gmail.c

Re: Submitting Patch for 1.3.11

2009-07-29 Thread Paul Benedict
David, If the patch contains a good idea, I'll apply it (as-is or modified as necessary). Is the issue is new, please create a new STR issue in JIRA. Otherwise, attach it to an existing issue and let me know. Paul On Wed, Jul 29, 2009 at 10:43 AM, Antonio Petrelli < antonio.petre...@gmail.com> w

Re: Submitting Patch for 1.3.11

2009-07-29 Thread Antonio Petrelli
2009/7/29 David T. Webb : > Has anyone submitted patches to the struts development team before?  I > have submitted patches to other projects before and never heard anything > back.  I want to make sure they accept patches and correspond with the > developer before I spend the time to outline every

Re: Submitting Patch for 1.3.11

2009-07-29 Thread Dave Newton
> Has anyone submitted patches to the struts development team before? Of course. > I want to make sure they accept patches and correspond with the > developer before I spend the time to outline everything and send it in. Like any other open-source volunteer project there are no guarantees, and

Submitting Patch for 1.3.11

2009-07-29 Thread David T. Webb
Has anyone submitted patches to the struts development team before? I have submitted patches to other projects before and never heard anything back. I want to make sure they accept patches and correspond with the developer before I spend the time to outline everything and send it in. Thanks. -

Re: Accented characters replaced during parameter input

2009-07-29 Thread Greg Lindholm
Just had this question come up. Basically you need to add a character encoding filter that does a request.setCharacterEncoding("UTF-8"); before anyone reads the request. See this thread: http://www.nabble.com/Handle-Japanese-characters-from-jsp-page-into-ActionClass-td24686908.html On Wed, Jul

Accented characters replaced during parameter input

2009-07-29 Thread Vítor Souza
Hi, I've searched the entire afternoon for something about this, tried many many things, but so far nothing has worked. Please, help. When I type my name - "Vítor" - in a , the value "Vítor" is set at the action's property. I've tried using to see if the problem was in the Struts tags, but th

Re: Stuts 2 and Custom TextProvider

2009-07-29 Thread girishkamat
Hi, I know its been a almost an year since this thread was born. I joined nabble just today :) I came across the same issue yesterday. I had my message keys defined in my Action-validation.xml. I tried overloading this method in my action public String getText(String textName, String de