Re: In a merged iterator, know which iterator current item belongs

2007-06-10 Thread Anton Pussep
>> but now I need to know to which iterator the >> currently processed entry belongs to, since they >> have to be treated differently. > > Are the items of the same type? > > If so, I'm not sure what you can do. > In this case numbers is of type double[] and operators is of type String[]. Woul

How can i get servlet in my sessionDestroy() method?

2007-06-10 Thread Srinivasula Reddy A , Bangalore
DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the origi

RE: servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method

2007-06-10 Thread Srinivasula Reddy A , Bangalore
The listener class is extending Action as well as implementing HttpSessionListener interface. Cant I have servlet in my sessionDestroy() method? -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 10:42 AM To: Struts Users Mailing List Subject: Re

Re: servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method

2007-06-10 Thread Jeromy Evans
> I am getting NullPointerException in this line Hashtable userList = (Hashtable) servlet.getServletContext().getAttribute("userList"); As suggested by others the last time you asked this question, first try to determine whether it's the the servlet, servletContext or HashTable that's null. H

RE: Extending DynaValidatorForm

2007-06-10 Thread Ambaris Mohanty
My code is as following... struts-config.xml -Original Message- From: David Durham, Jr. [mailto:[EMAIL PROTECTED] Sent: Saturday, June 09, 2007 2:46 AM To: Struts Users Mailing List Subject: Re: Extending DynaValidatorForm On 6/8/07, David Du

RE: Extending DynaValidatorForm

2007-06-10 Thread Ambaris Mohanty
Thanks David, But I need sample code. Can u provide it? I got your logic but finding it difficult to implement. The main problem is how to get the property name at runtime. I have many forms that extend the DynaValidatorForm. Thank you, AM -Original Message- From: David Durham, Jr. [mailto

servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method

2007-06-10 Thread Srinivasula Reddy A , Bangalore
Hi team, In my login action I am adding the user who logged in into hash table and I am putting that hash table in servlet.getServletContext().setAttribute("") as fallows Hashtable userList = new Hashtable(); userList.put("username",username); servlet.getServletContext().setA

linking struts2 action to pre-existing pure Java servlet

2007-06-10 Thread nmall
Hi, I have a servlet which implements some logic based on some URL parameters passed to it. I can invoke this servlet directly from my browser, by simply supplying the parameters thru the URL. http://localhost:8080/myproject/myapplication?param1=value1¶m2=value2 However, I would like to set t

I am unable to access servlet in my sessionDestroy() method?

2007-06-10 Thread Srinivasula Reddy A , Bangalore
DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the origi

[S2] datetimepicker reset value to 00:00 when type="time" after submitting page

2007-06-10 Thread Vincent Lin
I have a datetimepicker in my JSP to let user select time: When user select 10:15 and submit to webserver, after the web page refreshes the value becomes 00:00. Is this another datetimepicker bug? I have a type converter for converting time the format string is "HH:mm": public class TimeConve

Re: Parameter Mapping with Set elements

2007-06-10 Thread Dave Newton
--- Nicolás Pace <[EMAIL PROTECTED]> wrote: > The point here is that Sets are not indexable, so i > can't name elements by their unique id... Let me rephrase: I don't know how you'd be able to use a Set directly on a web page simply because it's *not* indexable. My guess is that you'd have to mas

Re: Parameter Mapping with Set elements

2007-06-10 Thread Dave Newton
--- Nicolás Pace <[EMAIL PROTECTED]> wrote: > The point here is that Sets are not indexable, so i > can't name elements by their unique id... Well, if there's nothing to uniquely identify them at all then you'd be doomed no matter what, wouldn't you? d.

Re: In a merged iterator, know which iterator current item belongs

2007-06-10 Thread Dave Newton
--- Anton Pussep <[EMAIL PROTECTED]> wrote: > but now I need to know to which iterator the > currently processed entry belongs to, since they > have to be treated differently. Are the items of the same type? If so, I'm not sure what you can do. d. ___

Re: Parameter Mapping with Set elements

2007-06-10 Thread Nicolás Pace
The point here is that Sets are not indexable, so i can't name elements by their unique id... On 6/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Nicolás Pace <[EMAIL PROTECTED]> wrote: > The main problem is that the only way to access > collection elements with ognl is like accessing an > a

In a merged iterator, know which iterator current item belongs

2007-06-10 Thread Anton Pussep
Hello, I want to successively call several iterators. This works perfectly fine with a merged iterator, but now I need to know to which iterator the currently processed entry belongs to, since they have to be treated differently. See the small example below that illustrates my intention. Currentl

Re: Parameter Mapping with Set elements

2007-06-10 Thread Dave Newton
--- Nicolás Pace <[EMAIL PROTECTED]> wrote: > The main problem is that the only way to access > collection elements with ognl is like accessing an > array, and when i generate those dinamic components > with javascript, i don't know how to name those > elements to have them mapped to the Set. Na

Parameter Mapping with Set elements

2007-06-10 Thread Nicolás Pace
Hi!, I'm having a problem trying to map elements from a Set Collection in my Action to form components, and to generate form components dinamically and have them inserted in this set. Any suggestions? The main problem is that the only way to access collection elements with ognl is like accessing a

sort entries by the selected tag

2007-06-10 Thread Anton Pussep
Hello, I would like to sort the menu created by the selected tag. So far I just pass a TreeMap where the entries are sorted already. However, I think that the View should decide whether to sort or not to sort, but I could not find a way to force the selected tag to sort. Is there anything you can

Re: html:hidden

2007-06-10 Thread Nuwan Chandrasoma
Hi, Use plain told HTML and use your script tag. Thanks, Nuwan - Original Message - From: "john lee" <[EMAIL PROTECTED]> To: Sent: Sunday, June 10, 2007 3:49 PM Subject: html:hidden How to assaign value to html:hidden field? request.getAttribute("loginid")%>> but give me the

Re: html:hidden

2007-06-10 Thread Mike Baroukh
it's because setValue() for the taglib need a String. try " > Mike john lee a écrit : How to assaign value to html:hidden field? > but give me the error message, saying need double quote, after i put double quote before "<%..", cause jsp compile error, any clue? tks in

Re: html:hidden

2007-06-10 Thread Nicolás Pace
On 6/10/07, john lee <[EMAIL PROTECTED]> wrote: How to assaign value to html:hidden field? > but give me the error message, saying need double quote, after i put double quote before "<%..", cause jsp compile error, Which error did it cause? any clue? tks in advance john --

html:hidden

2007-06-10 Thread john lee
How to assaign value to html:hidden field? > but give me the error message, saying need double quote, after i put double quote before "<%..", cause jsp compile error, any clue? tks in advance john - Sucker-punch spam with award-winni

RE: How to format the decimal

2007-06-10 Thread Deepak Kumar
Hi visit http://www.roseindia.net/struts/struts2/struts-2-format.shtml this is good example. thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Josh Vickery Sent: Saturday, June 09, 2007 6:36 PM To: Struts Users Mailing List Subject: Re: How to format