Re: Help with JSP and javascript

2009-07-10 Thread dusty
Security Management wrote: > > Can someone suggest a way to do this: > > onclick='$("").request(); return false;'/> > > I have tried a bunch of ways, but always wind up with the in the resulting HTML, rather than '$("form1").submit()' like I need. > > Thanks > > >

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: Account is required!!! Action: public class TestAction extends ActionSupport implements ModelDriven { /** * @return user

Re: assigning a JSP variable a value coming from

2009-07-10 Thread Musachy Barroso
do something like: 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 Rabbani wrote: > > Hi Everyone, > > > > > I am trying to create a java variable in the jsp scriplet and a

RE: Help with JSP and javascript

2009-07-10 Thread Martin Gainty
onclick="$(’door3’).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 eine Mit

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 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 to think somebody knows

assigning a JSP variable a value coming from

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 tag so for example <% int id = ; %> I know the above is completely incorrect, but essentially, that is what I want to accomplish. Can anyone give me

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 Users

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 wr

RE: Help with JSP and javascript

2009-07-10 Thread Security Management
OK, thanks Wes, I'm making progress: This: Generates: If I use single-quotes inside, I get errors. Double quotes as well. Escaped double quotes give me ", but what I really need is: onclick="$('door3').request(); return false;" Note the single quotes around 'door3', which is what #foo is

Re: Passing runtime exp into tag

2009-07-10 Thread Peter Bliznak
Figured it out, forget it. From: Peter Bliznak To: Struts Users Mailing List 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 Tiles and ran into problem. There is on

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 nandu wrote: > > I have a mapping like this. > > dispAcctTypePage > ${accBean.zipCode} > > > But the param come in url which is a security risk. please help how to > eliminate

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. with a messageSource defined as classpath:/form

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: 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: http://www.nabble.com/Actions-are-not-Garbage-Collected-tp24425128p24432059.h

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 Vertraulichkeitanmerku

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, Anselmo wrote: > > 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. > >

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 t

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 pos

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 unbefug

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 Gainty wrote: > > web.xml configuration for Spring > /* The Context

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

2009-07-10 Thread anand nandu
I have a mapping like this. dispAcctTypePage ${accBean.zipCode} 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: http://www.nabble.com/Avoiding-param-in-URL-when-action-redirect-tp24431097p24431097.htm

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 wrote: > Bhaarat Sharma wrote: > >> I have a very simple radio tag like following >> > list=" #{'1':'1','2':'2','3':'3','4':'4'}" >> value="questionVo.correctAnswer"/> >> >> questio

Re: preselect value for radio tag

2009-07-10 Thread Dale Newfield
Bhaarat Sharma wrote: I have a very simple radio tag like following questionVo.correctAnswer returns 2. So I want the second radio button to be preselected but it is not happening. I even tried: but that does not work either. what am I doing wrong? http://struts.apache.org/2.1.6/docs/why-

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. */ org.springframework.web.context.ContextLoaderListener once thats configured you'll want to use MethodInvokingFactoryBean

preselect value for radio tag

2009-07-10 Thread Bhaarat Sharma
I have a very simple radio tag like following questionVo.correctAnswer returns 2. So I want the second radio button to be preselected but it is not happening. I even tried: but that does not work either. what am I doing wrong?

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: > > onclick='$("").request(); return false;'/> > > I have tried a bunch of ways, but always wind up with the in the resulting HTML, rather than '$("form1").submit()' like I need. > >

Help with JSP and javascript

2009-07-10 Thread Security Management
Can someone suggest a way to do this: I have tried a bunch of ways, but always wind up with the

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: // de

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 Barroso 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 clickstream? htt

Re: Actions are not Garbage Collected

2009-07-10 Thread Musachy Barroso
On Fri, Jul 10, 2009 at 7:53 AM, Musachy Barroso 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 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, J

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 Actions

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 r