NoSuchMethodException

2008-09-18 Thread volker
Hi,

I have an Action class called RentalObjectAction that is inherited by a class 
named I18nBaseAction. This I18nBaseAction contains a method called 
switchLanguage (public).
When I try to call switchLanguage, which sets a value and returns SUCCESS,
I get a NoSuchMethodException. 
What is my fault ? Isn't int possible to use Methods in Subclasses ?

Regards

   Volker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Extending Struts 2 Tags

2008-09-18 Thread Narayana S
Hi,

  i have a requirement of extending the struts 2 control tags like text
field, check box, select. i want to add a new attribute to the component,
which will allows to identify certain properties like visibility,
editability, label text from the database and render the component.

 to implement this for text field i have created a class that extends
"org.apache.struts2.views.jsp.ui.TextFieldTag", from here i am trying to
assign label for the text field as "super.setLabel("Employee Number");". but
it is not rendering the label. can any one suggest me the correct process to
do this?

Thanks in advance


Maven Archetype

2008-09-18 Thread Yanis Kekatos
HI all,
I am trying to run the Struts Maven Archetype following the
instructions of the page
http://struts.apache.org/2.1.2/docs/ready-set-go.html but I get the
following error. Any help on this?

C:\dev\projects>mvn archetype:create -DgroupId=tutorial
-DartifactId=tutorial -DarchetypeGroupId=org.apache.struts
-DarchetypeArtifactId=struts2-archetype-starter
-DarchetypeVersion=2.0.9-SNAPSHOT
-DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO] 
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: tutorial
[INFO] We are using command line specified remote repositories:
http://people.apache.org/repo/m2-snapshot-repository
[INFO] snapshot
org.apache.struts:struts2-archetype-starter:2.0.9-SNAPSHOT: checking
for updates from id0
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/struts2-archetype-starter/2.0.9-SNAPSHOT/struts2-archetype-starter-2.0.9-SNAPSHOT.jar
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error creating from archetype

Embedded error: OldArchetype does not exist.
Unable to download the artifact from any repository
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 4 seconds
[INFO] Finished at: Thu Sep 18 13:45:03 EEST 2008
[INFO] Final Memory: 8M/15M
[INFO] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NoSuchMethodException

2008-09-18 Thread Lukasz Lenart
Could you post some more details? Action code, config, the full stack trace?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven Archetype

2008-09-18 Thread Lukasz Lenart
All the SNAPSHOT archetypes were removed from Maven repo, you can try
add one of this option below

-DarchetypeRepository=http://people.apache.org/repo/m2-snapshot-repository

-DarchetypeCatalog=http://www.lenart.org.pl/maven


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



sx:tree and sx:tabbedpanel do not integrate

2008-09-18 Thread RajibJana

Hi All,

I am building a application using struts 2.1.2.

In my application, I want to have tree and by clicking a tree node, an
action will excute and attached JSP with the action will have a tabbedpanel.
( just like a standard java GUI).

I have searched the showcase examples and found out the dynamic tree example
where action is invoked by clicking the tree node. Below is the code:

--

dojo.event.topic.subscribe("treeSelected", function
treeNodeSelected(node) {
dojo.io.bind({
url: "?nodeId="+node.node.widgetId,
load: function(type, data, evt) {
var divDisplay = dojo.byId("displayId");
divDisplay.innerHTML=data;
},
mimeType: "text/html"
});
});




 


Please click on any of the tree nodes.

-

The result jsp of dynamicTreeSelectAction displays the nodeid and nodename
in the div tag.

If I put a sx:tabbedpanel in this result jsp, then tabbedpanel does not
render at all, in stead the content of panels are shown only( not the visual
tabs).

I put the alert to see the innerhtml, it shows the correct content.

Where I went wrong?

Please help.


Regards

Rajib
Technical Architect



-- 
View this message in context: 
http://www.nabble.com/sx%3Atree-and-sx%3Atabbedpanel-do-not-integrate-tp19550399p19550399.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven Archetype

2008-09-18 Thread Yanis Kekatos
Thanks Lukasz,
I've tried each of the options you refer but the error remains.

On Thu, Sep 18, 2008 at 1:58 PM, Lukasz Lenart
<[EMAIL PROTECTED]> wrote:
> All the SNAPSHOT archetypes were removed from Maven repo, you can try
> add one of this option below
>
> -DarchetypeRepository=http://people.apache.org/repo/m2-snapshot-repository
>
> -DarchetypeCatalog=http://www.lenart.org.pl/maven
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven Archetype

2008-09-18 Thread Lukasz Lenart
But try only
mvn archetype:generate

with one of previous option



Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven Archetype

2008-09-18 Thread Jeromy Evans

Yanis Kekatos wrote:

HI all,
I am trying to run the Struts Maven Archetype following the
instructions of the page
http://struts.apache.org/2.1.2/docs/ready-set-go.html but I get the
following error. Any help on this?

  


The starter archetype for 2.0.11.2 is here:

http://people.apache.org/builds/struts/struts-archetypes/2.0.11.2/starter-m2-staging-repository

awaiting formal release to the maven repository.

Something like this should work:
$mvn archetype:create -DgroupId=be.realdolmen.struts2 -DartifactId=tutorial
   \ -DarchetypeGroupId=org.apache.struts
   \ -DarchetypeArtifactId=struts2-archetype-starter
   \ -DarchetypeVersion=2.0.11.2
   
\-DremoteRepositories=http://people.apache.org/builds/struts/struts-archetypes/2.0.11.2/starter-m2-staging-repository


There's no 2.1.x archetype available except those that Lucasz has released 
himself.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ExecuteAndWaitInterceptor problem

2008-09-18 Thread stanlick
I included an example of this in our Struts 2 in Action book using JSP.

On Wed, Sep 17, 2008 at 12:28 AM, ravindra <[EMAIL PROTECTED]> wrote:

>
> Thanks for the replay.
>
> I got this working if I use a freemaker template as my result.
>
> The content of the file is below.
> 
>  
>  "/>
>  
>  
>Please wait while we process your request...
>   
>
>This page will reload automatically and display your request when it
> is completed.
>
> 
>
> This is the thing which is making my action work as I wanted.The below meta
> tag.
>
> "/>
>
> If I remove this line it's not working. It's executing the action at the
> Backend but not forwarding to the "success" result after the execting the
> action.Can any one tell me what this line is doing?
>
> Thankyou,
> Ravindra.
>
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 16, 2008 5:59 PM
> To: Struts Users Mailing List
> Subject: RE: ExecuteAndWaitInterceptor problem
>
>
> depends on how quickly your background process completes
> there is a deplaySleepInterval parameter available to check progress e.g.
> This example will wait 1 second (1000 millis) before the wait page is shown
> to the user.
> And at every 50 millis this interceptor will check if the background
> process
> is done, if so
> it will return before the 1 second has elapsed, and the user isn't shown a
> wait page. 
>1000
>50
>
> some other parameters are beforeInvocation() to assign resources and
> afterInvocation() to release costly resources
> Info available at
> http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html
>
> anyone?
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
> > From: [EMAIL PROTECTED]
> > To: user@struts.apache.org
> > Subject: ExecuteAndWaitInterceptor problem
> > Date: Tue, 16 Sep 2008 13:45:47 +0530
> >
> >
> >
> >
> >
> > Hi all,
> >
> >
> >
> > I am trying to use ExecuteAndWaitInterceptor to show a page while my
> action
> > processes the request.
> >
> > The below is my action configuration.After executing the execute method
> > successfully I am forwarding
> >
> > "Success" result which is another action which forward the request to
> > another jsp.
> >
> >
> >
> > 
> >
> > 
> >
> > 
> >
> > back_input
> >
> > inputInfo.jsp
> >
> > summaryPage
> >
> > waiting.jsp
> >
> > 
> >
> >
> >
> > What extra stuff I have to do to go to the success action.
> >
> >
> >
> > Thank you,
> >
> > Ravindra.
> >
>
> _
> Stay up to date on your PC, the Web, and your mobile phone with Windows
> Live.
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: ExecuteAndWaitInterceptor problem

2008-09-18 Thread Dave Newton
--- On Wed, 9/17/08, ravindra wrote:
> This is the thing which is making my action work as I
> wanted. The below meta tag.
>  
>content="5;url=<@s.url includeParams="none"/>"/>
> 
> If I remove this line it's not working. It's executing the action at 
> the Backend but not forwarding to the "success" result after the 
> execting the action. Can any one tell me what this line is doing?

http://www.google.com/search?q=html+meta+refresh

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven Archetype

2008-09-18 Thread Yanis Kekatos
Thanks Jeromy.
It works.

On Thu, Sep 18, 2008 at 2:29 PM, Jeromy Evans
<[EMAIL PROTECTED]> wrote:
> Yanis Kekatos wrote:
>>
>> HI all,
>> I am trying to run the Struts Maven Archetype following the
>> instructions of the page
>> http://struts.apache.org/2.1.2/docs/ready-set-go.html but I get the
>> following error. Any help on this?
>>
>>
>
> The starter archetype for 2.0.11.2 is here:
>
> http://people.apache.org/builds/struts/struts-archetypes/2.0.11.2/starter-m2-staging-repository
>
> awaiting formal release to the maven repository.
>
> Something like this should work:
> $mvn archetype:create -DgroupId=be.realdolmen.struts2 -DartifactId=tutorial
>   \ -DarchetypeGroupId=org.apache.struts
>   \ -DarchetypeArtifactId=struts2-archetype-starter
>   \ -DarchetypeVersion=2.0.11.2
>
> \-DremoteRepositories=http://people.apache.org/builds/struts/struts-archetypes/2.0.11.2/starter-m2-staging-repository
>
>
> There's no 2.1.x archetype available except those that Lucasz has released
> himself.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Extending Struts 2 Tags

