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
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
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
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,
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.
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
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:
//
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.
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
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
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
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
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=
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:
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
34 matches
Mail list logo