Struts 2.1.2 - Xwork 2.1.1 ParametersInterceptor ERROR

2009-01-06 Thread nodje
Hi, i'm getting this error: ERROR ParametersInterceptor.error:24 | ParametersInterceptor - [setParameters]: Unexpected Exception caught setting '{5543}_traineeNights' on 'class com.company.client.project.integrationstage.action.IntegrationStageOfAction: Error setting expression '{5543} _traineeN

Re: Getting an URL for an Action

2009-01-06 Thread Chris Pratt
Is there a right way to do it? (*Chris*) On Tue, Jan 6, 2009 at 5:24 PM, Musachy Barroso wrote: > I wouldn't advise you to use UrlHelper, given that Struts 2 doesn't > have an API, that class can change without warning (it does from time > to time) > > musachy > > On Tue, Jan 6, 2009 at 7:56 P

RE: DatetimePicker Issue... Struts 2.1.2

2009-01-06 Thread Anshuman Nanda
No I am not using Tiles Regards Anshuman Nanda EXW Technology Pvt. Ltd. 76A - Udyog Vihar Phase IV Office: (Direct) 0124-4722302 WebSite : http://www.eximware.com -Original Message- From: Richa Pandharikar [mailto:richa.pandhari...@tdktech.com] Sent: Tuesday, January 06, 2009 11:41

Re: exception unregistering portlet @undeploying the webapp, configuration manager -> null

2009-01-06 Thread grass
I have the same problem using Sun Java System Application Server 9.1_02 Any suggestion to solve this problem? Torsten Krah wrote: > > Am Mittwoch, 13. August 2008 09:47:07 schrieb Nils-Helge Garli Hegvik: >> Which server are you running? > > This does happen on JBoss 4.0.5 with Tomcat 5.5.20

Re: how to get config info from portlet.xml in struts2 action

2009-01-06 Thread Daoyue Ming
sorry, look at it wrongly. The is not within So it roll back to my first question, why I can't get config info from portlet.xml, and which place shall I put it in portlet.xml if it is not On Wed, Jan 7, 2009 at 11:02 AM, Daoyue Ming wrote: > found it is quite stupid to put inside the ini-para

Re: how to get config info from portlet.xml in struts2 action

2009-01-06 Thread Daoyue Ming
found it is quite stupid to put inside the ini-param in Jsr168Dispatcher portlet-class tag. let's say if I need some config for the portlet, where shall I put it in? Is portlet-preference tag a better place to put in? On Wed, Jan 7, 2009 at 9:56 AM, Daoyue Ming wrote: > Here is my code: > [port

Re: how to get config info from portlet.xml in struts2 action

2009-01-06 Thread Daoyue Ming
Here is my code: [portlet.xml] sample sample org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher viewNamespace /view defaultViewAction linkCategories categoryId 2 text/html

Re: Getting an URL for an Action

2009-01-06 Thread Musachy Barroso
I wouldn't advise you to use UrlHelper, given that Struts 2 doesn't have an API, that class can change without warning (it does from time to time) musachy On Tue, Jan 6, 2009 at 7:56 PM, Chris Pratt wrote: > I'm trying to turn an action name into an URL from within another action. > I've tried:

Getting an URL for an Action

2009-01-06 Thread Chris Pratt
I'm trying to turn an action name into an URL from within another action. I've tried: UrlHelper.buildUrl("action-name",request,response,null) Which seems to just return "action-name". And I've tried: UrlHelper.buildUrl("/action-name",request,response,null) Which returns "/context/action-name",

Re: Design Question

2009-01-06 Thread Wes Wannemacher
Perhaps take a look at the OSGi plugin as well... It's in beta, but provides functionality such as deploying bundles of actions during runtime. http://cwiki.apache.org/S2PLUGINS/osgi-plugin.html -Wes On Tue, 2009-01-06 at 16:24 -0800, Dan Daly wrote: > Hello, > > I am working on an applicatio

Design Question

2009-01-06 Thread Dan Daly
Hello, I am working on an application that needs different sets of functionality based on where it is installed.  The Struts 2 plugin mechanism looks like a perfect solution as it would all us to write sets of plugins that we could install as needed. The upper bound on the number of plug-ins