2008-09-18 Thread Alberto Flores
I believe that at some point in your quest you are going to learn that 
Struts2 tags delegate to a component (which you'll have to extend/use). 
So a few questions (if overriding the label setter doesn't work).


- Are you using the "key" attribute on the tag (it's used to generate 
the label).

- Are you using the "label" and "key" combined?

From the Struts2 source code (UIBean)

public void evaluateParams() {
addParameter("templateDir", getTemplateDir());
addParameter("theme", getTheme());
addParameter("dynamicAttributes", dynamicAttributes);

String name = null;
String providedLabel = null;

if (this.key != null) {

if(this.name == null) {
this.name = key;
}

if(this.label == null) {
// lookup the label from a TextProvider (default value is 
the key)

providedLabel = TextProviderHelper.getText(key, key, stack);
}

}

if (this.name != null) {
name = findString(this.name);
addParameter("name", name);
}

if (label != null) {
addParameter("label", findString(label));
} else {
if (providedLabel != null) {
// label found via a TextProvider
addParameter("label", providedLabel);
}
}

}

So as you can see, the label (if not null, is expected to be resolved by 
the findString() method. Please take a look at the source code for 
further info. I have been overriding my messages (using the key) 
successfully (and not using labels).


Hope this helps!


Narayana S wrote:

Hi,

  i have a requirement of extending the struts 2 control tags like text
field, check box, select. i want to add a new attribute to the component,
which will allows to identify certain properties like visibility,
editability, label text from the database and render the component.

 to implement this for text field i have created a class that extends
"org.apache.struts2.views.jsp.ui.TextFieldTag", from here i am trying to
assign label for the text field as "super.setLabel("Employee Number");". but
it is not rendering the label. can any one suggest me the correct process to
do this?

Thanks in advance



--
--
Alberto
http://www.linkedin.com/in/aflores

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Unit testing Struts 2 systems in multiple projects

2008-09-18 Thread Peter Butler
We are doing web development using Struts 2, building using Maven. Our
system is made up of two projects: a war project and a core project. The
war project contains all web resources, jsps, etc. The core project
contains all of our struts actions, service layer and data access layer.

 

We split our system up like this because of the Maven restriction on
generating one artifact per project. The problem is that this makes
automated testing difficult. The web project contains the struts.xml
file that defines all of our actions but the action source code is in
the core project.

 

How can we set things up so that the test code can pick up the
struts.xml file from the web project while testing the code in the core
project? I have been thinking about putting the tests in the web
project, but this means that the test code is in a different project
from the code that is being tested, which is not ideal. The other
alternative is to have separate struts.xml files for testing and
deployment, which is also not ideal.

 

How have other people handled this?

 

Cheers

 

Peter

 

 

 


___
The information contained in this e-mail is confidential and may be privileged. 
It is intended for the addressee only. If you are not the intended recipient, 
please delete this e-mail immediately. The contents of this e-mail must not be 
disclosed or copied without the sender's consent. The statements and opinions 
expressed in this message are those of the author and do not necessarily 
reflect those of the company. The company does not take any responsibility for 
the views of the author.

Registered Office: IT-Freedom Limited, 9 Minster Court, Tuscam Way, Camberley, 
Surrey GU15 3YY 
Registered in England, Number: 04500346
___

Re: Unit testing Struts 2 systems in multiple projects

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, Peter Butler wrote:
> The war project contains all web resources, jsps, etc. 
> The core project contains all of our struts actions, 
> service layer and data access layer.

IMO that's broken--the S2 actions should be part of the web project because... 
that's what S2 is--the web layer. That solves your problem and (to me, anyway) 
seems a more logical approach.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven Archetype

2008-09-18 Thread Wendy Smoak
On Thu, Sep 18, 2008 at 4:29 AM, Jeromy Evans
<[EMAIL PROTECTED]> wrote:

> The starter archetype for 2.0.11.2 is ...  awaiting formal release to the 
> maven repository.

It's done... 
http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-starter/2.0.11.2/

(And the staging repo has been removed.)

-- 
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unit testing Struts 2 systems in multiple projects

2008-09-18 Thread Peter Butler
>> The war project contains all web resources, jsps, etc. 
>> The core project contains all of our struts actions, 
>> service layer and data access layer.

> IMO that's broken--the S2 actions should be part of the web
> project because... that's what S2 is--the web layer. That
> solves your problem and (to me, anyway) seems a more logical approach.

Ordinarily I would agree with you, but we have a constraint that I
forgot to mention: our actions have to be usable in more than one web
project. The system we are building is deployed to more than one
customer. We customise the web project by overlaying customer-specific
files in separate projects.

I was thinking that another approach to this might be to keep all
actions in the core project, along with the struts.xml file, then
package these into a jar file. This page:

http://struts.apache.org/2.0.11.2/docs/can-we-break-up-a-large-strutsxml
-file-into-smaller-pieces.html

says that this is possible, but doesn't give any details. Does anyone
have any more details on getting this to work?

Cheers

Peter


___
The information contained in this e-mail is confidential and may be privileged. 
It is intended for the addressee only. If you are not the intended recipient, 
please delete this e-mail immediately. The contents of this e-mail must not be 
disclosed or copied without the sender's consent. The statements and opinions 
expressed in this message are those of the author and do not necessarily 
reflect those of the company. The company does not take any responsibility for 
the views of the author.

Registered Office: IT-Freedom Limited, 9 Minster Court, Tuscam Way, Camberley, 
Surrey GU15 3YY 
Registered in England, Number: 04500346
___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts2-dojo-plugin problem

2008-09-18 Thread daveck

Any idea how to get the struts2-dojo-plugin-2.1.2 with struts 2.0.11?  I've
tried to put the  before the  in the
struts-dojo-tags.tld with no luck.  I'm running resin 3.0.  I feel like an
idiot.  Thanks for any help you can give.

ERROR:
jar:file:/usr/lib/resin/webapps/hol/WEB-INF/lib/struts2-dojo-plugin-2.1.2.jar!/META-INF/struts-dojo-tags.tld:6:
 is an unexpected tag (parent  starts at 2). Check
for duplicate and out-of-order tags.
 syntax: (@version, @xsi:schemaLocation?, *,
?,
?, , , ?, ?, *,
*, *, *, *)
-- 
View this message in context: 
http://www.nabble.com/struts2-dojo-plugin-problem-tp19554587p19554587.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help in resetting multiple form data

2008-09-18 Thread Sulabha Walavalkar
Hi,

 

I am using 4 forms in one jsp, the reason being few select UI components &
search are common to other use cases. 

The problem I'm facing is with resetting the fields on successful completion
of any transaction.

 

One option is calling reset() method on all the forms in java script
function on onload even of body. But my application is using tiles & master
layout jsp because of which my function on body onload is not getting
called.

 

Can someone help me out giving any options to clear the data for all the
forms displayed in jsp?

 

Thanks & Regards,
Sulabha 

 



html:select in firefox

2008-09-18 Thread Jeffrey Born
I'm trying to use a JavaScript function getElementById to access the
selectedIndex property of an HTML select tag that is generated via a
struts html:select tag.  The JavaScript function is failing because
the Id attribute is missing.  IE works with the name attribute which
is generated.

I'm using struts 1.1.

I could override the html:select tag to output an Id attribute, but
there has to be a more elegant solution to this?  Or it was solved
some other way?

Any tips would be greatly appriciated.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:select in firefox

2008-09-18 Thread Antonio Petrelli
2008/9/18 Jeffrey Born <[EMAIL PROTECTED]>:
> I could override the html:select tag to output an Id attribute, but
> there has to be a more elegant solution to this?  Or it was solved
> some other way?

Use the "styleId" attribute of 

Ciao
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: html:select in firefox

2008-09-18 Thread Martin Gainty

hi jeff-
id is a standard html attribute 
http://www.w3schools.com/TAGS/ref_standardattributes.asp
what behaviour would you expect when the id is null
?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Thu, 18 Sep 2008 11:02:27 -0400
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: html:select in firefox
> 
> I'm trying to use a JavaScript function getElementById to access the
> selectedIndex property of an HTML select tag that is generated via a
> struts html:select tag.  The JavaScript function is failing because
> the Id attribute is missing.  IE works with the name attribute which
> is generated.
> 
> I'm using struts 1.1.
> 
> I could override the html:select tag to output an Id attribute, but
> there has to be a more elegant solution to this?  Or it was solved
> some other way?
> 
> Any tips would be greatly appriciated.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

How to use session in velocity using struts2

2008-09-18 Thread Ramesh R
Hi,

I have implemented SessionWare method in my action class. I am able to get
the session variables in the action. But am not able to get in velocity;

I have set user object  to session like this.
*session.put("USERS",users);*

when i print *session.get("USERS")*, i am able to get the values.

In velocity am using it like this. But its not printing the values.
*$session.get("USERS");

*when i print the session object as
$session its printing like
[EMAIL PROTECTED]
*

please guide on this.

-- 
cheers !!

ramesh r


[S2] not including null-params in URL of GET-submitted form

2008-09-18 Thread Pierre Thibaudeau
Is there a way to avoid null-valued (or empty-valued) parameters to be
explicitely mentioned in the URL generated by a form submitted through the
GET method?

For instance, here's a form:







If the user types "FOO" in the first textfield and nothing in the second,
the submitted URL will be something like:
http://myhost.com/myAction.action?param1=FOO¶m2=

Can I get rid of the "param2=" part, which serves no purpose?

(The alternative would be to POST the method to an action that would merely
redirect to the desired action, dropping the undesired parameters along the
way.)


Re: html:select in firefox

2008-09-18 Thread Jeffrey Born
The styleId attribute did the trick.  To quote the great homer simpson:  "doh!"

When it was not there, firefox responded exactly like it should.  The
method is getElementById not getElementByName.  getElementByName works
just fine under IE however since under IE it uses the name attribute.

Thanks again for solving this for me.  It was driving me crazy!

On 9/18/08, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> hi jeff-
> id is a standard html attribute
> http://www.w3schools.com/TAGS/ref_standardattributes.asp
> what behaviour would you expect when the id is null
> ?
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
>> Date: Thu, 18 Sep 2008 11:02:27 -0400
>> From: [EMAIL PROTECTED]
>> To: user@struts.apache.org
>> Subject: html:select in firefox
>>
>> I'm trying to use a JavaScript function getElementById to access the
>> selectedIndex property of an HTML select tag that is generated via a
>> struts html:select tag.  The JavaScript function is failing because
>> the Id attribute is missing.  IE works with the name attribute which
>> is generated.
>>
>> I'm using struts 1.1.
>>
>> I could override the html:select tag to output an Id attribute, but
>> there has to be a more elegant solution to this?  Or it was solved
>> some other way?
>>
>> Any tips would be greatly appriciated.
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> _
> Stay up to date on your PC, the Web, and your mobile phone with Windows
> Live.
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Question about request/sessions

2008-09-18 Thread rageice

Hello, sorry for my bad english.

I am working on an application that uses a framework, and this framework
uses itself struts.

There is something I can't understand:
In a request, 2 actions are caled the one after the other (nothing other
action between the two actions).

In the first action, the session contains an attribute, and in the second
one, this attribute is null.
Do you see any reason for this?

AjouterUserGroupeAction is the first one

  


InitAction is the second one.

  
  ...


And the code in the "process" methods can't be the cause of this problem...


Thanks in advance for any help.


-- 
View this message in context: 
http://www.nabble.com/Question-about-request-sessions-tp19557410p19557410.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts 2: How can we save the parameters if we do redirect and not redirect-action

2008-09-18 Thread srinivasch

Hi,

   My issue goes like this, I have a summary page which comes for a search
result, and the user clicks to see summary of any record from the result. So
all the search parameters are existing in the URL. And when we further hit
edit link of the summary record, and again when the user hits cancel or
save, the URL parameters which were forwarded to the summary page wont
exist. I would like to retain the parameters. Appreciate your quick response

Here is the snippet of my struts config how I used the result


/view.action?linID=${linID}

-- 
View this message in context: 
http://www.nabble.com/Struts-2%3A-How-can-we-save-the-parameters-if-we-do-redirect-and-not-redirect-action-tp19557514p19557514.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2: How can we save the parameters if we do redirect and not redirect-action

2008-09-18 Thread daveck

I ended up solving a similiar problem using an Interceptor and saving the
parameter Map to the session.

session.setAttribute("input_params", request.getParameterMap();

Then in my action I implemented SessionAware and utililized BeanUtils from
Jakarta Commons to re-populate the properties in my action class.

this.setRequestMap((Map)this.getSession().get("input_parms"));
BeanUtils.populate(this, this.getRequestMap();

Hope this helps.


srinivasch wrote:
> 
> Hi,
> 
>My issue goes like this, I have a summary page which comes for a search
> result, and the user clicks to see summary of any record from the result.
> So all the search parameters are existing in the URL. And when we further
> hit edit link of the summary record, and again when the user hits cancel
> or save, the URL parameters which were forwarded to the summary page wont
> exist. I would like to retain the parameters. Appreciate your quick
> response
> 
> Here is the snippet of my struts config how I used the result
> 
> 
>   /view.action?linID=${linID}
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2%3A-How-can-we-save-the-parameters-if-we-do-redirect-and-not-redirect-action-tp19557514p19557768.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2: How can we save the parameters if we do redirect and not redirect-action

2008-09-18 Thread srinivasch

Where did you set the session with the parameterMap in the
servletRedirectResult.java or ?

daveck wrote:
> 
> I ended up solving a similiar problem using an Interceptor and saving the
> parameter Map to the session.
> 
> session.setAttribute("input_params", request.getParameterMap();
> 
> Then in my action I implemented SessionAware and utililized BeanUtils from
> Jakarta Commons to re-populate the properties in my action class.
> 
> this.setRequestMap((Map)this.getSession().get("input_parms"));
> BeanUtils.populate(this, this.getRequestMap();
> 
> Hope this helps.
> 
> 
> srinivasch wrote:
>> 
>> Hi,
>> 
>>My issue goes like this, I have a summary page which comes for a
>> search result, and the user clicks to see summary of any record from the
>> result. So all the search parameters are existing in the URL. And when we
>> further hit edit link of the summary record, and again when the user hits
>> cancel or save, the URL parameters which were forwarded to the summary
>> page wont exist. I would like to retain the parameters. Appreciate your
>> quick response
>> 
>> Here is the snippet of my struts config how I used the result
>> 
>> 
>>  /view.action?linID=${linID}
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2%3A-How-can-we-save-the-parameters-if-we-do-redirect-and-not-redirect-action-tp19557514p19557837.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] solution - Action chaining and validation problem

2008-09-18 Thread Becky . L . O'Sullivan
The culprit wasn't the validation interceptor, but the workflow
interceptor.  Its only job is to stop the chain (and call input on
everything) when validation errors occur.  I removed it entirely and
everything is working as we need it to.  This worked for us because,
regardless of errors, we need our entire chain to go to completion.

I could have used the excludeMethods parameter, but it would have been * .
(so it was better to remove it entirely)

Thanks for the help,
-B



   
 Martin Gainty 
 <[EMAIL PROTECTED] 
 com>   To 
   Struts Users Mailing List   
 09/17/2008 03:55  
 PM cc 
   
   Subject 
 Please respond to RE: [S2] Action chaining and
   "Struts Users   validation problem  
   Mailing List"   
 <[EMAIL PROTECTED] 
  he.org>  
   
   
   





1 down ..more to go..have you have declared any methods in excludeMethods
 ?

http://struts.apache.org/2.0.6
/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html


Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission.


> Subject: RE: [S2] Action chaining and validation problem
> To: user@struts.apache.org
> From: Becky.L.O'[EMAIL PROTECTED]
> Date: Wed, 17 Sep 2008 15:32:49 -0700
>
> We actually have no validation XML files (we're setting error fields
> manually).  We're not performing validation using that approach, but we
> want to remain open to doing so in the future.   The validation
interceptor
> is in the struts-default stack, which is what our packages extend from.
>
> From what Dave said it sounds like short circuiting is not our solution.
> Is there perhaps a setting we're missing on the chaining interceptor to
> tell it not to call validation/input on downstream chained actions?
>
> I read a similar thread where someone suggested reordering the
interceptor
> stack so that validation is above chain, because when chain is first it
> copies action errors into the next action in the chain.  I've started
> making a custom interceptor stack to try this, but my guess is the action
> that JSP result won't see the action errors from the one action that
*does*
> set action error messages because they won't get copied down the stack.
>
> It seems like the framework is calling input on any downstream chained
> action if action errors are placed on the value stack by an upstream
> chained action.  We even have some actions called via s:action (execute
> results = true) in the JSP result and it's trying to call input even on
> those actions.
>
> -B
>
>
>
>
>

>  Martin Gainty

>  <[EMAIL PROTECTED]

>  com>
To
>Struts Users Mailing List

>  09/17/2008 11:21  

>  AM
cc
>

>
Subject
>  Please respond to RE: [S2] Action chaining and

>"Struts Users   validation problem

>Mailing List"

>  <[EMAIL PROTECTED]

>   he.org>

>

>

>

>
>
>
>
>
> check  your validators.xml to see if your short-circuit attribute is set
to
> true
> The invokemethod grants the Interceptor the power to short-circuiting the
> Action Invocation.
> Instead of calling invoke, the Interceptor can
> return a result String and
> bypass any remaining Interceptors on the stack and the Action's execute
> method.
> e.g.
>  
>
>
>
> you'll want to set short-circuit="false" to allow interceptors and
execute
> to be invoked
>
> http://struts.apache.org/2.x/docs/understanding-interceptors.html
>
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official

Re: Struts 2: How can we save the parameters if we do redirect and not redirect-action

2008-09-18 Thread DEck


In an interceptor that my action implemented.

session.setAttribute("PARMS", request.getParameterMap());



>  Where did you set the session with the parameterMap in the
>  servletRedirectResult.java or ?



This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual(s) or entity to whom they are addressed.
 If you receive this e-mail in error please notify [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: when will struts 2.1 be released?

2008-09-18 Thread roointan

I wonder why it is version 2.1
virtually everything is different in 2.1.
if you ask me, I say 2.0x is so buggy, or better said, it's beta!
they should have either not released 2.0x and kept it beta for enough time,
or should have changed the new one to 3 :)


Ganesh123 wrote:
> 
> Hi,
> 
>beta version is released you can download from
> 
> http://struts.apache.org/download.cgi
> 
> enjoy
> 

-- 
View this message in context: 
http://www.nabble.com/when-will-struts-2.1-be-released--tp19507678p19558576.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



List of tags that encode or filter output by default

2008-09-18 Thread Mike Ware
Is there a concise list anywhere that explains which tags HTML encode
output by default?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Interceptor question

2008-09-18 Thread Kawczynski, David
I'm sorry, I should have been more specific with my original question.

I need to secure struts *.action URIs.  Nothing else, be it by port, 
directory mapping, or context name.  Right now.  You see, my app 
supports 
adding users and changing their roles via web UI (hence the DB). It
also supports adding sections and/or pages at run-time, which requires
the capability to dynamically add new URI-role mappings.

For these reasons, container-managed security is out of the question.  
Recompiling, redeploying, and/or restarting are best avoided.  
This is what the current framework affords me.

These are the reasons I was thinking app-managed security.  The current
framework uses a filter to do authentication & authorization validation.
It throws typed exceptions which are handled via web.xml's error-page.
I was having difficulty maintaining sessions during this error page 
redirection, which makes it difficult to maintain the 
originally-requested URL for redirection to upon successful login.  
Aside from that it works well.

But I want to expand my skillset, so I can take this opportunity to work
with Interceptors.  Or Spring.  Or something else, but these two seem to
have more traction than anything else so that's probably where I'll
land.



-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2008 9:54 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [S2] Interceptor question


dave-

which urls needs to be secured?
Struts webapp?
All the webapps of your container?
everything under Port 80?

take a look at
http://www.devarticles.com/c/a/Java/Securing-Struts-Applications/

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 


> Subject: [S2] Interceptor question
> Date: Tue, 16 Sep 2008 16:37:26 -0400
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org; [EMAIL PROTECTED]
> 
> I have a mature, home-grown database-backed authentication &
> authorization framework.
> It does not conform to JAAS or anything remotely similar.
> I'd like to harness in a new struts2 site, because the core
> functionality exists, it pre-populated, etc
> 
> At a very high level, would I be able to get some advice on a path
> forward: should I be thinking of a custom Interceptor, extending an
> existing Interceptor, using Spring security, or something completely
> different?
> Thanks is advance,
> -dave
> 
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates
is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.

_
Want to do more with Windows Live? Learn "10 hidden secrets" from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cn
s!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: when will struts 2.1 be released?

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, roointan wrote:
> virtually everything is different in 2.1.

I'm running two almost completely unchanged applications in production that 
went from 2.0.9 to 2.1, so I guess there are more similarities than you'd 
suspect. Apparently less buggy, too.

> if you ask me, I say 2.0x is so buggy, or better said, it's beta!

Feel free to file bug reports and contribute fixes.

https://issues.apache.org/struts/secure/Dashboard.jspa

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2: How can we save the parameters if we do redirect and not redirect-action

2008-09-18 Thread srinivasch

   OK, I changed my view, i would go ahead and extend ServletRedirectResult
and try to include the request parameters just like how
ServletActionRedirectResult and URL component try to do. That way it would
be consistent. Your solution is also good though, but I dont like to have
extra code in my action since it will complicate my logic.


daveck wrote:
> 
> 
> 
> In an interceptor that my action implemented.
> 
> session.setAttribute("PARMS", request.getParameterMap());
> 
> 
> 
>>  Where did you set the session with the parameterMap in the
>>  servletRedirectResult.java or ?
> 
> 
> 
> This e-mail and any files transmitted with it are confidential and
> intended
> solely for the use of the individual(s) or entity to whom they are
> addressed.
>  If you receive this e-mail in error please notify
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2%3A-How-can-we-save-the-parameters-if-we-do-redirect-and-not-redirect-action-tp19557514p19558657.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2: How can we save the parameters if we do redirect and not redirect-action

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, srinivasch wrote:
> OK, I changed my view, i would go ahead and extend 
> ServletRedirectResult and try to include the request 
> parameters just like how ServletActionRedirectResult 
> and URL component try to do. That way it would
> be consistent. Your solution is also good though, but I
> dont like to have extra code in my action since it will 
> complicate my logic.

There's no extra code in the action. The code is in the interceptor. The action 
(I'm assuming) implements a marker interface to inform the interceptor that it 
should put the request parameters into the session.

IMO doing this in a custom result is the wrong way to go about it, for several 
reasons; one is that the interceptor approach works no matter what result type 
you end up using.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2: How can we save the parameters if we do redirect and not redirect-action

2008-09-18 Thread DEck
Yes.  I should have mentioned that I used a marker interface.




Dave Newton <[EMAIL PROTECTED]> 
09/18/2008 02:30 PM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: Struts 2: How can we save the parameters if we do redirect and not 
redirect-action







There's no extra code in the action. The code is in the interceptor. The 
action (I'm assuming) implements a marker interface to inform the 
interceptor that it should put the request parameters into the session.

IMO doing this in a custom result is the wrong way to go about it, for 
several reasons; one is that the interceptor approach works no matter what 
result type you end up using.

Dave





This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual(s) or entity to whom they are addressed.
 If you receive this e-mail in error please notify [EMAIL PROTECTED]



Struts2 value problem

2008-09-18 Thread dynamicd

i have an edit form which gets populated when the user clicks on edit.
My user wants me to have the password field in there populated with the pwd
that shows *
however the value attribute for the s:password does not seem to be taking
the password value
the text field works

THis works 


This doesnt


Any Ideas?
-- 
View this message in context: 
http://www.nabble.com/Struts2-%3Cs%3Apassword%3E-value-problem-tp19559062p19559062.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Performance and High CPU utilization

2008-09-18 Thread sajanv007

There is huge performance issue and CPU hogging with Struts2 tag , this was
observed while rendering JSP. These are some performance results obtained

Strut 2 Tag - With all performance tuning applied as per Struts 2
documentation - Freemarker caching etc...
Load Runner Tool
40 users
900 hits per second
10 transaction per second

Results
CPU utilization 90%
Response 3.5 sec

Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
s:text,s:textfield,s:hidden,s:param)
40 users
900 hits per second
15 transaction per second

Results
CPU utilization 70%
Response 2.0 sec

Some where down the line Struts 2 tag are very cpu hungry , to people to
adopt to strut2 framework cpu utilization should be optimized .


Did anybody come across on how to over come this problem

-- 
View this message in context: 
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



S2 - Need advice with Localization

2008-09-18 Thread bob fuller


I am trying to Localize a dynamic message and would like some advice as to how 
I should go about it. My main goal is to keep the message itself as 'intact' as 
possible in my package.properties, doing this will (hopefully) speed up 
translation by an interpreter. Goals after that are to use the Struts 2 
software correctly and cleanly and also keep the amount of work needed to a 
minimum.

Here's the dynamic message that I want to localize...

Welcome to SEA (Seattle International Airport) - Additional information about 
Hotels, Entertainment, Transportation, and Dining is available.

The "SEA" & "Seattle International Airport" parts of the message are dynamic. 
Also, the following words are dynamic links - "Hotels", "Entertainment", 
"Transportation", "Dining". Here is what the message looks like in my 
package.properties file...

welcomeMessage=Welcome to {0} ({1}) - Additional information about 
{2}Hotels{3}, {4}Entertainment{5}, {6}Transportation{7}, and {8}Dining{9} is 
available.

In my JSP I do this to render the single line of text (I didn't verify that 
it's syntax correct)... 

http://www.somewebsite.com/hotels.do";>
http://www.somewebsite.com/entertainment.do";>
http://www.somewebsite.com/transportation.do";>
http://www.somewebsite.com/dining.do";>  
">  ">  ">  
">


OK. Thanks for getting this far! I am concerned about the amount of JSP that is 
needed for my single dynamic message. Is that just how it is? Or perhaps my 
approach is flawed? Does anyone have any advice or perhaps a tutorial 
suggestion that provides examples 'advanced' localization examples?

Thanks.
_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: NoSuchMethodException

2008-09-18 Thread Volker Karlmeier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Lukas,

I'm sorry that my answer is coming quit late, but I came back from work 
soon.

Here's my code :

_*struts.xml:*_


http://struts.apache.org/dtds/struts-2.0.dtd";>



~
~
~
~
~value="globalMessages, navigation.properties" />


~
~
~

~ 

~[...]  
~class="net.magiccode.houseman.action.RentalObjectAction" method="{1}">

~
~type="redirectAction">rentalobjectlist

~rentalObject_{1}
~

~class="net.magiccode.houseman.action.base.I18nBaseAction" 
method="switchLanguage()">

~
~{0}
~

~  



RentalObject.java:

package net.magiccode.houseman.action;

import java.util.List;

import net.magiccode.houseman.action.base.I18nBaseAction;
import net.magiccode.houseman.model.RentalObject;
import net.magiccode.houseman.service.RentalObjectService;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;

public class RentalObjectAction extends* I18nBaseAction* implements 
ModelDriven, Preparable{

~/**
~ *
~ */
~private static final long serialVersionUID = 3085254858869668201L;


~private RentalObjectService service;
~private List rentalObjects;
~private RentalObject rentalObject;
~private Integer id;

~   [...]

_*I18nBaseAction.java (BaseAction inherits ActionSupport):*_

/**
~ *
~ */
public class I18nBaseAction extends BaseAction implements ActionConstants {

[...]

~public String switchLanguage() throws Exception{
~
setContentLanguage(getLanguageFactory().getLanguage(getLanguage()));

~return SUCCESS;
~}


I sent you only the relevant parts of the code to keep this mail readable.
Hope you may find an answer to my problem

Regards

~  Volker




Lukasz Lenart schrieb:
| Could you post some more details? Action code, config, the full stack 
trace?

|
|
| Regards


- --
- ---

Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mülheim/Ruhr

Tel. :  (+49) 208-7785675
Mobil:  (+49) 176-21056587
Mail :  [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFI0qumaEMQXBIqssERAljqAKChKy6mUzGgeSK9NW0RbGv556rZBwCfTbcf
y5SnZ4OGcVxmGKV2x5/xk2c=
=sRso
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread Nils-Helge Garli Hegvik
Maybe this can help:
http://struts.apache.org/2.0.11.2/docs/performance-tuning.html

Nils-H

On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]> wrote:
>
> There is huge performance issue and CPU hogging with Struts2 tag , this was
> observed while rendering JSP. These are some performance results obtained
>
> Strut 2 Tag - With all performance tuning applied as per Struts 2
> documentation - Freemarker caching etc...
> Load Runner Tool
> 40 users
> 900 hits per second
> 10 transaction per second
>
> Results
> CPU utilization 90%
> Response 3.5 sec
>
> Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
> s:text,s:textfield,s:hidden,s:param)
> 40 users
> 900 hits per second
> 15 transaction per second
>
> Results
> CPU utilization 70%
> Response 2.0 sec
>
> Some where down the line Struts 2 tag are very cpu hungry , to people to
> adopt to strut2 framework cpu utilization should be optimized .
>
>
> Did anybody come across on how to over come this problem
>
> --
> View this message in context: 
> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread sajanv007

I have tried all the tuning parameters mentioned in the link somehow CPU
utilization is always 80% ,I observed that it takes tags are rendered from
free marker cache but still the cpu 80-90% .

Regards

Sajan


Nils-Helge Garli wrote:
> 
> Maybe this can help:
> http://struts.apache.org/2.0.11.2/docs/performance-tuning.html
> 
> Nils-H
> 
> On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]> wrote:
>>
>> There is huge performance issue and CPU hogging with Struts2 tag , this
>> was
>> observed while rendering JSP. These are some performance results obtained
>>
>> Strut 2 Tag - With all performance tuning applied as per Struts 2
>> documentation - Freemarker caching etc...
>> Load Runner Tool
>> 40 users
>> 900 hits per second
>> 10 transaction per second
>>
>> Results
>> CPU utilization 90%
>> Response 3.5 sec
>>
>> Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
>> s:text,s:textfield,s:hidden,s:param)
>> 40 users
>> 900 hits per second
>> 15 transaction per second
>>
>> Results
>> CPU utilization 70%
>> Response 2.0 sec
>>
>> Some where down the line Struts 2 tag are very cpu hungry , to people to
>> adopt to strut2 framework cpu utilization should be optimized .
>>
>>
>> Did anybody come across on how to over come this problem
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NoSuchMethodException

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, Volker Karlmeier wrote:
> I'm sorry that my answer is coming quit late, but I
> came back from work soon. Here's my code :
> 
> _*struts.xml:*_
> ~[...]  
> ~ class="net.magiccode.houseman.action.RentalObjectAction"
> method="{1}">
> ~ name="paramsPrepareParamsStack" />
> ~ type="redirectAction">rentalobjectlist
> ~ type="tiles">rentalObject_{1}
> ~
> 
> ~ class="net.magiccode.houseman.action.base.I18nBaseAction"
> 
> method="switchLanguage()">

The first thing I'd try is removing the () in the "method" attribute.

> I sent you only the relevant parts of the code to keep 
> this mail readable.

Didn't work; make sure you're sending text emails to the list.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, sajanv007 wrote:
> I have tried all the tuning parameters mentioned in the link
> somehow CPU utilization is always 80% ,I observed that it 
> takes tags are rendered from free marker cache but still the 
> cpu 80-90% .

On what plaform and JVM? How many tags are on your page? I've not seen my CPU 
usage anywhere near that high.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread Jim Kiley
What kind of server are you using here, how much memory, what CPU -- when we
are getting to CPU utilization, all of these issues are relevant.

On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]> wrote:

>
> I have tried all the tuning parameters mentioned in the link somehow CPU
> utilization is always 80% ,I observed that it takes tags are rendered from
> free marker cache but still the cpu 80-90% .
>
> Regards
>
> Sajan
>
>
> Nils-Helge Garli wrote:
> >
> > Maybe this can help:
> > http://struts.apache.org/2.0.11.2/docs/performance-tuning.html
> >
> > Nils-H
> >
> > On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>
> wrote:
> >>
> >> There is huge performance issue and CPU hogging with Struts2 tag , this
> >> was
> >> observed while rendering JSP. These are some performance results
> obtained
> >>
> >> Strut 2 Tag - With all performance tuning applied as per Struts 2
> >> documentation - Freemarker caching etc...
> >> Load Runner Tool
> >> 40 users
> >> 900 hits per second
> >> 10 transaction per second
> >>
> >> Results
> >> CPU utilization 90%
> >> Response 3.5 sec
> >>
> >> Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
> >> s:text,s:textfield,s:hidden,s:param)
> >> 40 users
> >> 900 hits per second
> >> 15 transaction per second
> >>
> >> Results
> >> CPU utilization 70%
> >> Response 2.0 sec
> >>
> >> Some where down the line Struts 2 tag are very cpu hungry , to people to
> >> adopt to strut2 framework cpu utilization should be optimized .
> >>
> >>
> >> Did anybody come across on how to over come this problem
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com


Re: Performance and High CPU utilization

2008-09-18 Thread sajanv007

 It is a solaris box and has 16 GB memory and 4 CPU it is high end server
class machine . Some how I suspect it is the OGNL or Freemarker rendering
issue .

Jim Kiley wrote:
> 
> What kind of server are you using here, how much memory, what CPU -- when
> we
> are getting to CPU utilization, all of these issues are relevant.
> 
> On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]> wrote:
> 
>>
>> I have tried all the tuning parameters mentioned in the link somehow CPU
>> utilization is always 80% ,I observed that it takes tags are rendered
>> from
>> free marker cache but still the cpu 80-90% .
>>
>> Regards
>>
>> Sajan
>>
>>
>> Nils-Helge Garli wrote:
>> >
>> > Maybe this can help:
>> > http://struts.apache.org/2.0.11.2/docs/performance-tuning.html
>> >
>> > Nils-H
>> >
>> > On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>
>> wrote:
>> >>
>> >> There is huge performance issue and CPU hogging with Struts2 tag ,
>> this
>> >> was
>> >> observed while rendering JSP. These are some performance results
>> obtained
>> >>
>> >> Strut 2 Tag - With all performance tuning applied as per Struts 2
>> >> documentation - Freemarker caching etc...
>> >> Load Runner Tool
>> >> 40 users
>> >> 900 hits per second
>> >> 10 transaction per second
>> >>
>> >> Results
>> >> CPU utilization 90%
>> >> Response 3.5 sec
>> >>
>> >> Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
>> >> s:text,s:textfield,s:hidden,s:param)
>> >> 40 users
>> >> 900 hits per second
>> >> 15 transaction per second
>> >>
>> >> Results
>> >> CPU utilization 70%
>> >> Response 2.0 sec
>> >>
>> >> Some where down the line Struts 2 tag are very cpu hungry , to people
>> to
>> >> adopt to strut2 framework cpu utilization should be optimized .
>> >>
>> >>
>> >> Did anybody come across on how to over come this problem
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560372.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2 - Need advice with Localization

2008-09-18 Thread Paweł Wielgus
Hi Bob,
i would do it like that:

welcomeMessage=Welcome to {0} - Additional information about {1} is available.

then in jsp


and in action
public String getWelcomeMessage() {
 return getText("welcomeMessage", varFromDatabase1, varFromDatabase2);
}

I asume that name and second parameter are constructed somehow
(database or configuration).
I'm not saying that this is most proper, but it will do the job.

Best greetings,
Paweł Wielgus.



2008/9/18 bob fuller <[EMAIL PROTECTED]>:
>
>
> I am trying to Localize a dynamic message and would like some advice as to 
> how I should go about it. My main goal is to keep the message itself as 
> 'intact' as possible in my package.properties, doing this will (hopefully) 
> speed up translation by an interpreter. Goals after that are to use the 
> Struts 2 software correctly and cleanly and also keep the amount of work 
> needed to a minimum.
>
> Here's the dynamic message that I want to localize...
>
> Welcome to SEA (Seattle International Airport) - Additional information about 
> Hotels, Entertainment, Transportation, and Dining is available.
>
> The "SEA" & "Seattle International Airport" parts of the message are dynamic. 
> Also, the following words are dynamic links - "Hotels", "Entertainment", 
> "Transportation", "Dining". Here is what the message looks like in my 
> package.properties file...
>
> welcomeMessage=Welcome to {0} ({1}) - Additional information about 
> {2}Hotels{3}, {4}Entertainment{5}, {6}Transportation{7}, and {8}Dining{9} is 
> available.
>
> In my JSP I do this to render the single line of text (I didn't verify that 
> it's syntax correct)...
>
> http://www.somewebsite.com/hotels.do";>   name="airportCode">  
>  value="http://www.somewebsite.com/entertainment.do";>   name="airportCode">  
>  value="http://www.somewebsite.com/transportation.do";>   name="airportCode">  
>  value="http://www.somewebsite.com/dining.do";> 
> name="welcomeMessage"> value="airport.name"/>  ">  
> "> value="''"/>  ">  
> ">
> 
>
> OK. Thanks for getting this far! I am concerned about the amount of JSP that 
> is needed for my single dynamic message. Is that just how it is? Or perhaps 
> my approach is flawed? Does anyone have any advice or perhaps a tutorial 
> suggestion that provides examples 'advanced' localization examples?
>
> Thanks.
> _
> Get more out of the Web. Learn 10 hidden secrets of Windows Live.
> http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008


Re: NoSuchMethodException

2008-09-18 Thread Volker Karlmeier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

fantastic. I've watched this code for ours  but not seen that.

Thanx a lot :)

~  Volker

Dave Newton schrieb:
| --- On Thu, 9/18/08, Volker Karlmeier wrote:
|> I'm sorry that my answer is coming quit late, but I
|> came back from work soon. Here's my code :
|>
|> _*struts.xml:*_
|> ~[...]  
|> ~
|> class="net.magiccode.houseman.action.RentalObjectAction"
|> method="{1}">
|> ~ name="paramsPrepareParamsStack" />
|> ~ type="redirectAction">rentalobjectlist
|> ~ type="tiles">rentalObject_{1}
|> ~
|>
|> ~ class="net.magiccode.houseman.action.base.I18nBaseAction"
|>
|> method="switchLanguage()">
|
| The first thing I'd try is removing the () in the "method" attribute.
|
|> I sent you only the relevant parts of the code to keep
|> this mail readable.
|
| Didn't work; make sure you're sending text emails to the list.
|
| Dave
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|


- --
- ---

Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mülheim/Ruhr

Tel. :  (+49) 208-7785675
Mobil:  (+49) 176-21056587
Mail :  [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFI0rMNaEMQXBIqssERAo3OAJ9bbOhp8DOvzyZ4cmsnH3AesrzcgQCgljxY
PCv5nXQfpnVWF1mioIW1smM=
=zuNl
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Performance and High CPU utilization

2008-09-18 Thread Alvaro Gomez
What is problem Originality?
The problem run Tomcat or OAS, this problem written is configuracion in JVM,
what is configuracion used in this moment, tha configuracion view in JVM 

-Mensaje original-
De: sajanv007 [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 18 de Septiembre de 2008 01:52 p.m.
Para: user@struts.apache.org
Asunto: Re: Performance and High CPU utilization


 It is a solaris box and has 16 GB memory and 4 CPU it is high end server class
machine . Some how I suspect it is the OGNL or Freemarker rendering issue .

Jim Kiley wrote:
> 
> What kind of server are you using here, how much memory, what CPU -- 
> when we are getting to CPU utilization, all of these issues are 
> relevant.
> 
> On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]> wrote:
> 
>>
>> I have tried all the tuning parameters mentioned in the link somehow 
>> CPU utilization is always 80% ,I observed that it takes tags are 
>> rendered from free marker cache but still the cpu 80-90% .
>>
>> Regards
>>
>> Sajan
>>
>>
>> Nils-Helge Garli wrote:
>> >
>> > Maybe this can help:
>> > http://struts.apache.org/2.0.11.2/docs/performance-tuning.html
>> >
>> > Nils-H
>> >
>> > On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>
>> wrote:
>> >>
>> >> There is huge performance issue and CPU hogging with Struts2 tag ,
>> this
>> >> was
>> >> observed while rendering JSP. These are some performance results
>> obtained
>> >>
>> >> Strut 2 Tag - With all performance tuning applied as per Struts 2 
>> >> documentation - Freemarker caching etc...
>> >> Load Runner Tool
>> >> 40 users
>> >> 900 hits per second
>> >> 10 transaction per second
>> >>
>> >> Results
>> >> CPU utilization 90%
>> >> Response 3.5 sec
>> >>
>> >> Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
>> >> s:text,s:textfield,s:hidden,s:param)
>> >> 40 users
>> >> 900 hits per second
>> >> 15 transaction per second
>> >>
>> >> Results
>> >> CPU utilization 70%
>> >> Response 2.0 sec
>> >>
>> >> Some where down the line Struts 2 tag are very cpu hungry , to 
>> >> people
>> to
>> >> adopt to strut2 framework cpu utilization should be optimized .
>> >>
>> >>
>> >> Did anybody come across on how to over come this problem
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123
>> p19559123.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> --
>> >> --- To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > ---
>> > -- To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123
>> p19560223.html Sent from the Struts - User mailing list archive at 
>> Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
> 
> 

--
View this message in context:
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560372.h
tml
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__ Informacisn de NOD32, revisisn 3452 (20080918) __

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread Al Sutton
Replace your freemarker lib with 2.3.13 or later. Prior releases had a 
concurrency performance issue.


Al.

sajanv007 wrote:

 It is a solaris box and has 16 GB memory and 4 CPU it is high end server
class machine . Some how I suspect it is the OGNL or Freemarker rendering
issue .

Jim Kiley wrote:
  

What kind of server are you using here, how much memory, what CPU -- when
we
are getting to CPU utilization, all of these issues are relevant.

On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]> wrote:



I have tried all the tuning parameters mentioned in the link somehow CPU
utilization is always 80% ,I observed that it takes tags are rendered
from
free marker cache but still the cpu 80-90% .

Regards

Sajan


Nils-Helge Garli wrote:
  

Maybe this can help:
http://struts.apache.org/2.0.11.2/docs/performance-tuning.html

Nils-H

On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>


wrote:
  

There is huge performance issue and CPU hogging with Struts2 tag ,
  

this
  

was
observed while rendering JSP. These are some performance results
  

obtained
  

Strut 2 Tag - With all performance tuning applied as per Struts 2
documentation - Freemarker caching etc...
Load Runner Tool
40 users
900 hits per second
10 transaction per second

Results
CPU utilization 90%
Response 3.5 sec

Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
s:text,s:textfield,s:hidden,s:param)
40 users
900 hits per second
15 transaction per second

