Re: Session variable setting

2010-05-20 Thread Kartik Kumar
I have found that when your interceptor implements SessionAware and puts some key/value pairs in the map, the session attributes are not available to the action even if it implements SessionAware. To get the session attribute, I did something like this: @SuppressWarnings("unchecked") Map sessionM

Struts2 - Ajax submit not working: Please advise

2010-04-30 Thread Kartik Kumar
Hi All, I am experiencing some issues with ajax submit with Struts2. I am trying to do an asynchronous post to an action class that will make a crud call and return back the html page with the updated input value. I am able to get the result when posting to form action without using ajax. <%@ ta

Re: ConcurrentModificationException error.

2010-04-30 Thread Kartik Kumar
Are you using Iterator#remove() when iterating through a collection? On Fri, Apr 30, 2010 at 10:23 AM, Lukasz Lenart < lukasz.len...@googlemail.com> wrote: > Do you have devMode set to true? > > > Regards > -- > Łukasz > http://www.lenart.org.pl/ > Kapituła Javarsovia 2010 > http://javarsovia.pl

Re: Where is the documentation for Struts tags ....

2010-04-30 Thread Kartik Kumar
http://struts.apache.org/2.0.14/docs/tag-reference.html On Fri, Apr 30, 2010 at 8:29 AM, Dale Newfield wrote: > On 4/30/10 10:43 AM, RogerV wrote: > >> Where is the latest documentation for using Struts 2 tags? I had a >> problem >> earlier in the week trying to use the optiontransferselect tag

Re: Submit not passing the form input to the action

2010-04-29 Thread Kartik Kumar
@Nikhil No action form used as I am using Struts2. Each row has a submit button. 2010/4/29 निखिल वाळवेकर > Can you please also provide ActionForm details ? > > Is your page like this? (I am not aware abt struts 2 tags) > > > ... > > > > > >

Re: Submit not passing the form input to the action

2010-04-28 Thread Kartik Kumar
Hi Martin, Thanks for replying. I loked at I am iterating through the collection to display some the items as follows: There is a submit button for every row. I want to update the va

Submit not passing the form input to the action

2010-04-28 Thread Kartik Kumar
Hi, I have a use case in which we iterate through the items in the list and display them on the page. We do that with s:iterator tag. **

Re: Multiple forms in single action class

2010-04-28 Thread Kartik Kumar
Yes It is possible to assign the same action class but different action methods to handle different tasks. The example below should work for you. On Wed, Apr 28, 2010 at 7:08 AM, Manoj Singh wrote: > Hi, > > I am a newbie to struts. Please co-operate. > > I am using the dispatch action to crea

Re: Setting selected with s:select tags

2010-04-26 Thread Kartik Kumar
Hi Martin, Thanks for the reply. I apologize if I was not clear earlier. Let me try to rephrase my question again. The 'selected' value of the auto-select comes from another bean property. The iterator is used to iterate over an action specific bean property. The s:select is used inside s:iterato

Re: Setting selected with s:select tags

2010-04-23 Thread Kartik Kumar
I have some thing like this * * Change But I don't see the preselected value, Thanks, Kartik On Fri, Apr 23, 2010 at 5:11 PM, Kartik

Setting selected with s:select tags

2010-04-23 Thread Kartik Kumar
Hi Struts gurus, I am have an object level attribute that is selected from the s:select tag. If I want to set 'abc' to selected, then how do do that ? Any advice would be welcome. Thanks, Kartik

Issue with localization: Messages not picked up from properties file

2010-04-21 Thread Kartik Kumar
Hi All, In my package structure, I have package.properties file with the following key value pair: username=User Name password=Password In my simple login page: the form elements are defined with a key look up.. My action xml mappings are given below. The first action is a