Struts, WebSphere, browser tabs

2009-07-10 Thread jhi
Hi. (sorry for my bad English :blush: ) I am very new Struts user, so my problem is maybe some basic stuff.. But please help me someone, if you know the answer. I'm developing a large application which uses Struts 1.x- and EJB3- frameworks and Web Sphere 7.x application server. I should make

Re: S2: Ajax tags -- how to return a message to a specific DIV?

2009-07-10 Thread Paweł Wielgus
Hi fireapple, as for me You should not do it in action, precisely action should not decide what div to be updated, just perform action and return some result - success or error. What i would do is to place this logic inside $ajax(...) call from jquery [which i use] so that other programmers could

Actions are not Garbage Collected

2009-07-10 Thread Anselmo
I started to profile my app with YourKit and JMeter, because of increasing request times. Obviously Actions in my app are not garbage collected until a major collection when the heap is full. This also happens with the showcase app from struts. Any idea which objects still reference the

Re: Actions are not Garbage Collected

2009-07-10 Thread Musachy Barroso
Obviously Actions in my app are not garbage collected until a major collection when the heap is full. If they are garbage collected, then it is ok, the GC has a mind of its own. If your actions are singletons (and they shouldn't be!) then they are not likely to be collected. musachy On Fri,

Re: Actions are not Garbage Collected

2009-07-10 Thread Musachy Barroso
On Fri, Jul 10, 2009 at 7:53 AM, Musachy Barrosomusa...@gmail.com wrote: If your actions are singletons (and they shouldn't be!) then they are not likely to be collected. because a reference to them will be held by spring, or whatever container you are using.

Re: Actions are not Garbage Collected

2009-07-10 Thread Dale Newfield
Musachy Barroso wrote: On Fri, Jul 10, 2009 at 7:53 AM, Musachy Barrosomusa...@gmail.com wrote: If your actions are singletons (and they shouldn't be!) then they are not likely to be collected. because a reference to them will be held by spring, or whatever container you are using. Or maybe

Passing runtime exp into tag

2009-07-10 Thread Peter Bliznak
Hi all, translating portion of old code which was using S1 and Tiles and ran into problem. There is one tile representing form which is being used on almost all screens. One doesn't want to write same tile over and over again since only name of the action differs. Existing code used this: //

Help with JSP and javascript

2009-07-10 Thread Security Management
Can someone suggest a way to do this: s:submit type=image alt=Unlocked src=%{unlocked_image} onclick='$(s:property value=#foo/).request(); return false;'/ I have tried a bunch of ways, but always wind up with the lts:property... in the resulting HTML, rather than '$(form1).submit()' like I need.

Re: Help with JSP and javascript

2009-07-10 Thread Wes Wannemacher
On Friday 10 July 2009 11:49:04 Security Management wrote: Can someone suggest a way to do this: s:submit type=image alt=Unlocked src=%{unlocked_image} onclick='$(s:property value=#foo/).request(); return false;'/ I have tried a bunch of ways, but always wind up with the lts:property... in

preselect value for radio tag

2009-07-10 Thread Bhaarat Sharma
I have a very simple radio tag like following s:radio label=correctOption name=correctAnswer id=correctOption list= #{'1':'1','2':'2','3':'3','4':'4'} value=questionVo.correctAnswer/ questionVo.correctAnswer returns 2. So I want the second radio button to be preselected but it is not happening. I

RE: Actions are not Garbage Collected

2009-07-10 Thread Martin Gainty
web.xml configuration for Spring /* The ContextLoaderListener listener should be registered after Log4jConfigListener in web.xml, if the latter is used. */ listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener once thats

Re: preselect value for radio tag

2009-07-10 Thread Dale Newfield
Bhaarat Sharma wrote: I have a very simple radio tag like following s:radio label=correctOption name=correctAnswer id=correctOption list= #{'1':'1','2':'2','3':'3','4':'4'} value=questionVo.correctAnswer/ questionVo.correctAnswer returns 2. So I want the second radio button to be preselected

Re: preselect value for radio tag

2009-07-10 Thread Bhaarat Sharma
ah HAA thats was my problem. the datatypes were different. Thanks On Fri, Jul 10, 2009 at 12:37 PM, Dale Newfield d...@newfield.org wrote: Bhaarat Sharma wrote: I have a very simple radio tag like following s:radio label=correctOption name=correctAnswer id=correctOption list=

Avoiding param in URL when action-redirect....

2009-07-10 Thread anand nandu
I have a mapping like this. result name=input type=redirectAction dispAcctTypePage ${accBean.zipCode} /result But the param come in url which is a security risk. please help how to eliminate param in browser URL. -- View this message in context:

Re: Actions are not Garbage Collected

2009-07-10 Thread Musachy Barroso
Thank you Martin for yet another text wall,random, off topic, and uninformative post. I am starting to appreciate the advantages of having forums instead of mailing lists...captcha. musachy On Fri, Jul 10, 2009 at 9:33 AM, Martin Gaintymgai...@hotmail.com wrote: web.xml configuration for

RE: Actions are not Garbage Collected

2009-07-10 Thread Martin Gainty
and the answer is? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede

Re: Actions are not Garbage Collected

2009-07-10 Thread Anselmo
Hi guys, thanks for your answers. Atually I'm not using the spring framework. I use hibernate and have a lot of entity beans in the actions. If I call 50 actions i have 50 of them in the memory and every action has e.g. 50 products, so i have 2500 of the same products in my memory. Is der a

Re: Actions are not Garbage Collected

2009-07-10 Thread Dale Newfield
Anselmo wrote: If I call 50 actions i have 50 of them in the memory and every action has e.g. 50 products, so i have 2500 of the same products in my memory. Is der a possibility to somehow cache the instances of the entities? look into ehcache If you're not using spring, what's instantiating

Re: Actions are not Garbage Collected

2009-07-10 Thread Musachy Barroso
Using any decent profiler will tell you who is holding the references to the actions. musachy On Fri, Jul 10, 2009 at 10:23 AM, Anselmoanselm.ba...@googlemail.com wrote: Hi guys, thanks for your answers. Atually I'm not using the spring framework. I use hibernate and have a lot of entity

RE: Actions are not Garbage Collected

2009-07-10 Thread Martin Gainty
yes that's true how about the delta between implementing BeanFactory vs ApplicationContext? for Bean instantiation? i admit this is off-topic for Struts but ontopic for Spring and we dont have a m/l yet! Martin __ Verzicht und

Re: Actions are not Garbage Collected

2009-07-10 Thread Anselmo
The only references I have to my action are localeProvider of com.opensymphony.xwork2.TextProviderSupport which has references from the action again. Is this maybe running in circles? -- View this message in context:

Re: Actions are not Garbage Collected

2009-07-10 Thread Dale Newfield
Anselmo wrote: The only references I have to my action are localeProvider of com.opensymphony.xwork2.TextProviderSupport which has references from the action again. Is this maybe running in circles? A circular reference could explain why one type of GC sweep would not free that, but another

RE: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-10 Thread wkbutler
Is this still the only way to get i18n translatations into a struts tag from the resource bundle? I'm trying to get a label on some struts fields, i.e. s:textfield name=userResponses[%{#loop.index}].userResponseValues[0].value

Re: Avoiding param in URL when action-redirect....

2009-07-10 Thread Musachy Barroso
you can chain to the next action, in that case the url will not change. musahcy On Fri, Jul 10, 2009 at 9:51 AM, anand nanduanand8...@gmail.com wrote: I have a mapping like this. result name=input type=redirectAction dispAcctTypePage ${accBean.zipCode} /result But the param come in url

Re: Passing runtime exp into tag

2009-07-10 Thread Peter Bliznak
Figured it out, forget it. From: Peter Bliznak bliz...@rogers.com To: Struts Users Mailing List user@struts.apache.org Sent: Friday, July 10, 2009 11:23:15 AM Subject: Passing runtime exp into tag Hi all, translating portion of old code which was using S1 and

RE: Help with JSP and javascript

2009-07-10 Thread Security Management
OK, thanks Wes, I'm making progress: This: s:submit type=image alt=Unlocked src=%{unlocked_image} onclick=%{'$(' + #foo + ').request(); return false;'}/ Generates: input type=image alt=Submit src=/smc-appsuite/pages/door-control /images/unlocked.png id=door3_0 value=Submit

Re: Help with JSP and javascript

2009-07-10 Thread Wes Wannemacher
There is a way to escape quotes in OGNL... I thought I had a sample sitting around somewhere but I am not finding it. Check google. I would guess that you could just escape the single quotes you need and the rest will fall into place. -Wes On Friday 10 July 2009 14:54:30 Security Management

RE: Stripping Out Characters (Parenthesis)

2009-07-10 Thread Ratner Glenn A
Nobody can tell me why struts removes the parenthesis characters out of string entered into a text box? We have a work around but I've got to think somebody knows what I'm doing wrong here. -Original Message- From: Ratner Glenn A Sent: Thursday, July 09, 2009 10:39 AM To: 'Struts

assigning a JSP variable a value coming from s: property

2009-07-10 Thread Farshad Rabbani
Hi Everyone, I am trying to create a java variable in the jsp scriplet and assign it a value coming from s: property tag so for example % int id = s: property value=userId/ ; % I know the above is completely incorrect, but essentially, that is what I want

Re: Stripping Out Characters (Parenthesis)

2009-07-10 Thread Avlesh Singh
Sounds weird. Can you post your form code in the jsp? Cheers Avlesh On Sat, Jul 11, 2009 at 12:46 AM, Ratner Glenn A glenn.rat...@bnymellon.com wrote: Nobody can tell me why struts removes the parenthesis characters out of string entered into a text box? We have a work around but I've got

RE: Help with JSP and javascript

2009-07-10 Thread Martin Gainty
onclick=$(#146;door3#146;).request(); return false; apologies for short response Martin Gainty __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um

Re: assigning a JSP variable a value coming from s: property

2009-07-10 Thread Musachy Barroso
do something like: s:set var=myId value=... scope=page/ then in your scriplet, get a reference to the page context (cant remember the API) and do a getAttribute(myId) on it. musachy On Fri, Jul 10, 2009 at 12:20 PM, Farshad Rabbanifarshadrabb...@hotmail.com wrote: Hi Everyone, I am

Struts 2.1.6's bug? or my configuration error?

2009-07-10 Thread Yuan12345
Ajax Validation does not be effective when Action implements Model Driven but for the action not implements model driven, it works Validator: validators field name=model.account field-validator type=requiredstring message Account is required!!!/message /field-validator /field

Re: Help with JSP and javascript

2009-07-10 Thread dusty
s:submit type=image alt=Unlocked src=/residentrn/images/accept.png onclick=%{\$('\ + #foo + \').request(); return false;\} / Security Management wrote: Can someone suggest a way to do this: s:submit type=image alt=Unlocked src=%{unlocked_image} onclick='$(s:property