Results
CPU utilization 70%
Response 2.0 sec

Some where down the line Struts 2 tag are very cpu hungry , to people
  

to
  

adopt to strut2 framework cpu utilization should be optimized .


Did anybody come across on how to over come this problem

--
View this message in context:

  

http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
  

Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context:
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com





  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, sajanv007 wrote:
> It is a solaris box and has 16 GB memory and 4 CPU it is
> high end server class machine . Some how I suspect it is 
> the OGNL or Freemarker rendering issue.

Perhaps, but if so, I'll stick with my old dev box with a P4 and 2G running 
WebSphere, because I don't see anything remotely approaching that kind of 
usage. Or the T2000's used at my last job.

Same question, preferably with more info this time: what JVM, how many tags, 
etc.

You may want to take this up with FreeMarker and/or whoever does your JVM. 
FreeMarker/OGNL is slow, but it's not *that* slow that it'd take up 90% CPU 
like that.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 value problem

2008-09-18 Thread dynamicd

showPassword="true"

solved the problem 



dynamicd wrote:
> 
> i have an edit form which gets populated when the user clicks on edit.
> My user wants me to have the password field in there populated with the
> pwd that shows *
> however the value attribute for the s:password does not seem to be taking
> the password value
> the text field works
> 
> THis works 
>  value="%{#request.USER.password}" />
> 
> This doesnt
>  />
> 
> Any Ideas?
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-%3Cs%3Apassword%3E-value-problem-tp19559062p19560649.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Performance and High CPU utilization

