Re: How to use nested iterate...through ArrayList

2007-02-13 Thread Siva Sajja
It would be good to identify if you can show your bean structure too.. This more or less seems to be a problem with the structure of bean you are trying to access. On 2/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I am trying to nested:iterate fro looping through am hashMap of Hashmap

Re: Struts Spring

2007-02-13 Thread Dave Newton
--- 황성준 [EMAIL PROTECTED] wrote: I don't have found the struts2-spring-plugin-2.0.5.jar. Where is it? Showcase application has one. Dave Any questions? Get answers on any topic at

I18N Problems

2007-02-13 Thread Juan Espinosa
Hi to all, i need some help with a intenationalization. I have a file named package.properties in the folder where i have located the actions. The localization is not working in actionerrors, i have the following code in the action:

I18N Problems

2007-02-13 Thread Juan Espinosa
Hi to all, i need some help with a intenationalization. I have a file named package.properties in the folder where i have located the actions. The localization is not working in actionerrors, i have the following code in the action:

Re: How to refreshOnShow in struts 2

2007-02-13 Thread Musachy Barroso
We dropped the tab tag because the div tag has the same attributes. You are right, the refreshOnShow attribute is ignored right now. It will be fixed for 2.0.6 or 2.0.7. thanks musachy Shuai Zheng wrote: Dear All, I have submitted an issue ww-1730 to JIRA (

Migrate from Struts 2.0.1 to 2.0.5

2007-02-13 Thread walidito
Hi, I'm very sorry if this question has already been asked, but I would like to know how to migrate from 2.0.1 to 2.0.5 and if it is not risky. I have already started my project in 2.0.1 and it works well (it took time to make it work well)... I have few concerns about staying at 2.0.1 or

Ant Scripts

2007-02-13 Thread Kandelwal Abhishek
Hi Guys, I need a help regarding Ant scripts. I have got a huge Java application. Each time I modify some files I have to redeploy the EAR file. I don't want this. I want to automate the deployment process using Ant Scripts But I don't have any knowledge about the same. Could u please

Ajax - obtaining a method result

2007-02-13 Thread Monttez
Hi all I want to make an ajax call to a method and get its returning.. (for use in a javascript fragment) For example: I want to get the Id for the inserted person (in an ajax insert..).. How it is possible? This method could be in an action or directly in my Service class.. Thanks in

Re: [S2] problem working with the Spring plugin with Struts 2.0.3+

2007-02-13 Thread kedgecomb
I found the struts2-spring-plugin.jar in the showcase war but it only works for SDK 1.5 We're using SDK 1.4 and the 1.4 versions of the Struts2 api and core jars and they have worked well for us. Anyone know where to find a 1.4 version of the plugin? Takekazu Omi wrote: Now I had same

Drop down list is blank

2007-02-13 Thread rapsy
Hi all, I am using struts 1.1 version for my application. I have to prepopulate drop-down lists on various jsp pages. The approach I am taking right now is in the reset method I make a call to database which returns me all the values for a list..for example it returns me all states. Then I

[s2] Groovy Actions in Struts 2

2007-02-13 Thread Mark Menard
I've recently started using Groovy in my Struts 2 project to write my actions. After some experience with it, I've written up a blog entry with some quick examples. http://www.vitarara.org/cms/node/95 Mark - To unsubscribe,

Re: [s2] Groovy Actions in Struts 2

2007-02-13 Thread Don Brown
Very cool. Please add a link in our Struts 2 wiki [1] to it for future reference. Don [1] http://cwiki.apache.org/confluence/display/S2WIKI On 2/13/07, Mark Menard [EMAIL PROTECTED] wrote: I've recently started using Groovy in my Struts 2 project to write my actions. After some experience

Re: Drop down list is blank

2007-02-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rapsy, rapsy wrote: Also, is there any other better approach to prepopulate the drop down list? Should I just make call to database from jsp page. You should have an action whose job it is to setup the request for this kind of thing. Consider this

I18N Problems

2007-02-13 Thread Juan Espinosa
Hi to all, i need some help with a intenationalization. I have a file named package.properties in the folder where i have located the actions. The localization is not working in actionerrors, i have the following code in the action:

RE: Ajax - obtaining a method result

2007-02-13 Thread Wesley Wannemacher
Struts 1 or Struts 2? Assuming Struts 2, I'll answer as best as I can. You'll have to code an action around calling this 'method.' For instance, say the method you want to call is in a class called Foo and the method is called bar(). If the result of bar() is a String and this result is what

AJAX - get server method return

2007-02-13 Thread Monttez
Hi all, How do I get the return of a spring created object( UserService... or UserAction.. )? Suppose that I need the inserted userId after an ajax call to insertUser(..) method.. How it is possible? - To unsubscribe, e-mail:

RE: Ajax - obtaining a method result

2007-02-13 Thread Wesley Wannemacher
Darn copy/paste, here is corrected code - In FooAction.java - public class FooAction extends ActionSupport { private String result ; public String execute() { Foo foo = new Foo(); String newResult = foo.bar();

Re: Ajax - obtaining a method result

2007-02-13 Thread Musachy Barroso
If you are making the call using the anchor or submit tag in the ajax theme, the returned text is available as a parameter(first parameter, when type is load) to the notifyTopics, see: http://cwiki.apache.org/WW/ajax-tags.html If you are going to use Dojo directly,: dojo.io.bind({

Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread kedgecomb
I have been using the actionErrors and actionMessage features of Struts2 for some time and they have worked well for providing user feedback, (e.g.; Business Center deleted successfully, User already exists with this ID, etc.). I add the error or the message in the action class like so:

Re: Ajax - obtaining a method result

2007-02-13 Thread Frank W. Zammetti
FYI, if you *do* want or need to return XML, there is one way to make it at least a little less painful: the JavaScript implementation of Commons Digester JSDigester: http://javawebparts.sourceforge.net/javadocs/javawebparts/taglib/jstags/JSDigesterTag.html Full-blown example can be seen in the

RES: Ajax - obtaining a method result

2007-02-13 Thread Monttez
Thank you guys, I'll try it.. Excuses for double-sending mail.. I didn't receive my own first msg.. Thanks a lot -Mensagem original- De: Musachy Barroso [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 13 de fevereiro de 2007 15:20 Para: Struts Users Mailing List Assunto: Re:

RE: s2 newbie tag question: indexing specific elements of arrayList

2007-02-13 Thread jonathan . lister
I wondered what is the struts tag equivalent of this JSTL to retrieve the first element from an arrayList: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % c:set var=thisCountry value=${regionList[0].countryCode} scope=page / c:set var=lastCountry

Re: Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread Musachy Barroso
The ajax request is handled just like any other request (its asynchronous nature is only related to the client). So whatever the action outputs, it will be sent to the client and inserted inside the div. Use Firebug to see what is the return of the ajax call, plus make sure the jsp fragment

Re: [s2] Groovy Actions in Struts 2

2007-02-13 Thread Mark Menard
On 2/13/07 12:54 PM, Don Brown [EMAIL PROTECTED] wrote: Very cool. Please add a link in our Struts 2 wiki [1] to it for future reference. Done. I also added some of the other writeups I've done. Mark - To unsubscribe,

[OT][ANN] REMINDER: JAVAWUG 24 Web Framework Smackdown :: Skills Matter :: 19/Feb/2007

2007-02-13 Thread Peter . Pilgrim
Hi All The Java Web User Group (JAVAWUG, LONDON) is holding a web framework smackdown BOF 24 at Skills Matter's offices in London on 19 Feb 2007. At the moment we have representatives for RIFE, Spring MVC, and standard API. Hey! If someone wants to rock the house with Struts 2 or Wicket demos

Re: Servlet Exception occurs in TilesRequestProcessor when using a Multipart form.

2007-02-13 Thread dennis labajo
I'm getting the same error as this guyhas anybody encountered this before and fixed it? Thanks, Dennis. On 1/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a struts application that is using tiles and weblogic. When I try to use a multipart form I get the Servlet Exception

Re: [S2] Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread kedgecomb
I am using a single taglib directive: %@ taglib prefix=s uri=/struts-tags % Is there something else I need? Also, I get the messages correctly if I call the url directly, (not using an async call). I will try the Firebug suggestion. Musachy Barroso-2 wrote: The ajax request is

Re: [S2] Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread Musachy Barroso
That should be it. Just to make sure it is not related to the errors or the messages, replace the s:actionmessage/ with some fixed text, and see if that text is showing up. musachy kedgecomb wrote: I am using a single taglib directive: %@ taglib prefix=s uri=/struts-tags % Is there

[S2] Spring Bean Interceptors?

2007-02-13 Thread Dave Newton
Can Interceptors be Spring Beans (without hackery)? Dave Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know.

Re: [s2] Groovy Actions in Struts 2

2007-02-13 Thread Ian Roughley
Very cool. If only Groovy supported annotations so that the configuration didn't need to be in the struts.xml file (but it looks like annotation support is starting). /Ian Mark Menard wrote: I've recently started using Groovy in my Struts 2 project to write my actions. After some

Re: [S2] problem working with the Spring plugin with Struts 2.0.3+

2007-02-13 Thread Dave Newton
Run the included retrotranslator on the plugin jar. --- kedgecomb [EMAIL PROTECTED] wrote: I found the struts2-spring-plugin.jar in the showcase war but it only works for SDK 1.5 We're using SDK 1.4 and the 1.4 versions of the Struts2 api and core jars and they have worked well for us.

form submission problem in struts2 (release 2.0.5) j4

2007-02-13 Thread serhat tanrikut
Hi All, I am evaluating struts2 and have developed a sample application using j4 similar to builtin struts2-blank application.When I submit jsp form the fallowing error occured: ... ... SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error

RES: Ajax - obtaining a method result

2007-02-13 Thread Monttez
Hi ! Musachy ? I'm getting the renderized view-result on my divtest.. when I expect to get the hello from action!! string... I'm not sure about my action mapping.. I'm trying to follow the examples but getting no success. :S My action code: public String hello() { return hello from

Re: [S2] problem working with the Spring plugin with Struts 2.0.3+

2007-02-13 Thread kedgecomb
That solved it. Dave Newton-4 wrote: Run the included retrotranslator on the plugin jar. --- kedgecomb [EMAIL PROTECTED] wrote: I found the struts2-spring-plugin.jar in the showcase war but it only works for SDK 1.5 We're using SDK 1.4 and the 1.4 versions of the Struts2 api

Re: RES: Ajax - obtaining a method result

2007-02-13 Thread Musachy Barroso
here is an example: Action: public GetIdAction { private int id; public String execute() { id = 10; return SUCESS; } public int getId() { return id; } } mapping: action name=hello method=hello class=..package.action.SectionAction result

Re: form submission problem in struts2 (release 2.0.5) j4

2007-02-13 Thread Ian Roughley
I would create a constructor in the action, and place a breakpoint/logging statement in there to make sure the correct action is beng called. In the HTML you have: s:form action=Logon name=login_form So the action should be /Logon.action, but your configuration is: action name=Logon_*

[JSP] api for customizing contents of a jsp page

2007-02-13 Thread temp temp
I want portal like capability where a user can change or create fields . I want to add functionality through which a user can add more fields or remove fields or change the display name of the field like portal page, where a user can create a form just with drag and drop,

Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
I am trying to convert a Struts 1.2 app to Struts 1.3. Method definitions for custom validation in validator-rules.xml Struts 1.2 Version validator name=required classname=org.apache.struts.validator.FieldChecks method=validateRequired methodParams=java.lang.Object,

Re: form submission problem in struts2 (release 2.0.5) j4

2007-02-13 Thread serhat tanrikut
Hi Ian, I put the Logon_* in action name=Logon_* method={1} class=packagename.Logon Because First a welcome page is displayed with the link lia href=s:url action=Logon_input/Sign On/a/li and then validation is passed for the first time because input method does not have any validation

Re: Struts 1.3 pain

2007-02-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chaudhary, Chaudhary, Harsh wrote: I am trying to convert a Struts 1.2 app to Struts 1.3. [snip] I have the validator.xml, validator-rules.xml and errors.properties intact from my Struts 1.2 version. Is there a reason to keep your old

RE: Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
There is no specific reason, But we have one custom validation, So is it good practice to revamp the entire the validator.xml file then? Any other gotchas from someone who has migrated a 1.2 app to 1.3? Harsh. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent:

Re: [S2] Spring Bean Interceptors?

2007-02-13 Thread Mark Menard
On 2/13/07 3:21 PM, Dave Newton [EMAIL PROTECTED] wrote: Can Interceptors be Spring Beans (without hackery)? Yes, just wire it up in your application context. I use to inject a service bean into an interceptor that handles retrieving user menu's based on role. Mark

Re: [s2] Groovy Actions in Struts 2

2007-02-13 Thread Mark Menard
On 2/13/07 3:22 PM, Ian Roughley [EMAIL PROTECTED] wrote: Very cool. If only Groovy supported annotations so that the configuration didn't need to be in the struts.xml file (but it looks like annotation support is starting). Ian, From your lips to G_d's ears. I can't wait for annotations.

Re: Struts 1.3 pain

2007-02-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harsh, Chaudhary, Harsh wrote: There is no specific reason, But we have one custom validation, So is it good practice to revamp the entire the validator.xml file then? Well, there's no reason to put everything into one file. I had this same

Re: [s2] Groovy Actions in Struts 2

2007-02-13 Thread Tamas Szabo
Yes, cool stuff. You might also be interested in: http://www.vim.org/scripts/script.php?script_id=490 ;-) Tamas On 2/14/07, Mark Menard [EMAIL PROTECTED] wrote: I've recently started using Groovy in my Struts 2 project to write my actions. After some experience with it, I've written up a

RE: Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
I will try that. Thanks a lot for your input. Harsh. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 13, 2007 5:05 PM To: Struts Users Mailing List Subject: Re: Struts 1.3 pain -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harsh,

support for setting Last-Modified in StreamResult?

2007-02-13 Thread Dale Newfield
I'd like to be able to add a Last-Modified header to a response when returning binary data from a struts2 action... I assume the right place to add this would be to org.apache.struts2.dispatcher.StreamResult. I guess I could always add it myself in a custom subclass, but that seems silly if

Re: [S2] Spring Bean Interceptors?

2007-02-13 Thread Dave Newton
--- Mark Menard [EMAIL PROTECTED] wrote: Dave Newton wrote: Can Interceptors be Spring Beans (without hackery)? Yes, just wire it up in your application context. I use to inject a service bean into an interceptor that handles retrieving user menu's based on role. Great; thanks... I was

Re: [s2] Groovy Actions in Struts 2

2007-02-13 Thread Vinny
I read trough your blog entry. This is brilliant. I'm a groovy newbie myself and I plan to tinker with Groovy actions. Perhaps s2 might end up becoming a nice web platform for Groovy in addition to Grails. On 2/13/07 3:22 PM, Ian Roughley [EMAIL PROTECTED] wrote: Very cool. If only Groovy

Re: [S2] Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread kedgecomb
I replaced the tags with plain text and it displays when I call the url directly and asynchronously. Musachy Barroso-2 wrote: That should be it. Just to make sure it is not related to the errors or the messages, replace the s:actionmessage/ with some fixed text, and see if that text is

Re: Migrate from Struts 2.0.1 to 2.0.5

2007-02-13 Thread Shuai Zheng
I just try it last weekend. The new feature in 2.0.5 is nice (mostly because now it is using new Dojo). There are tips I have faced: 1, the datepicker has been replaced by datetimepicker 2, panel has been removed and replaced by div. And the refreshOnShow attribute is ignored now. 3, a bug in