Re: problems nesting TileResults....

2008-05-12 Thread Antonio Petrelli
2008/5/13 Darren James <[EMAIL PROTECTED]>: > i downloaded the 2.0.5 version of tiles, and i see the same issue > seems to be a pretty severe limitation of tiles It's not a limitation, it's a bug :-) https://issues.apache.org/struts/browse/TILES-232 Try using the SVN version of Tiles (br

Re: problems nesting TileResults....

2008-05-12 Thread Darren James
i downloaded the 2.0.5 version of tiles, and i see the same issue seems to be a pretty severe limitation of tiles - darren. Antonio Petrelli wrote: 2008/5/12 Darren James <[EMAIL PROTECTED]>: struts 2.0.11, and the tiles bundled with that version, which is tiles 2.0.4 Please

HashMap< String, ArrayList >: Unable to populate the Array List from JSP

2008-05-12 Thread ravi_eze
Team, any help??? now i configured the validation, workflow interceptors in my xml file. I see an error for this field variable. I tried configuring the converter... but as always its also failing... < actionclass>-conversion.properties: mapOfList=com.company.CustomMapConverter Element_mapOfL

Setting HTML form parameters to Custom classes (not action support)

2008-05-12 Thread ravi_eze
hi, we have multiple classes (C1,C2,C3) each as java beans. now i have a form as: is it possible for me to populate the individual classes? The problem is that we need to build a framework in struts2 and it requires the above to happen. After googling a lot... i found that that the current

Re: hi, what is the difference between specify time out and do not specify the timeout value in the web.xml file