2008-09-18 Thread sajanv007

I am using Weblogic 9.2 MP1 and Sun one web server 6.5 
The images,js and css is served thru the webserver and the application
server renders the forms , we are using simple theme nothing more than that
. 

Regards

Sajan

Alvaro Ernesto Gomez Cerna wrote:
> 
> What is problem Originality?
> The problem run Tomcat or OAS, this problem written is configuracion in
> JVM,
> what is configuracion used in this moment, tha configuracion view in JVM 
> 
> -Mensaje original-
> De: sajanv007 [mailto:[EMAIL PROTECTED] 
> Enviado el: Jueves, 18 de Septiembre de 2008 01:52 p.m.
> Para: user@struts.apache.org
> Asunto: Re: Performance and High CPU utilization
> 
> 
>  It is a solaris box and has 16 GB memory and 4 CPU it is high end server
> class
> machine . Some how I suspect it is the OGNL or Freemarker rendering issue
> .
> 
> Jim Kiley wrote:
>> 
>> What kind of server are you using here, how much memory, what CPU -- 
>> when we are getting to CPU utilization, all of these issues are 
>> relevant.
>> 
>> On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]>
>> wrote:
>> 
>>>
>>> I have tried all the tuning parameters mentioned in the link somehow 
>>> CPU utilization is always 80% ,I observed that it takes tags are 
>>> rendered from free marker cache but still the cpu 80-90% .
>>>
>>> Regards
>>>
>>> Sajan
>>>
>>>
>>> Nils-Helge Garli wrote:
>>> >
>>> > Maybe this can help:
>>> > http://struts.apache.org/2.0.11.2/docs/performance-tuning.html
>>> >
>>> > Nils-H
>>> >
>>> > On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>
>>> wrote:
>>> >>
>>> >> There is huge performance issue and CPU hogging with Struts2 tag ,
>>> this
>>> >> was
>>> >> observed while rendering JSP. These are some performance results
>>> obtained
>>> >>
>>> >> Strut 2 Tag - With all performance tuning applied as per Struts 2 
>>> >> documentation - Freemarker caching etc...
>>> >> Load Runner Tool
>>> >> 40 users
>>> >> 900 hits per second
>>> >> 10 transaction per second
>>> >>
>>> >> Results
>>> >> CPU utilization 90%
>>> >> Response 3.5 sec
>>> >>
>>> >> Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
>>> >> s:text,s:textfield,s:hidden,s:param)
>>> >> 40 users
>>> >> 900 hits per second
>>> >> 15 transaction per second
>>> >>
>>> >> Results
>>> >> CPU utilization 70%
>>> >> Response 2.0 sec
>>> >>
>>> >> Some where down the line Struts 2 tag are very cpu hungry , to 
>>> >> people
>>> to
>>> >> adopt to strut2 framework cpu utilization should be optimized .
>>> >>
>>> >>
>>> >> Did anybody come across on how to over come this problem
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123
>>> p19559123.html
>>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >> --
>>> >> --- To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>>> >>
>>> >>
>>> >
>>> > ---
>>> > -- To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123
>>> p19560223.html Sent from the Struts - User mailing list archive at 
>>> Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>> 
>> 
>> --
>> Jim Kiley
>> Technical Consultant | Summa
>> [p] 412.258.3346 [m] 412.445.1729
>> http://www.summa-tech.com
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560372.h
> tml
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> __ Informacisn de NOD32, revisisn 3452 (20080918) __
> 
> Este mensaje ha sido analizado con NOD32 antivirus system
> http://www.nod32.com
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560656.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Performance and High CPU utilization

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, sajanv007 wrote:
> I am using Weblogic 9.2 MP1 and Sun one web server 6.5 
> The images,js and css is served thru the webserver and the
> application server renders the forms , we are using simple 
> theme nothing more than that