Re: Performance issue

2009-01-06 Thread stanlick
This test sounds about as straightforward as parallel parking a freight train on a one lane road.

RE: Performance issue

2009-01-06 Thread Andy
I would be interested in seeing new benchmark results if anyone happens to generate some. Might want to avoid database-based tests due to caching. > Date: Tue, 6 Jan 2009 16:19:36 -0500> From: pierre.thibaud...@gmail.com> To: > user@struts.apache.org> Subject: Re: Performance issue> > Yes the

Re: Error Throwing With Struts 2 Tags

2009-01-06 Thread Dave Newton
Timothy Orme wrote: But no value was displayed. This is because I should have written: As that was the bean property in my action. It's a simple fix, but, this took me a bit to find it. What I'm wondering is if theres a way to have Struts 2 tags throw errors [...] This ha

Re: Performance issue

2009-01-06 Thread Pierre Thibaudeau
Yes the model is *exactly* the same in the two cases. In fact, both S1 and S2 exist concurrently in the same Tomcat application. Each test is run using JMeter, with 10 users who randomly try to access one of 42 different pages involving 10 different types of results (that is, roughly speaking, 10

Error Throwing With Struts 2 Tags

2009-01-06 Thread Timothy Orme
Hello All, Maybe a silly question, but I've recently noticed that using struts 2 tags can be very problematic when it comes to debugging. For instance, I recently wrote something like: But no value was displayed. This is because I should have written: As t

RE: Struts2 with Annotation and problem (always returning the default action)

2009-01-06 Thread vish212
Hi Romain, Possible workaround can be to put both the action, indexAction and your myAction in different java packages. by default, struts2 annotation processor keeps all the action within one java package to unique struts action package. one 2 one mapping. and all the @parentPackage are used to

Re: how to get config info from portlet.xml in struts2 action

2009-01-06 Thread Nils-Helge Garli Hegvik
Can you show us some code and configurations? Nils-H On Tue, Jan 6, 2009 at 11:20 AM, Daoyue Ming wrote: > I have a problem to get the configuration inside portlet.xml in > action, what I do is inside the portlet.xml, I add some config like > the way struts2 did for defaultViewAction. Then in m

Re : Performance issue

2009-01-06 Thread François Rouxel
Is is the same model behind the MVC? fr/ - Message d'origine De : Pierre Thibaudeau À : Struts Users Mailing List Envoyé le : Mardi, 6 Janvier 2009, 13h09mn 39s Objet : Re: Performance issue

RE: file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
That's what I was wondering. I couldn't make the connection between the value attribute and the actual HTML. Thank you for the explanation. Derrick -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Tuesday, January 06, 2009 1:06 PM To: Struts Users Mailing List

Re: Performance issue

2009-01-06 Thread Musachy Barroso
60 times slower? I am expecting S2 to be slower that S1 but 60 times sounds weird to me. The other thing that sounds weird is the huge difference between 30 and 60 times. musachy On Tue, Jan 6, 2009 at 1:09 PM, Pierre Thibaudeau wrote: > From the comparison I made on my own system, S2 is overall

Re: DatetimePicker Issue... Struts 2.1.2

2009-01-06 Thread Oscar Alvarez
2009/1/6 Richa Pandharikar > Are you using Tiles? > > For me with Tiles it never got rendered properly, hence I could not test > the submit functionality. I switched to YUI calendar control. > > > -Original Message- > From: Anshuman Nanda [mailto:ana...@eximware.com] > Sent: Tuesday, Janu

RE: DatetimePicker Issue... Struts 2.1.2

2009-01-06 Thread Richa Pandharikar
Are you using Tiles? For me with Tiles it never got rendered properly, hence I could not test the submit functionality. I switched to YUI calendar control. -Original Message- From: Anshuman Nanda [mailto:ana...@eximware.com] Sent: Tuesday, January 06, 2009 10:50 AM To: Struts Users Mai

Re: Performance issue

2009-01-06 Thread Pierre Thibaudeau
>From the comparison I made on my own system, S2 is overall about 30 to 60 times slower than S1. This is based on comparing a number of pages (repeatedly, testing with JMeter, etc.); the pages being compared are, admittedly not 100% identical, but abstracting from the specific differences, the pe

Re: file upload file location lost on validation failure

2009-01-06 Thread Dave Newton
Derrick Koes wrote: There is a value attribute on the file tag from which you can preset the value according to docs. http://struts.apache.org/2.0.14/docs/file.html It seems like the value could be "updated" from the user input, if the input data is available. File input values cannot be prel

RE: file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
There is a value attribute on the file tag from which you can preset the value according to docs. http://struts.apache.org/2.0.14/docs/file.html It seems like the value could be "updated" from the user input, if the input data is available. Derrick -Original Message- From: Dave Newton [

Re: file upload file location lost on validation failure

2009-01-06 Thread Dave Newton
Derrick Koes wrote: Understood. However, if the value used to populate the field is on the value stack, the input will be populated with the value on validation failure, except in this case it seems as the data necessary to repopulate is not available. I think we're talking past each other--fi

RE: file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
Understood. However, if the value used to populate the field is on the value stack, the input will be populated with the value on validation failure, except in this case it seems as the data necessary to repopulate is not available. Derrick -Original Message- From: Dave Newton [mailto:n

Re: file upload file location lost on validation failure

2009-01-06 Thread Dave Newton
Derrick Koes wrote: Using the demo app (struts2-showcase-2.0.14/fileupload) and entering an empty file, for example, will correctly cause validation to fail. However, the file location disappears from the input. Is this as designed? Do you mean in the file input field? If so, that's normal bro

DatetimePicker Issue... Struts 2.1.2

2009-01-06 Thread Anshuman Nanda
Greetings Everyone I have facing a very unusual issue with Struts Datetimepicker. I have developed a sample application to check the functionality, where it works perfectly fine in all the browsers including IE, FF3, Opera, Safari When I try to use the same thing in my applicat

file upload file location lost on validation failure

2009-01-06 Thread Derrick Koes
Using the demo app (struts2-showcase-2.0.14/fileupload) and entering an empty file, for example, will correctly cause validation to fail. However, the file location disappears from the input. Is this as designed? Thanks, Derrick

RE: configuration information from hibernate.cfg.xml

2009-01-06 Thread Martin Gainty
a sample hibernate.cfg.xml I acquired about a year ago http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";> org.hsqldb.jdbcDriver jdbc:mysql://localhost:3306/jboss sa password 1 org.hibern

Re: configuration information from hibernate.cfg.xml

2009-01-06 Thread Dave Newton
elyes sallem wrote: any one know how get back hibernate configuration information from hibernate.cfg.xml, like the bd server, schema ... You might have better luck asking in a Hibernate-related list (this is actually a Struts list). Dave -

Re: unable to upload a txt file using fileupload ,

2009-01-06 Thread Dave Newton
srinivasa_v . wrote: Iam unable to upload a txt file using fileupload , image/jpeg,image/gif,image/pjpeg,image/bmp,text/html,text/plain,text/css,text/txt That's not much information to go on. Dave - To unsubscribe, e-mail

configuration information from hibernate.cfg.xml

2009-01-06 Thread elyes sallem
Hello, it is an out uncommon question any one know how get back hibernate configuration information from hibernate.cfg.xml, like the bd server, schema ... Regards Elyes.

unable to upload a txt file using fileupload ,

2009-01-06 Thread srinivasa_v .
Hi All, Iam unable to upload a txt file using fileupload , image/jpeg,image/gif,image/pjpeg,image/bmp,text/html,text/plain,text/css,text/txt regards

how to get config info from portlet.xml in struts2 action

2009-01-06 Thread Daoyue Ming
I have a problem to get the configuration inside portlet.xml in action, what I do is inside the portlet.xml, I add some config like the way struts2 did for defaultViewAction. Then in my struts2 action, I implements PortletContextAware, and try to get the config by using portletContext.getInitParam