2008-05-12 Thread Laurie Harper
shrimpywu wrote: hi, what is the difference between specify time out and do not specify the timeout value in the web.xml file 30 According to the Servlet specification, if you don't specify this session timeout will be set to the container's default (which will be server de

Ajax [loads once when refreshing the page]

2008-05-12 Thread Simon Sew
Hi, I have a problem where the ajax div (see source code) will initialize once when I load the page.What I wanted to do is to make it run only when i publish the topic. Am I missing something here. I'm using v2.0.11. Thanks. Regards, Simon

hi, what is the difference between specify time out and do not specify the timeout value in the web.xml file

2008-05-12 Thread shrimpywu
hi, what is the difference between specify time out and do not specify the timeout value in the web.xml file 30 before, i do not specify this in the web.xml file when the session has been timeout, i sometime got some exception but after i did that..no exception any more..

Unit Test Validation Logic in Struts2

2008-05-12 Thread Pranav
Hi, I am having trouble with unit testing my validation logic in Struts2. here's the code. 1) In UserLookupAction-validation.xml I have You must enter a value for ${getText("memberId.label")}. 2) In UserLookupActionTest.java I have the following method public voi

Re: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, for myself, I solved the problem by a little routine in my (base) action class. I don't know if this is the recommended way to to it, but it works for me. ~@SuppressWarnings("unchecked") ~protected String getActionName() { ~Enu

RE: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Allen, Daniel
Oh, ok. I was just in the middle of poking around the debug info to see why that wasn't working. Thanks, ~DVA -Original Message- From: Allen, Daniel Sent: Monday, May 12, 2008 3:11 PM To: Struts Users Mailing List Subject: RE: [s2] Getting the current Action name in a JSP? Ok, thanks

Re: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Musachy Barroso
My bad on that one, "#struts.actionMapping" won't return anything (no #struts object, 'struts.actionMapping' is an string) You need to use: #context['struts.actionMapping'] musachy //these values are for internal struts use, so use at your own risk :) On Mon, May 12, 2008 at 3:10 PM, Allen, Da

global-exceptions-mappings help

2008-05-12 Thread Dan Crosta
I think I've followed the instructions at [1] closely, and ended up with this in my struts.xml: I have no s defined in struts.xml because I'm using annotations for action configuration. Is this setup incompatible with globa

RE: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Allen, Daniel
Ok, thanks for the clarification. What is the Java type of #struts? I'd like to take a look at the docs to see what else I can get out of that. ~DVA -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, May 12, 2008 3:07 PM To: Struts Users Mailing List Subjec

Re: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Musachy Barroso
%{#struts.actionMapping} ->Action Mapping %{#action} -> Last executed action musachy On Mon, May 12, 2008 at 3:05 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- "Allen, Daniel" <[EMAIL PROTECTED]> wrote: > > So that's what #action gets? That's really useful, thanks! > > Wait, what? I'm not su

RE: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Dave Newton
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote: > So that's what #action gets? That's really useful, thanks! Wait, what? I'm not sure that #action is mapped to anything, and if it was, it'd be the action itself, not its configuration. Dave > -Original Message- > From: Musachy Barroso [mai

RE: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Allen, Daniel
So that's what #action gets? That's really useful, thanks! ~DVA -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, May 12, 2008 1:52 PM To: Struts Users Mailing List Subject: Re: [s2] Getting the current Action name in a JSP? Under "struts.actionMapping" th

Annotation Validations: Per Method?

2008-05-12 Thread Asleson, Ryan
Hello, I have an Action class that backs a page. The page has two submit buttons it: one that should call methodOne on the Action, and another that should call methodTwo. Each method has a Validation annotation that validates different fields, that look something like this: @Validatio

Re: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Musachy Barroso
Under "struts.actionMapping" there will be an object of type "org.apache.struts2.dispatcher.mapper.ActionMapping" with fields: extension, name, namespace, params and method. Another tip, if you have the "debug" interceptor applied to your action you can add debug=browser to the url and you will be

RE: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Allen, Daniel
Thanks for the tip, but to clarify, what I want to know is whether that action reference has an easy, built-in way to get its name and namespace, as configured in struts.xml. For example, I have in struts.xml sample.jsp Can I put into sample.jsp a reference to something built-in like ? O

Re: @Validation annotation inheritance?

2008-05-12 Thread Musachy Barroso
Actually, Struts 2 checks the whole class hierarchy when an action is to be validated, so it will find the annotation on the parent class. musachy 2008/5/12 Musachy Barroso <[EMAIL PROTECTED]>: > That's the way we roll in Struts 2, it works even when it is not > supposed to :). Do you have any x

Re: @Validation annotation inheritance?

2008-05-12 Thread Musachy Barroso
That's the way we roll in Struts 2, it works even when it is not supposed to :). Do you have any xml validation set up as well? musachy On Mon, May 12, 2008 at 12:00 PM, Anna Skawińska <[EMAIL PROTECTED]> wrote: > Hi all, > > I'll start my posting here with a fairly basic Java issue - hope I won

Re: [s2] Getting the current Action name in a JSP?

2008-05-12 Thread Musachy Barroso
"#action" will give you a reference to the last executed action. musachy On Mon, May 12, 2008 at 12:10 PM, Allen, Daniel <[EMAIL PROTECTED]> wrote: > Hi, all. > > I'm using Sitemesh decorators on my Struts2 project to create a generic > header menu. However, I'd like to use a CSS class to highl

Re: [struts 2] Two forms for one action

2008-05-12 Thread Milan Milanovic
Hi, >I'm not a Struts 1 guy, so this advice might not be useful to you (because >you didn't say whether this was a Struts 1 or 2 situation). But in my Struts >2 app I have plenty of places where I have multiple buttons each >triggering different action methods on the same action class. I'm actual

Re: [Struts 2] Combo box question

2008-05-12 Thread Milan Milanovic
Hi, >It can be List. Use the listKey/listValue attributes of s:select >to control which properties of Fruit are used in populating the select >options. O.K. Thanks. One more question, is there possibility to show in a combo box two values, for example I want to show id and name of the every frui

Re: [struts 2] Two forms for one action

2008-05-12 Thread Jim Kiley
Milan, I'm not a Struts 1 guy, so this advice might not be useful to you (because you didn't say whether this was a Struts 1 or 2 situation). But in my Struts 2 app I have plenty of places where I have multiple buttons each triggering different action methods on the same action class. jk On Mo

Re: [Struts 2] Combo box question

2008-05-12 Thread Laurie Harper
Milan Milanovic wrote: Hi, I have a simple action class, for example like this: public class comboboxTag extends ActionSupport{ private List fruits; private FruitService service; public String execute()throws Exception{ fruits = service.getFruits(); return SUCCESS; } } fruits

Re: [struts 2] Two forms for one action

2008-05-12 Thread Milan Milanovic
Or maybe I should define two submit buttons for the same form and action class ? -- Regards, Milan - Original Message From: Milan Milanovic <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, May 12, 2008 5:57:50 PM Subject: [struts 2] Two forms for one action Hi, I need to

[s2] Getting the current Action name in a JSP?

2008-05-12 Thread Allen, Daniel
Hi, all. I'm using Sitemesh decorators on my Struts2 project to create a generic header menu. However, I'd like to use a CSS class to highlight the menu item for where the user currently is. Is there a good way to get the current action name and namespace just with JSP code? I know I can get it us

@Validation annotation inheritance?

2008-05-12 Thread Anna Skawińska
Hi all, I'll start my posting here with a fairly basic Java issue - hope I won't get banned ;) I've just realized that I'm using the @Validation annotation on a base class for my validated actions. As far as I know, Java5 annotations don't get inherited unless the annotation type has the @In