I'd definitely try Al's advice as a first attempt, then.

If that doesn't mitigate the problem I'd bust out a profiler.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread sajanv007

I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL 2.7.2
with Javaassist .

Al Sutton wrote:
> 
> Replace your freemarker lib with 2.3.13 or later. Prior releases had a 
> concurrency performance issue.
> 
> Al.
> 
> sajanv007 wrote:
>>  It is a solaris box and has 16 GB memory and 4 CPU it is high end server
>> class machine . Some how I suspect it is the OGNL or Freemarker rendering
>> issue .
>>
>> Jim Kiley wrote:
>>   
>>> What kind of server are you using here, how much memory, what CPU --
>>> when
>>> we
>>> are getting to CPU utilization, all of these issues are relevant.
>>>
>>> On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]>
>>> wrote:
>>>
>>> 
 I have tried all the tuning parameters mentioned in the link somehow
 CPU
 utilization is always 80% ,I observed that it takes tags are rendered
 from
 free marker cache but still the cpu 80-90% .

 Regards

 Sajan


 Nils-Helge Garli wrote:
   
> Maybe this can help:
> http://struts.apache.org/2.0.11.2/docs/performance-tuning.html
>
> Nils-H
>
> On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>
> 
 wrote:
   
>> There is huge performance issue and CPU hogging with Struts2 tag ,
>>   
 this
   
>> was
>> observed while rendering JSP. These are some performance results
>>   
 obtained
   
>> Strut 2 Tag - With all performance tuning applied as per Struts 2
>> documentation - Freemarker caching etc...
>> Load Runner Tool
>> 40 users
>> 900 hits per second
>> 10 transaction per second
>>
>> Results
>> CPU utilization 90%
>> Response 3.5 sec
>>
>> Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
>> s:text,s:textfield,s:hidden,s:param)
>> 40 users
>> 900 hits per second
>> 15 transaction per second
>>
>> Results
>> CPU utilization 70%
>> Response 2.0 sec
>>
>> Some where down the line Struts 2 tag are very cpu hungry , to people
>>   
 to
   
>> adopt to strut2 framework cpu utilization should be optimized .
>>
>>
>> Did anybody come across on how to over come this problem
>>
>> --
>> View this message in context:
>>
>>   
 http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
   
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>   
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> 
 --
 View this message in context:
 http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   
>>> -- 
>>> Jim Kiley
>>> Technical Consultant | Summa
>>> [p] 412.258.3346 [m] 412.445.1729
>>> http://www.summa-tech.com
>>>
>>>
>>> 
>>
>>   
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560763.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts2-dojo-plugin problem

2008-09-18 Thread Laurie Harper

daveck wrote:

Any idea how to get the struts2-dojo-plugin-2.1.2 with struts 2.0.11?  I've
tried to put the  before the  in the
struts-dojo-tags.tld with no luck.  I'm running resin 3.0.  I feel like an
idiot.  Thanks for any help you can give.

