Re: how to keep object from action to action

2007-10-08 Thread Zoran Avtarovski
Thanks Sami, I apologise. I know that there are a few different solutions around. We use a our own custom interceptor which works for us. My point was more that I think that action chaining is probably the feature of S2 I find most trying. I suspect that of the work would be in improving the

Re: [Struts 2] : Zero Configuraiton : some feedback

2007-10-08 Thread Ted Husted
These are all great comments, but don't be afraid to be specific. :) It's important to remember that the people working on this code are all full-time developers, working for different companies, just like you, and we work on Struts after-hours. We add features to help with the applications we

Re: how to keep object from action to action

2007-10-08 Thread Ted Husted
On 10/8/07, Zoran Avtarovski [EMAIL PROTECTED] wrote: My guess would be that it's being left to the authors of the various S2 books to deal with. There isn't any kind of master plan. We're all volunteers, and people contribute what they can, when they can, usually based on what we need to do

Re: actionPackages parameter provokes PermGen memory error

2007-10-08 Thread wild_oscar
Should this be reported as a possible bug? wild_oscar wrote: Dear all, I've been struggling with a Permgen error on my application's development: after a number of re-deployments, I get a permgen memory error in Tomcat 6 (described in more detail here

getModel() invoked twice ?

2007-10-08 Thread pilou
I am trying to use the ModelDriven interface. getModel on the Bean is invoked twice before th execute() invocation ant once after. It does not seem to be the right normal sequence ? I implements the defaultStack. could you help ? thanks more details : == version struts 2.09

Re: actionPackages parameter provokes PermGen memory error

2007-10-08 Thread Sami Dalouche
Hi, have you tried spring's IntrospectionCleanupListener ? http://www.springframework.org/docs/api/org/springframework/web/util/IntrospectorCleanupListener.html It looks like the problem you are experiencing is the one the listener claims to solve. Regards, Sami Dalouche On Mon, 2007-10-08 at

Re: Eclipse Europa 3 plugin for Struts 2.0.9

2007-10-08 Thread Dave Newton
None that I know of. I also don't think they (plugins) are as necessary for S2. d. --- [EMAIL PROTECTED] wrote: Does any one know plugin that is available for Eclipse Europa 3 plugin for Struts 2.0.9. All i am getting are plugins for struts 1. 5, 50, 500, 5000 - Store N number

Re: getModel() invoked twice ?

2007-10-08 Thread Dave Newton
The current XWork ModelDriven interceptor code does call getModel() twice; this was brought up during an unrelated conversation a couple of weeks ago. I don't know if anybody filed a JIRA against XWork for it or not. d. --- pilou [EMAIL PROTECTED] wrote: I am trying to use the ModelDriven

Re: Eclipse Europa 3 plugin for Struts 2.0.9

2007-10-08 Thread stanlick
The folks at MyEclipse said they won't provide S2 support until they see user demand! http://www.myeclipseide.com/ Scott On 10/8/07, Dave Newton [EMAIL PROTECTED] wrote: None that I know of. I also don't think they (plugins) are as necessary for S2. d. --- [EMAIL PROTECTED] wrote:

question on JFreeChart plugin ...

2007-10-08 Thread Giovanni Azua
hi all, I don't know how to implement the following use-case using the JFreeChart plugin and would appreciate some guidance: I have an Action that does some lengthy computation and generates some data that needs to be plotted in several graphs and displayed to the user in a JSP page. My

Re: getModel() invoked twice ?

2007-10-08 Thread Wes Wannemacher
I filed a JIRA a while back that included this and two other possible issues. http://jira.opensymphony.com/browse/XW-569 -W On 10/8/07, Dave Newton [EMAIL PROTECTED] wrote: The current XWork ModelDriven interceptor code does call getModel() twice; this was brought up during an unrelated

ModelDriven Resource Bundle not working ?

2007-10-08 Thread pilou
hi I noticed that the property bundles named with the Model Bean class name does not seem to work. Here is my example : the bean class and bundle and action class are in the same package, Bundles name = PersonneFilterBean.properties Java sources for the bean = == package

RE: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-08 Thread ROWLAND, CLAY, ATTSI
hi Rajagopal. i took your advice and deployed my app on tomcat instead of jboss. this was a very helpful exercise because i believe i was relying too heavily on eclipse and hand-coding/compiling/organizing my app was a good learning experience. however, i have come full circle back to my

Re: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-08 Thread Martin Gainty
can you show us stacktrace of the exception (located in $CATALINA_HOME/logs) and display the configuration for your servlet from WEB-INF/web.xml Thanks M-- - Original Message - From: ROWLAND, CLAY, ATTSI [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday,

RE: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-08 Thread Dave Newton
--- ROWLAND, CLAY, ATTSI wrote: param-value/ticketapp/WEB-INF/struts-config.xml/param-value This confuses me; is your application context ticketapp? If so I wouldn't think you'd need to preface your /WEB-INF/... with it. As was pointed out the taglib elements in web.xml have been unnecessary

Messages resources

2007-10-08 Thread Pablo Vázquez Blázquez
Hello! Does anybody know how can I access to my Messages[_locale].properties from a class that is not an action? (It extends TagSupport). Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-08 Thread ROWLAND, CLAY, ATTSI
thanks for taking a look.. here is the stacktrace starting with the deploy. also, this may help in diagnosing. i have the following struts .jar files in my web-inf/lib directory: standard-1.0.2.jar struts-core-1.3.8.jar struts-el-1.3.8.jar struts-extras-1.3.8.jar struts-el-1.3.8.jar

RE: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-08 Thread ROWLAND, CLAY, ATTSI
hi dave. you're right. i was experimenting with the web.xml. here is how i think it should look after removing the taglibs: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread chengas123
Ahh! That was my problem. I think it would be worth mentioning this in the documentation, especially since it is the reverse of 2.0.x. It's not real clear in the state example which is the key and which is the value. I tried to edit the docs myself, but the wiki told me I did not have

session expired

2007-10-08 Thread meissa . sakho
I'd like to write an interceptor that will redirect to a page when the session is expired. I know that I can acces to the session in the interceptor like that. public String intercept(ActionInvocation invocation) throws Exception { Map session =

RE: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-08 Thread ROWLAND, CLAY, ATTSI
so i think i just solved my problem. i was able to deploy a sample struts app from the book i am reading. i noticed that it used struts_1_0_2.jar instead of the many struts .jar files i was using. so i deleted them from my web-inf/lib folder and replace them with the struts_1_0_2 jar. my

Re: session expired

2007-10-08 Thread Wes Wannemacher
You can grab the request just like they do in the ServletConfigInterceptor - final Object action = invocation.getAction(); final ActionContext context = invocation.getInvocationContext(); HttpServletRequest request = (HttpServletRequest) context.get(HTTP_REQUEST); On 10/8/07, [EMAIL

Struts 2 Freemarker Templates

2007-10-08 Thread Jason Deffenbaugh
I'm trying to make a custom template for the checkboxlist struts tag to only write out the html for the checkboxes in the list between two parameter values I send to the template. I want to pass parameters from the jsp file into the freemarker template but I'm not sure how to do it. So, I'm

Re: Struts 2 Freemarker Templates

2007-10-08 Thread Sami Dalouche
Hi, you should be able to access your start and stop variables using : ${parameters.start} and ${parameters.stop} expressions in your FTL template. Regards, Sami Dalouche Le lundi 08 octobre 2007 à 12:59 -0400, Jason Deffenbaugh a écrit : I'm trying to make a custom template for the

Re: Where is struts-*.tld

2007-10-08 Thread mjparme
Normally, I would jump at the chance to learn something new but I am soon leaving my current team for a different team (same company) so want to get my current project done for my current team before I leave, so will stick with Struts 1 because of a time crunch. Plus the other developers on the

Re: Struts debug mode

2007-10-08 Thread Viplav Kallepu
Thanks for the help I am able to debug action classes. Dave, If you find how to debug jsp's please post it in the forum as it would be helpful to lot of guys like me. Regards Vipalv Kallepu On 10/5/07, Dave Newton [EMAIL PROTECTED] wrote: You should be able to debug your JSPs, too, although I

SmartURLs and Validation Annotations...

2007-10-08 Thread Eric D Nielsen
I've been trying to figure out how to use Validation Annotations with the SmartURLs plugin. I'm not sure which half I'm not understanding properly, but I can't get the validations to fire at all. I've seen several similiar posts in the archives and have tried tweaking things in a variety of

Re: SmartURLs and Validation Annotations...

2007-10-08 Thread Dave Newton
Is validation firing at *all*? I had been under the impression that classes needed to be annotated with the Validation annotation. http://struts.apache.org/2.x/docs/validation-annotation.html --- Eric D Nielsen [EMAIL PROTECTED] wrote: I've been trying to figure out how to use Validation

Re: SmartURLs and Validation Annotations...

2007-10-08 Thread Ted Husted
On 10/8/07, Dave Newton [EMAIL PROTECTED] wrote: Is validation firing at *all*? I had been under the impression that classes needed to be annotated with the Validation annotation. http://struts.apache.org/2.x/docs/validation-annotation.html True. First, @Validations() tags the class, and

Re: s2: Netbeans 5, 6 or Eclipse?

2007-10-08 Thread Rohan Ranade
yitzle wrote: I think NetBeans eats a lot of RAM, so if you don't have much you may want to avoid it. Better yet, try both out for a week or so, and see which suits *you* the best! - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread Ted Husted
To edit a page in the main documentation wiki, we need a CLA on file first. * http://struts.apache.org/2.x/docs/editing-the-documentation.html But, if you open a Confluence account, you should still be able to add a comment. -Ted. On 10/8/07, chengas123 [EMAIL PROTECTED] wrote: Ahh! That

Re: Struts 2 Freemarker Templates

2007-10-08 Thread Jason Deffenbaugh
Thanks that helped/worked. I got it working using #if (itemCount == parameters.stop)/#if to access the custom parameters. -Jason On Mon, 2007-10-08 at 19:47 +0200, Sami Dalouche wrote: Hi, you should be able to access your start and stop variables using : ${parameters.start} and

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread chengas123
There's not a link anywhere on the page to add a comment: http://struts.apache.org/2.x/docs/autocompleter.html Is there some other way I need to access that functionality? Thanks, Ben Ted Husted wrote: But, if you open a Confluence account, you should still be able to add a comment.

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread Ted Husted
It's a bit kludgy. If you select edit page, and you are not logged in, it will prompt for your credentials. Once past that, you should end up on the wiki side, for example at * http://cwiki.apache.org/confluence/display/WW/Home At this point, there should be a Add Comment link at the bottom of

Re: Struts debug mode

2007-10-08 Thread Viplav Kallepu
hi Joao, Finally I understood the requirement of sourcefiles for the third party libraries. I added jadeclipse to my project. It is working fine, by that i mean if I click *.class files javasource code is opening. But can you please tell me how to add this source to the libraries. becoz even

Multi-thread issue on redeploy of application

2007-10-08 Thread Cool Coder
Hi Group, I have issue wrt no of threads on redeploy. The web app creates number of threads, and on each deployement, web app should close threads and create new threads but it instead of closing/reusing old threads, it creates new threads which makes web app crashes. I use struts and in

Re: ModelDriven Resource Bundle not working ?

2007-10-08 Thread Zarar Siddiqi
I thought you could only specify properties files for action beans, not model ones. So in your case try specifying PersonneFilterAction.properties Zarar On 10/8/07, pilou [EMAIL PROTECTED] wrote: hi I noticed that the property bundles named with the Model Bean class name does not seem to

Re: ModelDriven Resource Bundle not working ?

2007-10-08 Thread Dave Newton
Hmm, in the docs [1] it says that it will search for ModelDriven's model, although I haven't tried it myself. d. [1] http://struts.apache.org/2.x/docs/localization.html --- Zarar Siddiqi [EMAIL PROTECTED] wrote: I thought you could only specify properties files for action beans, not model

Re: SmartURLs and Validation Annotations...

2007-10-08 Thread Eric D Nielsen
On 10/8/07, Ted Husted wrote: On 10/8/07, Dave Newton [EMAIL PROTECTED] wrote: Is validation firing at *all*? I had been under the impression that classes needed to be annotated with the Validation annotation. http://struts.apache.org/2.x/docs/validation-annotation.html True. First,

[s2] select tag not setting parameter

2007-10-08 Thread Kevin Wade
I'm having difficulty with a struts 2 form (jsp) that includes the use of a select tag. In short, I can't seem to get the select tag to set the parameter when submitted. Here's the scenario. My form (for searching by last name, first name, and county fields) looks like this:

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread chengas123
Ahh. I'm afraid I never would have figured that out without explanation since I get permission denied when hitting the edit link. -Ben Ted Husted wrote: It's a bit kludgy. If you select edit page, and you are not logged in, it will prompt for your credentials. Once past that, you

Re: ModelDriven Resource Bundle not working ?

2007-10-08 Thread Ian Roughley
Model properties files are used for supplying field description and validation messages for a model object. I know it works ;-) but I don't know how you are using it from the code supplied. /Ian Dave Newton wrote: Hmm, in the docs [1] it says that it will search for ModelDriven's model,

[OT] Anyone familiar with BEA weblogic 8.1 that might be able to help me understand why every request is giving me a new Session (fine on Tomcat4?

2007-10-08 Thread Rick Reumann
Yes, I know the wrong list, but been googling with not much luck - didn't feel like spending the time yet to join some bea list until I asked some of you geniuses first: Ultimately I have to run this app on an old server bea weblogic 8.1 on java4, so for prototyping I've started out using Tomcat4

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-08 Thread chengas123
The speed issues are much better in 2.1. However, now when I load the page, every autocompleter on that page is issuing a request. Is this a bug or have I configured something incorrectly? I believe the default behavior for this should be to issue a request only after three characters have

building struts with maven error Java Heap Space

2007-10-08 Thread Pavel Sapozhnikov
Hi I am trying to mvn the checked out Struts2. First I have successfully mvn'ed xwork 2.0.4 and that went fine now I am trying to mvn Struts2 and when it gets to Test I get the following: Tests run: 9, Failures: 2, Errors: 0, Skipped: 3, Time elapsed: 13.472 sec F AILURE! Running

Re: building struts with maven error Java Heap Space

2007-10-08 Thread Tom Schneider
Try: set MAVEN_OPT=-Xmx512m before you run the maven build. The problem is that maven doesn't have enough heap space to run the tests. The environment variable above should increate the maximum java heap space for maven. Tom Pavel Sapozhnikov wrote: Hi I am trying to mvn the checked out

S2: Paging components

2007-10-08 Thread Joshua Jackson
Dear all, How do I implement paging for limiting in displaying list of data? Is there already a ready set component for this is Struts2? How do you guys implement it in S2 if this paging component is not available in S2? Thanks in advance, joshua -- It's not just about coding, it's a matter of

Re: building struts with maven error Java Heap Space

2007-10-08 Thread Pavel Sapozhnikov
Hey Tom thanks I actually tried that but I think it gave me no class found error...I wasn't sure and at my work on XP machine I dont think I had to set anything like this and it worked fine. Well also I have laptop at home which has XP and I tried doing the same thing and it failed on this error

Re: S2: Paging components

2007-10-08 Thread Tom Schneider
Take a look at TableTags: http://cwiki.apache.org/S2PLUGINS/table-tags.html It includes a UI tag that displays a basic pager. (It also does sorting) This is a struts 2 port of what we use for paging and sorting in webwork. Tom Joshua Jackson-3 wrote: Dear all, How do I implement

Re: building struts with maven error Java Heap Space

2007-10-08 Thread Tom Schneider
Otherwise, if all else fails, you can just skip the junit tests: mvn -Dmaven.test.skip=true install that should at least allow you to build the code if you're having issues with the unit tests. Pavel Sapozhnikov wrote: Hey Tom thanks I actually tried that but I think it gave me no class