[struts 2] Two forms for one action

2008-05-12 Thread Milan Milanovic
Hi, I need to have classic master/detail jsp page, so I need actually two forms in a jsp page to works with one action class, one main form that works with main elements of my object (e.g. User name, surname,...) for header and another one which works with some list that belongs to my main obje

Re: problem

2008-05-12 Thread Arpan Debroy
Is there anybody can tell me where it's wrong in my code.. Anybody knows how to show the result list, coming from database operation, in the drop down box of JSP directly. Any example will be better. On Fri, May 9, 2008 at 6:02 PM, Arpan Debroy <[EMAIL PROTECTED]> wrote: > Hi Laurie, > > My JPA q

RE: Maven struts2-archetype-starter error

2008-05-12 Thread Allen, Daniel
Add a "-e" (or it might be a capital "-E") to the command, and Maven will print out the stack trace and a little more information about the problem. That might give you something to work with. -Original Message- From: maestro [mailto:[EMAIL PROTECTED] Sent: Saturday, May 10, 2008 8:42 PM

Re: [Struts 2] Combo box question

2008-05-12 Thread Milan Milanovic
One more thing, I'm creating my action classes by using Spring 2, in this way: -- Thx, Milan Milanovic - Original Message From: Milan Milanovic <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, May 12, 2008 4:34:09 PM Subject: [Struts 2] Combo box question Hi, I have a s

[Struts 2] Combo box question

2008-05-12 Thread Milan Milanovic
Hi, I have a simple action class, for example like this: public class comboboxTag extends ActionSupport{      private List fruits;     private FruitService service; public String execute()throws Exception{ fruits = service.getFruits(); return SUCCESS;   } } fruits field should be connected

Repopulating Select Lists after Validation Error

2008-05-12 Thread Asleson, Ryan
Hello, We're transitioning from a Struts 1.x and Tiles development environment to Struts 2 and Sitemesh, and I need some help getting around some of the differences. Here's what I'm planning so far. I want to have an abstract BaseAction that extends ActionSupport. Since we are no longer usi

RE: WARNING: Parameters: Invalid chunk ignored

2008-05-12 Thread Ram Prasad
Thanks Jeromy Evans. It worked well. -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Monday, May 12, 2008 6:11 PM To: Struts Users Mailing List Subject: Re: WARNING: Parameters: Invalid chunk ignored Ram Prasad wrote: > Hi All, > > > > I am using struts 2.0.11.1

Re: WARNING: Parameters: Invalid chunk ignored

2008-05-12 Thread Jeromy Evans
Ram Prasad wrote: Hi All, I am using struts 2.0.11.1 form with "Ajax" theme, getting error "Parameters: Invalid chunk ignored" WARNING message when submitted the form and the form fields have not been populated. I have configured the targets as the form parent DIV. May 8, 2008 5:50:30 P

Re: Struts 3 will be there?

2008-05-12 Thread Laurie Harper
Frans Thamura wrote: hi there JSFgoes to 2.0 will Struts goes to 2.0? JSF and Struts are unrelated, so a bump in version for JSF doesn't imply any change in Struts. There are no particular plans for a Struts 3 AFAIK. As usual, the best thing to do if you're interested in the future plannin

Re: validation problem

2008-05-12 Thread Laurie Harper
Anet wrote: Hi everybody; I have some tables on my page. each of them contains some of properties. for the first time, tables are hidden and will be displayed by this javascript code: function toggle(id){ var id = id; var table = document.getElementById(id); if(table.style.display=="none"

Re: How to pre-select a select list?

2008-05-12 Thread Laurie Harper
What do you mean by 'I uuse struts 2 package...'? The Struts1 tags don't work in Struts2 directly, so you may need to explain your setup in more detail to resolve specific issues. That said, to answer the original question: have you tried using the same technique you did with the html:text tag

Re: redirect after logging in

2008-05-12 Thread Laurie Harper
Acegi / Spring Security can certainly get this done, but may be overkill if the authentication and authorization requirements are simple. Container Managed Security is probably the quickest and easiest way to get the described behaviour, but that also doesn't always fit. For a home-brewed custo

WARNING: Parameters: Invalid chunk ignored

2008-05-12 Thread Ram Prasad
Hi All, I am using struts 2.0.11.1 form with "Ajax" theme, getting error "Parameters: Invalid chunk ignored" WARNING message when submitted the form and the form fields have not been populated. I have configured the targets as the form parent DIV. May 8, 2008 5:50:30 PM org.apache.tomcat.ut

Re: Maven struts2-archetype-starter error

2008-05-12 Thread chenxy
i ran the command on WinXP_sp2, and it came to "BUILD SUCCESSFUL", with some errs and warnings. Maven version: 2.0.9 Java version: 1.6.0_02 -- E:\struts2>mvn archetype:create -DgroupId=tutorial -DartifactId=tutorial -DarchetypeGroupId=or

Re: Struts2 cancel button with ajax theme does not execute method (bug?)

2008-05-12 Thread Jeromy Evans
Yayo wrote: I don't have scripts in my results but that don't changes the fact that the action configured in the cancel button never gets executed... I thought you meant you had an button in your result, which implies the result needs to be parsed by dojo so it can attach listeners to

Re: Struts2 cancel button with ajax theme does not execute method (bug?)

2008-05-12 Thread Yayo
I don't have scripts in my results but that don't changes the fact that the action configured in the cancel button never gets executed... On Mon, May 12, 2008 at 4:57 AM, Jeromy Evans < [EMAIL PROTECTED]> wrote: > Yayo wrote: > >> Hi, >> >> i'd like to discuss with you for in case you've found it

Re: problems nesting TileResults....

2008-05-12 Thread Antonio Petrelli
2008/5/12 Darren James <[EMAIL PROTECTED]>: > struts 2.0.11, and the tiles bundled with that version, which is tiles 2.0.4 Please try updating to Tiles 2.0.5: http://tiles.apache.org/download.html Antonio - To unsubscribe, e-mai

Re: problems nesting TileResults....

2008-05-12 Thread Darren James
sorry struts 2.0.11, and the tiles bundled with that version, which is tiles 2.0.4 thx, - darren Antonio Petrelli wrote: Version of Struts and Tiles? Antonio 2008/5/9 Darren James <[EMAIL PROTECTED]>: Hello All, I have a flow that is basically a toplevel struts2 action having a res