ERROR:
jar:file:/usr/lib/resin/webapps/hol/WEB-INF/lib/struts2-dojo-plugin-2.1.2.jar!/META-INF/struts-dojo-tags.tld:6:
 is an unexpected tag (parent  starts at 2). Check
for duplicate and out-of-order tags.
 syntax: (@version, @xsi:schemaLocation?, *,
?,
?, , , ?, ?, *,
*, *, *, *)


I doubt this will work. Struts 2.0.11 includes a bundled version of 
Dojo, as well as the Ajax theme/tags. The Dojo plugin is intended for 
use with Struts 2.1.x, which *doesn't* bundle those items. By adding the 
plugin to a 2.0.x app, you will likely end up with conflicts.


Why are you trying to do this?

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] not including null-params in URL of GET-submitted form

2008-09-18 Thread Laurie Harper

Pierre Thibaudeau wrote:

Is there a way to avoid null-valued (or empty-valued) parameters to be
explicitely mentioned in the URL generated by a form submitted through the
GET method?

For instance, here's a form:







If the user types "FOO" in the first textfield and nothing in the second,
the submitted URL will be something like:
http://myhost.com/myAction.action?param1=FOO¶m2=

Can I get rid of the "param2=" part, which serves no purpose?

(The alternative would be to POST the method to an action that would merely
redirect to the desired action, dropping the undesired parameters along the
way.)


This is expected behabiour; short of doing some JavaScript-fu on form 
submit, I don't think you can avoid the empty params. That said, if the 
form submit is going to cause any data updates on the server, it really 
should be a POST anyway -- and if not, I'm not sure why the 'noise' in 
the URL matters.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2 - Need advice with Localization

2008-09-18 Thread Laurie Harper

bob fuller wrote:


I am trying to Localize a dynamic message and would like some advice as to how 
I should go about it. My main goal is to keep the message itself as 'intact' as 
possible in my package.properties, doing this will (hopefully) speed up 
translation by an interpreter. Goals after that are to use the Struts 2 
software correctly and cleanly and also keep the amount of work needed to a 
minimum.

Here's the dynamic message that I want to localize...

Welcome to SEA (Seattle International Airport) - Additional information about 
Hotels, Entertainment, Transportation, and Dining is available.

The "SEA" & "Seattle International Airport" parts of the message are dynamic. Also, the following words are dynamic 
links - "Hotels", "Entertainment", "Transportation", "Dining". Here is what the message looks like in 
my package.properties file...

welcomeMessage=Welcome to {0} ({1}) - Additional information about 
{2}Hotels{3}, {4}Entertainment{5}, {6}Transportation{7}, and {8}Dining{9} is 
available.

In my JSP I do this to render the single line of text (I didn't verify that it's syntax correct)... 


http://www.somewebsite.com/hotels.do";>http://www.somewebsite.com/entertainment.do";>http://www.somewebsite.com/transportation.do";>http://www.somewebsite.com/dining.do";>  ">  ">  
value="%{urlTransportation}"/>">  ">


OK. Thanks for getting this far! I am concerned about the amount of JSP that is 
needed for my single dynamic message. Is that just how it is? Or perhaps my 
approach is flawed? Does anyone have any advice or perhaps a tutorial 
suggestion that provides examples 'advanced' localization examples?


There are some obvious clean-ups you could do, such as: not requiring a 
separate s:param for the 'a' start-tag and end-tag (which seems error 
prone); factoring out the URL construction logic so you don't have to 
repeat the airportCode bit for each one; etc. That said, I would suggest 
considering a different approach.


1) create a custom tag / .tag file / custom struts tag to fully 
encapsulate all that presentation logic, perhaps using a single 
key/identifier to resolve all the dynamic bits;


2) creating a POJO helper class that knows how to do the dynamic data 
lookup and complex message construction, exposing an instance of it via 
a getter in your action and keeping the JSP code as simple as 



You didn't say *how* the various parts of the message are dynamic 
(loaded from a resource bundle? loaded from a database? hard-coded with 
different values in different JSPs?), so it's hard to be any more 
specific than that. And I'm sure there are other possible approaches I 
haven't thought of ;-)


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread Al Sutton

Do the ideas listed at

http://java.sun.com/developer/technicalArticles/Programming/HPROF.html

shed any light on it?

sajanv007 wrote:

I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL 2.7.2
with Javaassist .

Al Sutton wrote:
  
Replace your freemarker lib with 2.3.13 or later. Prior releases had a 
concurrency performance issue.


Al.

sajanv007 wrote:


 It is a solaris box and has 16 GB memory and 4 CPU it is high end server
class machine . Some how I suspect it is the OGNL or Freemarker rendering
issue .

Jim Kiley wrote:
  
  

What kind of server are you using here, how much memory, what CPU --
when
we
are getting to CPU utilization, all of these issues are relevant.

On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]>
wrote:




I have tried all the tuning parameters mentioned in the link somehow
CPU
utilization is always 80% ,I observed that it takes tags are rendered
from
free marker cache but still the cpu 80-90% .

Regards

Sajan


Nils-Helge Garli wrote:
  
  

Maybe this can help:
http://struts.apache.org/2.0.11.2/docs/performance-tuning.html

Nils-H

On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>



wrote:
  
  

There is huge performance issue and CPU hogging with Struts2 tag ,
  
  

this
  
  

was
observed while rendering JSP. These are some performance results
  
  

obtained
  
  

Strut 2 Tag - With all performance tuning applied as per Struts 2
documentation - Freemarker caching etc...
Load Runner Tool
40 users
900 hits per second
10 transaction per second

Results
CPU utilization 90%
Response 3.5 sec

Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
s:text,s:textfield,s:hidden,s:param)
40 users
900 hits per second
15 transaction per second

Results
CPU utilization 70%
Response 2.0 sec

Some where down the line Struts 2 tag are very cpu hungry , to people
  
  

to
  
  

adopt to strut2 framework cpu utilization should be optimized .


Did anybody come across on how to over come this problem

--
View this message in context:

  
  

http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
  
  

Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
View this message in context:
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  
  

--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com




  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread sajanv007

These are HProf results

CPU SAMPLES BEGIN (total = 3267) Sat Sep  6 12:27:45 2008
rank   self  accum   count trace method
   1 15.70% 15.70% 513 300397 java.net.PlainSocketImpl.socketAccept
   2 10.47% 26.17% 342 300856 java.net.SocketInputStream.socketRead0
   3  5.23% 31.40% 171 302117 java.net.PlainDatagramSocketImpl.receive0
   4  5.23% 36.64% 171 301880 java.net.SocketInputStream.socketRead0
   5  5.23% 41.87% 171 301035 weblogic.socket.DevPollSocketMuxer.doPoll
   6  3.28% 45.15% 107 303426 ognl.Ognl.getValue
   7  2.48% 47.63%  81 301738 sun.reflect.Reflection.getCallerClass
   8  1.99% 49.62%  65 300923 java.lang.String.intern
   9  1.87% 51.48%  61 303423 ognl.SimpleNode.evaluateGetValueBody
  10  1.81% 53.29%  59 300505 java.util.zip.ZipFile.getEntry
  11  1.56% 54.85%  51 301639 java.lang.Throwable.fillInStackTrace
  12  1.41% 56.26%  46 303434 java.util.ResourceBundle.getObject
  13  1.16% 57.42%  38 301739 java.lang.Object.clone
  14  1.13% 58.56%  37 303267 ognl.OgnlRuntime.getHandler
  15  1.01% 59.57%  33 301953 java.lang.Object.hashCode


Al Sutton wrote:
> 
> Do the ideas listed at
> 
> http://java.sun.com/developer/technicalArticles/Programming/HPROF.html
> 
> shed any light on it?
> 
> sajanv007 wrote:
>> I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL 2.7.2
>> with Javaassist .
>>
>> Al Sutton wrote:
>>   
>>> Replace your freemarker lib with 2.3.13 or later. Prior releases had a 
>>> concurrency performance issue.
>>>
>>> Al.
>>>
>>> sajanv007 wrote:
>>> 
  It is a solaris box and has 16 GB memory and 4 CPU it is high end
 server
 class machine . Some how I suspect it is the OGNL or Freemarker
 rendering
 issue .

 Jim Kiley wrote:
   
   
> What kind of server are you using here, how much memory, what CPU --
> when
> we
> are getting to CPU utilization, all of these issues are relevant.
>
> On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]>
> wrote:
>
> 
> 
>> I have tried all the tuning parameters mentioned in the link somehow
>> CPU
>> utilization is always 80% ,I observed that it takes tags are rendered
>> from
>> free marker cache but still the cpu 80-90% .
>>
>> Regards
>>
>> Sajan
>>
>>
>> Nils-Helge Garli wrote:
>>   
>>   
>>> Maybe this can help:
>>> http://struts.apache.org/2.0.11.2/docs/performance-tuning.html
>>>
>>> Nils-H
>>>
>>> On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>
>>> 
>>> 
>> wrote:
>>   
>>   
 There is huge performance issue and CPU hogging with Struts2 tag ,
   
   
>> this
>>   
>>   
 was
 observed while rendering JSP. These are some performance results
   
   
>> obtained
>>   
>>   
 Strut 2 Tag - With all performance tuning applied as per Struts 2
 documentation - Freemarker caching etc...
 Load Runner Tool
 40 users
 900 hits per second
 10 transaction per second

 Results
 CPU utilization 90%
 Response 3.5 sec

 Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
 s:text,s:textfield,s:hidden,s:param)
 40 users
 900 hits per second
 15 transaction per second

 Results
 CPU utilization 70%
 Response 2.0 sec

 Some where down the line Struts 2 tag are very cpu hungry , to
 people
   
   
>> to
>>   
>>   
 adopt to strut2 framework cpu utilization should be optimized .


 Did anybody come across on how to over come this problem

 --
 View this message in context:

   
   
>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
>>   
>>   
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   
   
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>> 
>>> 
>> --
>> View this message in context:
>> http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html
>

Re: Performance and High CPU utilization

2008-09-18 Thread sajanv007

sOME MORE TRACES 

CPU SAMPLES BEGIN (total = 8868) Sat Sep  6 12:29:17 2008
rank   self  accum   count trace method
   1 20.44% 20.44%1813 303423 ognl.SimpleNode.evaluateGetValueBody
   2 12.55% 33.00%1113 300397 java.net.PlainSocketImpl.socketAccept
   3  8.37% 41.36% 742 300856 java.net.SocketInputStream.socketRead0
   4  7.81% 49.18% 693 303426 ognl.Ognl.getValue
   5  4.52% 53.70% 401 303853 ognl.ASTProperty.getValueBody
   6  4.18% 57.88% 371 302117 java.net.PlainDatagramSocketImpl.receive0
   7  4.18% 62.07% 371 301880 java.net.SocketInputStream.socketRead0

sajanv007 wrote:
> 
> These are HProf results
> 
> CPU SAMPLES BEGIN (total = 3267) Sat Sep  6 12:27:45 2008
> rank   self  accum   count trace method
>1 15.70% 15.70% 513 300397 java.net.PlainSocketImpl.socketAccept
>2 10.47% 26.17% 342 300856 java.net.SocketInputStream.socketRead0
>3  5.23% 31.40% 171 302117
> java.net.PlainDatagramSocketImpl.receive0
>4  5.23% 36.64% 171 301880 java.net.SocketInputStream.socketRead0
>5  5.23% 41.87% 171 301035
> weblogic.socket.DevPollSocketMuxer.doPoll
>6  3.28% 45.15% 107 303426 ognl.Ognl.getValue
>7  2.48% 47.63%  81 301738 sun.reflect.Reflection.getCallerClass
>8  1.99% 49.62%  65 300923 java.lang.String.intern
>9  1.87% 51.48%  61 303423 ognl.SimpleNode.evaluateGetValueBody
>   10  1.81% 53.29%  59 300505 java.util.zip.ZipFile.getEntry
>   11  1.56% 54.85%  51 301639 java.lang.Throwable.fillInStackTrace
>   12  1.41% 56.26%  46 303434 java.util.ResourceBundle.getObject
>   13  1.16% 57.42%  38 301739 java.lang.Object.clone
>   14  1.13% 58.56%  37 303267 ognl.OgnlRuntime.getHandler
>   15  1.01% 59.57%  33 301953 java.lang.Object.hashCode
> 
> 
> Al Sutton wrote:
>> 
>> Do the ideas listed at
>> 
>> http://java.sun.com/developer/technicalArticles/Programming/HPROF.html
>> 
>> shed any light on it?
>> 
>> sajanv007 wrote:
>>> I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL
>>> 2.7.2
>>> with Javaassist .
>>>
>>> Al Sutton wrote:
>>>   
 Replace your freemarker lib with 2.3.13 or later. Prior releases had a 
 concurrency performance issue.

 Al.

 sajanv007 wrote:
 
>  It is a solaris box and has 16 GB memory and 4 CPU it is high end
> server
> class machine . Some how I suspect it is the OGNL or Freemarker
> rendering
> issue .
>
> Jim Kiley wrote:
>   
>   
>> What kind of server are you using here, how much memory, what CPU --
>> when
>> we
>> are getting to CPU utilization, all of these issues are relevant.
>>
>> On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]>
>> wrote:
>>
>> 
>> 
>>> I have tried all the tuning parameters mentioned in the link somehow
>>> CPU
>>> utilization is always 80% ,I observed that it takes tags are
>>> rendered
>>> from
>>> free marker cache but still the cpu 80-90% .
>>>
>>> Regards
>>>
>>> Sajan
>>>
>>>
>>> Nils-Helge Garli wrote:
>>>   
>>>   
 Maybe this can help:
 http://struts.apache.org/2.0.11.2/docs/performance-tuning.html

 Nils-H

 On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>
 
 
>>> wrote:
>>>   
>>>   
> There is huge performance issue and CPU hogging with Struts2 tag ,
>   
>   
>>> this
>>>   
>>>   
> was
> observed while rendering JSP. These are some performance results
>   
>   
>>> obtained
>>>   
>>>   
> Strut 2 Tag - With all performance tuning applied as per Struts 2
> documentation - Freemarker caching etc...
> Load Runner Tool
> 40 users
> 900 hits per second
> 10 transaction per second
>
> Results
> CPU utilization 90%
> Response 3.5 sec
>
> Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
> s:text,s:textfield,s:hidden,s:param)
> 40 users
> 900 hits per second
> 15 transaction per second
>
> Results
> CPU utilization 70%
> Response 2.0 sec
>
> Some where down the line Struts 2 tag are very cpu hungry , to
> people
>   
>   
>>> to
>>>   
>>>   
> adopt to strut2 framework cpu utilization should be optimized .
>
>
> Did anybody come across on how to over come this problem
>
> --
> View this message in context:
>
>   
>   
>>> http://www.nabble.com/Performance-and-High-CPU-utilizat

Configure result to go back to page I came from....

2008-09-18 Thread Volker Karlmeier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Struts-Freaks,

I have a quite easy question, I think:

how can I configure an action in struts.xml, that does nothing than go 
to the page I came from ?

Something like  or so ?

Thanks in advance.

~  Volker


- --
- ---

Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mülheim/Ruhr

Tel. :  (+49) 208-7785675
Mobil:  (+49) 176-21056587
Mail :  [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFI0sI1aEMQXBIqssERAttWAKCcAnFkfcqVTOG/b3gN85xnrs+rqACfYiEZ
4ADhfxoCbNh17amqM8GnpDA=
=3RBx
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configure result to go back to page I came from....

2008-09-18 Thread Paweł Wielgus
Hi Volker,
where it should go when i will open my browser window (blank) and type
Your action url?

Best greetings,
Paweł Wielgus.

2008/9/18 Volker Karlmeier <[EMAIL PROTECTED]>:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hello Struts-Freaks,
>
> I have a quite easy question, I think:
>
> how can I configure an action in struts.xml, that does nothing than go to
> the page I came from ?
> Something like  or so ?
>
> Thanks in advance.
>
> ~  Volker
>
>
> - --
> - ---
>
> Volker Karlmeier
> Friedrich-Freye-Str. 61
> 45481 Mülheim/Ruhr
>
> Tel. :  (+49) 208-7785675
> Mobil:  (+49) 176-21056587
> Mail :  [EMAIL PROTECTED]
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (GNU/Linux)
>
> iD8DBQFI0sI1aEMQXBIqssERAttWAKCcAnFkfcqVTOG/b3gN85xnrs+rqACfYiEZ
> 4ADhfxoCbNh17amqM8GnpDA=
> =3RBx
> -END PGP SIGNATURE-
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Configure result to go back to page I came from....

2008-09-18 Thread Volker Karlmeier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I think I have to explain my problem more clearly:

I have a page that show some text-fields. These Text-Fields can be 
filled in different languages.
To choose the according language, you can click on a button (e.g. 
english/french etc.) and a method "switchlanguage" is called,

which sets a parameter to the language I want to enter.
As I need this function on various pages, I want to implement it in a 
superclass of my action class.
After clicking on a language-button, I need to set the language and go 
back to the form to enter the text.
Therefore, I need a way to react on a result called "languageSwitched" 
which leads to the page I just came from.
As I do not want to write it in every action but only once in 
struts.xml, I need a result that goes back to that page

without having to specify each time, which page that was.
Is that possible ?

~  Volker


Paweł Wielgus schrieb:
| Hi Volker,
| where it should go when i will open my browser window (blank) and type
| Your action url?
|
| Best greetings,
| Paweł Wielgus.
|
| 2008/9/18 Volker Karlmeier <[EMAIL PROTECTED]>:
| Hello Struts-Freaks,
|
| I have a quite easy question, I think:
|
| how can I configure an action in struts.xml, that does nothing than go to
| the page I came from ?
| Something like  or so ?
|
| Thanks in advance.
|
| ~  Volker
|
|
|>
|>
- -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
|>
|>

- --
- ---

Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mülheim/Ruhr

Tel. :  (+49) 208-7785675
Mobil:  (+49) 176-21056587
Mail :  [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFI0sSkaEMQXBIqssERAqkuAJ0U44scceFNB5DJ2PljMdx1Op/0rgCfeahV
8TQELRYohqOMGZKsDCo7Jck=
=yU7g
-END PGP SIGNATURE-



[S2] s:form and title internationalization

2008-09-18 Thread Paweł Wielgus
Hi all,
i would like to add internationalized title element to my form,
but  is not working - title is not evaluated.
Does anyone have some kind of an elegant solution for it?
Or maybe i'm mising something here?

Best greetings,
Paweł Wielgus.


Re: [S2] s:form and title internationalization

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, Paweł Wielgus wrote:
> [...]  is not 
> working - title is not evaluated.

The form element doesn't render a title. It's an attribute of the form element 
because it inherits an underlying class covering the HTML tags, but doesn't use 
it itself.

There are a number of possible solutions, but the easiest would be to just add 
a table row/cell and use 

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tags nested

2008-09-18 Thread Alejandro77

Good morning.

I want to make the following order:

" />

With this order pretend that the value of attribute value of the first tag
 is dynamic but gives an error.
Does anyone know how I get that?

-- 
View this message in context: 
http://www.nabble.com/%3Cs%3Aproperty%3E-tags-nested-tp19563094p19563094.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configure result to go back to page I came from.... [SEC=UNCLASSIFIED]

2008-09-18 Thread Crombie, Joe
Hi Volker,

I've used result type httpheader and response-status code 204 for a similar 
problem:





204



200



HTH,

Joe

Joe Crombie
 
p. 02 6272 5906
e. [EMAIL PROTECTED]
 
Web Application Developer
Business Strategy and Operations
Bureau of Rural Sciences
Canberra,  Australia
 


> -Original Message-
> From: Volker Karlmeier [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 19 September 2008 7:14 AM
> To: Struts Users Mailing List
> Subject: Re: Configure result to go back to page I came from
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi,
> 
> I think I have to explain my problem more clearly:
> 
> I have a page that show some text-fields. These Text-Fields 
> can be filled in different languages.
> To choose the according language, you can click on a button (e.g. 
> english/french etc.) and a method "switchlanguage" is called, 
> which sets a parameter to the language I want to enter.
> As I need this function on various pages, I want to implement 
> it in a superclass of my action class.
> After clicking on a language-button, I need to set the 
> language and go back to the form to enter the text.
> Therefore, I need a way to react on a result called 
> "languageSwitched" 
> which leads to the page I just came from.
> As I do not want to write it in every action but only once in 
> struts.xml, I need a result that goes back to that page 
> without having to specify each time, which page that was.
> Is that possible ?
> 
> ~  Volker
> 
> 
> Paweł Wielgus schrieb:
> | Hi Volker,
> | where it should go when i will open my browser window 
> (blank) and type 
> | Your action url?
> |
> | Best greetings,
> | Paweł Wielgus.
> |
> | 2008/9/18 Volker Karlmeier <[EMAIL PROTECTED]>:
> | Hello Struts-Freaks,
> |
> | I have a quite easy question, I think:
> |
> | how can I configure an action in struts.xml, that does 
> nothing than go 
> | to the page I came from ?
> | Something like  or so ?
> |
> | Thanks in advance.
> |
> | ~  Volker
> |
> |
> |>
> |>
> - 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> |>
> |>
> 
> - --
> - ---
> 
> Volker Karlmeier
> Friedrich-Freye-Str. 61
> 45481 Mülheim/Ruhr
> 
> Tel. :  (+49) 208-7785675
> Mobil:  (+49) 176-21056587
> Mail :  [EMAIL PROTECTED]
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (GNU/Linux)
> 
> iD8DBQFI0sSkaEMQXBIqssERAqkuAJ0U44scceFNB5DJ2PljMdx1Op/0rgCfeahV
> 8TQELRYohqOMGZKsDCo7Jck=
> =yU7g
> -END PGP SIGNATURE-
> 
> 


--
IMPORTANT - This message has been issued by The Department of Agriculture, 
Fisheries and Forestry (DAFF). The information transmitted is for the use of 
the intended recipient only and may contain sensitive and/or legally privileged 
material. It is your responsibility to check any attachments for viruses and 
defects before opening or sending them on. 

Any reproduction, publication, communication, re-transmission, disclosure, 
dissemination or other use of the information contained in this e-mail by 
persons or entities other than the intended recipient is prohibited. The taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you have received this e-mail in 
error please notify the sender and delete all copies of this transmission 
together with any attachments. If you have received this e-mail as part of a 
valid mailing list and no longer want to receive a message such as this one 
advise the sender by return e-mail accordingly. Only e-mail correspondence 
which includes this footer, has been authorised by DAFF 

--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] not including null-params in URL of GET-submitted form

2008-09-18 Thread Gabriel Belingueres
try disabling the empty fields in the form's onsubmit event.

2008/9/18 Laurie Harper <[EMAIL PROTECTED]>:
> Pierre Thibaudeau wrote:
>>
>> Is there a way to avoid null-valued (or empty-valued) parameters to be
>> explicitely mentioned in the URL generated by a form submitted through the
>> GET method?
>>
>> For instance, here's a form:
>>
>> 
>>
>>
>>
>> 
>>
>> If the user types "FOO" in the first textfield and nothing in the second,
>> the submitted URL will be something like:
>> http://myhost.com/myAction.action?param1=FOO¶m2=
>>
>> Can I get rid of the "param2=" part, which serves no purpose?
>>
>> (The alternative would be to POST the method to an action that would
>> merely
>> redirect to the desired action, dropping the undesired parameters along
>> the
>> way.)
>
> This is expected behabiour; short of doing some JavaScript-fu on form
> submit, I don't think you can avoid the empty params. That said, if the form
> submit is going to cause any data updates on the server, it really should be
> a POST anyway -- and if not, I'm not sure why the 'noise' in the URL
> matters.
>
> L.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tags nested

2008-09-18 Thread Gabriel Belingueres
Could you provide more details of what are you trying to accomplish?

2008/9/18 Alejandro77 <[EMAIL PROTECTED]>:
>
> Good morning.
>
> I want to make the following order:
>
> " />
>
> With this order pretend that the value of attribute value of the first tag
>  is dynamic but gives an error.
> Does anyone know how I get that?
>
> --
> View this message in context: 
> http://www.nabble.com/%3Cs%3Aproperty%3E-tags-nested-tp19563094p19563094.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts2-dojo-plugin problem

2008-09-18 Thread daveck

I though the examples at
http://struts.apache.org/2.0.11.2/docs/ajax-and-javascript-recipes.html
would be helpful and didn't want to use all of struts 2.1 until the final
release.  I'm pretty sure I read somewhere that it was being done... 




> Why are you trying to do this?

> L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
View this message in context: 
http://www.nabble.com/struts2-dojo-plugin-problem-tp19554587p19565198.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts 2 : double select

2008-09-18 Thread sikandar sikandar
 
 
Has anyone overcome issues discussed regarding doubleselect in this article
 
http://struts2-java.blogspot.com/2008/09/doubleselect-with-full-functionality.html
 
_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

Re: sx:tree and sx:tabbedpanel do not integrate

2008-09-18 Thread RajibJana

Can anyone guide me to solve this problem?

Thanks



RajibJana wrote:
> 
> Hi All,
> 
> I am building a application using struts 2.1.2.
> 
> In my application, I want to have tree and by clicking a tree node, an
> action will excute and attached JSP with the action will have a
> tabbedpanel. ( just like a standard java GUI).
> 
> I have searched the showcase examples and found out the dynamic tree
> example where action is invoked by clicking the tree node. Below is the
> code:
> 
> --
> 
> dojo.event.topic.subscribe("treeSelected", function
> treeNodeSelected(node) {
> dojo.io.bind({
> url: " value='/tags/ui/ajax/dynamicTreeSelectAction.action'/>?nodeId="+node.node.widgetId,
> load: function(type, data, evt) {
> var divDisplay = dojo.byId("displayId");
> divDisplay.innerHTML=data;
> },
> mimeType: "text/html"
> });
> });
> 
> 
>  id="tree"
> rootNode="%{treeRootNode}" 
> childCollectionProperty="children" 
> nodeIdProperty="id"
> nodeTitleProperty="name"
> selectedNotifyTopics="treeSelected" >
> 
>  
> 
> 
> Please click on any of the tree nodes.
> 
> -
> 
> The result jsp of dynamicTreeSelectAction displays the nodeid and nodename
> in the div tag.
> 
> If I put a sx:tabbedpanel in this result jsp, then tabbedpanel does not
> render at all, in stead the content of panels are shown only( not the
> visual tabs).
> 
> I put the alert to see the innerhtml, it shows the correct content.
> 
> Where I went wrong?
> 
> Please help.
> 
> 
> Regards
> 
> Rajib
> Technical Architect
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/sx%3Atree-and-sx%3Atabbedpanel-do-not-integrate-tp19550399p19566766.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance and High CPU utilization

2008-09-18 Thread Al Sutton

Are you, by any chance, trying to display a big list all at once?

Al.

sajanv007 wrote:
sOME MORE TRACES 


CPU SAMPLES BEGIN (total = 8868) Sat Sep  6 12:29:17 2008
rank   self  accum   count trace method
   1 20.44% 20.44%1813 303423 ognl.SimpleNode.evaluateGetValueBody
   2 12.55% 33.00%1113 300397 java.net.PlainSocketImpl.socketAccept
   3  8.37% 41.36% 742 300856 java.net.SocketInputStream.socketRead0
   4  7.81% 49.18% 693 303426 ognl.Ognl.getValue
   5  4.52% 53.70% 401 303853 ognl.ASTProperty.getValueBody
   6  4.18% 57.88% 371 302117 java.net.PlainDatagramSocketImpl.receive0
   7  4.18% 62.07% 371 301880 java.net.SocketInputStream.socketRead0

sajanv007 wrote:
  

These are HProf results

CPU SAMPLES BEGIN (total = 3267) Sat Sep  6 12:27:45 2008
rank   self  accum   count trace method
   1 15.70% 15.70% 513 300397 java.net.PlainSocketImpl.socketAccept
   2 10.47% 26.17% 342 300856 java.net.SocketInputStream.socketRead0
   3  5.23% 31.40% 171 302117
java.net.PlainDatagramSocketImpl.receive0
   4  5.23% 36.64% 171 301880 java.net.SocketInputStream.socketRead0
   5  5.23% 41.87% 171 301035
weblogic.socket.DevPollSocketMuxer.doPoll
   6  3.28% 45.15% 107 303426 ognl.Ognl.getValue
   7  2.48% 47.63%  81 301738 sun.reflect.Reflection.getCallerClass
   8  1.99% 49.62%  65 300923 java.lang.String.intern
   9  1.87% 51.48%  61 303423 ognl.SimpleNode.evaluateGetValueBody
  10  1.81% 53.29%  59 300505 java.util.zip.ZipFile.getEntry
  11  1.56% 54.85%  51 301639 java.lang.Throwable.fillInStackTrace
  12  1.41% 56.26%  46 303434 java.util.ResourceBundle.getObject
  13  1.16% 57.42%  38 301739 java.lang.Object.clone
  14  1.13% 58.56%  37 303267 ognl.OgnlRuntime.getHandler
  15  1.01% 59.57%  33 301953 java.lang.Object.hashCode


Al Sutton wrote:


Do the ideas listed at

http://java.sun.com/developer/technicalArticles/Programming/HPROF.html

shed any light on it?

sajanv007 wrote:
  

I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL
2.7.2
with Javaassist .

Al Sutton wrote:
  

Replace your freemarker lib with 2.3.13 or later. Prior releases had a 
concurrency performance issue.


Al.

sajanv007 wrote:

  

 It is a solaris box and has 16 GB memory and 4 CPU it is high end
server
class machine . Some how I suspect it is the OGNL or Freemarker
rendering
issue .

Jim Kiley wrote:
  
  


What kind of server are you using here, how much memory, what CPU --
when
we
are getting to CPU utilization, all of these issues are relevant.

On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 <[EMAIL PROTECTED]>
wrote:



  

I have tried all the tuning parameters mentioned in the link somehow
CPU
utilization is always 80% ,I observed that it takes tags are
rendered
from
free marker cache but still the cpu 80-90% .

Regards

Sajan


Nils-Helge Garli wrote:
  
  


Maybe this can help:
http://struts.apache.org/2.0.11.2/docs/performance-tuning.html

Nils-H

On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 <[EMAIL PROTECTED]>


  

wrote:
  
  


There is huge performance issue and CPU hogging with Struts2 tag ,
  
  


this
  
  


was
observed while rendering JSP. These are some performance results
  
  


obtained
  
  


Strut 2 Tag - With all performance tuning applied as per Struts 2
documentation - Freemarker caching etc...
Load Runner Tool
40 users
900 hits per second
10 transaction per second

Results
CPU utilization 90%
Response 3.5 sec

Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
s:text,s:textfield,s:hidden,s:param)
40 users
900 hits per second
15 transaction per second

Results
CPU utilization 70%
Response 2.0 sec

Some where down the line Struts 2 tag are very cpu hungry , to
people
  
  


to
  
  


adopt to strut2 framework cpu utilization should be optimized .


Did anybody come across on how to over come this problem

--
View this message in context:

  
  


http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
  
  


Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  

--
View this message in context:
http://www.n

Re: Performance and High CPU utilization

2008-09-18 Thread Andrea Vettori
Don't now if this is current because I'm using an old struts2 release  
but this has helped a lot reducing my cpu & memory usage :



freemarker.template.Configuration fmc =  
(freemarker 
.template 
.Configuration 
)ServletActionContext 
.getServletContext 
().getAttribute(FreemarkerManager.CONFIG_SERVLET_CONTEXT_KEY);

if (fmc != null) {
 
((freemarker 
.ext.beans.BeansWrapper)fmc.getObjectWrapper()).setUseCache(true);

}




Il giorno 18/set/08, alle ore 21:11, sajanv007 ha scritto:



There is huge performance issue and CPU hogging with Struts2 tag ,  
this was
observed while rendering JSP. These are some performance results  
obtained


Strut 2 Tag - With all performance tuning applied as per Struts 2
documentation - Freemarker caching etc...
Load Runner Tool
40 users
900 hits per second
10 transaction per second

Results
CPU utilization 90%
Response 3.5 sec

Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
s:text,s:textfield,s:hidden,s:param)
40 users
900 hits per second
15 transaction per second

Results
CPU utilization 70%
Response 2.0 sec

Some where down the line Struts 2 tag are very cpu hungry , to  
people to

adopt to strut2 framework cpu utilization should be optimized .


Did anybody come across on how to over come this problem

--
View this message in context: 
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Ing. Andrea Vettori
Consulente per l'Information Technology


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configure result to go back to page I came from.... [SEC=UNCLASSIFIED]

2008-09-18 Thread Volker Karlmeier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Joe,

thats a good solution but only works partially for me.
The new Language is set correctly, but as no request is submitted, my 
textfields and textarea-fields are not updated

so that I cannot see the content for the language I have chosen.
Do you you a solution for that ?

Regards

~  Volker

Crombie, Joe schrieb:
| Hi Volker,
|
| I've used result type httpheader and response-status code 204 for a 
similar problem:

|
| 
| 
| 
| 
| 204
| 
| 
| 
| 200
| 
| 
|
| HTH,
|
| Joe
|
| Joe Crombie
|  
| p. 02 6272 5906

| e. [EMAIL PROTECTED]
|  
| Web Application Developer

| Business Strategy and Operations
| Bureau of Rural Sciences
| Canberra,  Australia
|  
|

|
|> -Original Message-
|> From: Volker Karlmeier [mailto:[EMAIL PROTECTED]
|> Sent: Friday, 19 September 2008 7:14 AM
|> To: Struts Users Mailing List
|> Subject: Re: Configure result to go back to page I came from
|>
| Hi,
|
| I think I have to explain my problem more clearly:
|
| I have a page that show some text-fields. These Text-Fields
| can be filled in different languages.
| To choose the according language, you can click on a button (e.g.
| english/french etc.) and a method "switchlanguage" is called,
| which sets a parameter to the language I want to enter.
| As I need this function on various pages, I want to implement
| it in a superclass of my action class.
| After clicking on a language-button, I need to set the
| language and go back to the form to enter the text.
| Therefore, I need a way to react on a result called
| "languageSwitched"
| which leads to the page I just came from.
| As I do not want to write it in every action but only once in
| struts.xml, I need a result that goes back to that page
| without having to specify each time, which page that was.
| Is that possible ?
|
| ~  Volker
|
|
| PaweB Wielgus schrieb:
| | Hi Volker,
| | where it should go when i will open my browser window
| (blank) and type
| | Your action url?
| |
| | Best greetings,
| | PaweB Wielgus.
| |
| | 2008/9/18 Volker Karlmeier <[EMAIL PROTECTED]>:
| | Hello Struts-Freaks,
| |
| | I have a quite easy question, I think:
| |
| | how can I configure an action in struts.xml, that does
| nothing than go
| | to the page I came from ?
| | Something like  or so ?
| |
| | Thanks in advance.
| |
| | ~  Volker
| |
| |
| |>
| |>
| -
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| |>
| |>
|


|>
|>

| --
| IMPORTANT - This message has been issued by The Department of 
Agriculture, Fisheries and Forestry (DAFF). The information transmitted 
is for the use of the intended recipient only and may contain sensitive 
and/or legally privileged material. It is your responsibility to check 
any attachments for viruses and defects before opening or sending them on.


| Any reproduction, publication, communication, re-transmission, 
disclosure, dissemination or other use of the information contained in 
this e-mail by persons or entities other than the intended recipient is 
prohibited. The taking of any action in reliance upon this information 
by persons or entities other than the intended recipient is prohibited. 
If you have received this e-mail in error please notify the sender and 
delete all copies of this transmission together with any attachments. If 
you have received this e-mail as part of a valid mailing list and no 
longer want to receive a message such as this one advise the sender by 
return e-mail accordingly. Only e-mail correspondence which includes 
this footer, has been authorised by DAFF


| --


| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]



- --
- ---

Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mülheim/Ruhr

Tel. :  (+49) 208-7785675
Mobil:  (+49) 176-21056587
Mail :  [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFI00oXaEMQXBIqssERAiA3AJ4v9x2DaamkusYEG3s/VeI4W2YtSQCdGliy
Ix9m9f+In1SB0leiKqU83ro=
=Qf1y
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]