Session beans are shared across multiplae instances of browsers!

2003-03-31 Thread Jain, Shilpi
My session beans are getting shared across multiple instances of the
browser. The updation that I do in one instance is reflected in the other
instance.
Is this a struts bug or I am doing something wrong!
 
Shilpi


RE: how to logic:iterate throu serveral collections at once ?

2003-03-30 Thread Jain, Shilpi
Thanks. I have been able to do it.

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 30, 2003 11:32 AM
To: Struts Users Mailing List
Subject: Re: how to logic:iterate throu serveral collections at once ?

A clean solution is to put your label, value, and boolean flag in a Bean
then you can access all those properties as you iterating thru.

Regarding the coloring, instead of using html:options tag,
your can use logic:iterate and writing out the html code and color yourself

-Dan

- Original Message -
From: "Jain, Shilpi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 9:51 PM
Subject: RE: how to logic:iterate throu serveral collections at once ?


> Hi
> I am using an options tag to display a label value collection. I have an
> additional propert associated with each of the values on this option which
I
> have stored as another boolean[]. Now in my UI, I want to have each of
these
> options to appear in two different colors depending on the corresponding
> value in my boolean[]. How can I implement this.
>
>
> -Shilpi
>
> -Original Message-
> From: Dan Tran [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 30, 2003 11:15 AM
> To: Struts Users Mailing List
> Subject: Re: how to logic:iterate throu serveral collections at once ?
>
> logic:iterate exposes an collection's index, with can be use to access
other
> collection, right?
>
> -D
> - Original Message -
> From: "Slava_L" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Saturday, March 29, 2003 10:15 PM
> Subject: Re: how to logic:iterate throu serveral collections at once ?
>
>
> > Struts doc says that only one object can be iterated inside on
> logic:iterate
> > - Original Message -
> > From: "Dan Tran" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Sunday, March 30, 2003 12:39 PM
> > Subject: Re: how to logic:iterate throu serveral collections at once ?
> >
> >
> > > The answer is yes. Please check struts doc
> > >
> > > However, by place your id and label into LabelValueBean. It will make
> your
> > > code easier write
> > > thru logic:iterate
> > >
> > > -Dan
> > > - Original Message -
> > > From: "Slava_L" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Saturday, March 29, 2003 9:02 PM
> > > Subject: how to logic:iterate throu serveral collections at once ?
> > >
> > >
> > > Suppose i have ids[] array and labels[] array
> > >
> > > I need to render link  label[i] 
> > > is it possible to do with logic:iterate ?
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to logic:iterate throu serveral collections at once ?

2003-03-29 Thread Jain, Shilpi
Hi
I am using an options tag to display a label value collection. I have an
additional propert associated with each of the values on this option which I
have stored as another boolean[]. Now in my UI, I want to have each of these
options to appear in two different colors depending on the corresponding
value in my boolean[]. How can I implement this.


-Shilpi

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 30, 2003 11:15 AM
To: Struts Users Mailing List
Subject: Re: how to logic:iterate throu serveral collections at once ?

logic:iterate exposes an collection's index, with can be use to access other
collection, right?

-D
- Original Message -
From: "Slava_L" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 10:15 PM
Subject: Re: how to logic:iterate throu serveral collections at once ?


> Struts doc says that only one object can be iterated inside on
logic:iterate
> - Original Message -
> From: "Dan Tran" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Sunday, March 30, 2003 12:39 PM
> Subject: Re: how to logic:iterate throu serveral collections at once ?
>
>
> > The answer is yes. Please check struts doc
> >
> > However, by place your id and label into LabelValueBean. It will make
your
> > code easier write
> > thru logic:iterate
> >
> > -Dan
> > - Original Message -
> > From: "Slava_L" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Saturday, March 29, 2003 9:02 PM
> > Subject: how to logic:iterate throu serveral collections at once ?
> >
> >
> > Suppose i have ids[] array and labels[] array
> >
> > I need to render link  label[i] 
> > is it possible to do with logic:iterate ?
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error regarding ValidatorForm

2003-03-29 Thread Jain, Shilpi
I have a weird problem. I am using the validator plug-in of struts for doing
validations in my form. When I start my Tomcat, an error comes. This error
does not come if I delete my work folder in Tomcat and restart Tomacat. From
then on it works fine. But as soon as I restart my Tomcat, if the work
folder is not emptied this problem comes and my application does not load.

Please help.


This is the error:


Mar 29, 2003 5:19:11 PM org.apache.struts.util.RequestUtils createActionForm
SEVERE: Error creating form bean of class
com.xerox.xdx.configTool.beans.ConfigMainForm
java.lang.NoClassDefFoundError: org.apache.struts.validator.ValidatorForm
at
com.xerox.xdx.configTool.beans.ConfigMainForm.initializePageArrayList
(ConfigMainForm.java:71)
at
com.xerox.xdx.configTool.beans.ConfigMainForm.(ConfigMainForm.j
ava:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:206)
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.jav
a:749)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:589)
at
org.apache.jsp.config_0005fmain$jsp._jspService(config_0005fmain$jsp.
java:124)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
81)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1125)
at java.lang.Thread.run(Thread.java:536)
javax.servlet.jsp.JspException: Exception creating bean of class
com.xerox.xdx.c
onfigTool.beans.ConfigMainForm: {1}
at
org.apache.struts.taglib.h

RE: How to get the label[] and the value[] both from a select box?

2003-03-26 Thread Jain, Shilpi
How can I do this if I have my form-bean in the session scope and this
form-bean contains the collection?
How will I specify the property in the jsp?

Shilpi

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:55 PM
To: Struts Users Mailing List
Subject: RE: How to get the label[] and the value[] both from a select box?

Instead of two String[]s build a form-bean with a collection of
LabelValueBeans
(http://jakarta.apache.org/struts/api/org/apache/struts/util/LabelValueBean.
html).  

You can find sample implementations in html-select.jsp which is in the
struts-exercise-taglib application that ships with Struts.

Sri

-Original Message-
From: Jain, Shilpi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 11:34 PM
To: Struts Users Mailing List
Subject: How to get the label[] and the value[] both from a select box?


I am using a multiple select box in my application. I have a problem with
that one. 

For my multiple select box I have 2 separate String[] one representing the
labels of the options and another for value. The problems that I am facing
are following:

1. The html:options tag has property and labelProperty tags associated with
this multiple select list box but when the form is submitted the
corresponding String[] are not updated for the new values in the UI(These
values were changed on the UI using java script). 

 

2. The property of string[] associated with the html:select tag was getting
updated but only for the selected value so I explicitly selected all values
in the list box before submitting the jsp. But this itself had another
problem. The values coming in the select property String[] were that of the
labels in the list box not values!

In my form beans I have setters for both the array and the arrayelement with
the same name but of-course with different arguments

Can anyone help me. This is really really urgent.

 

Thanks

Shilpi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: formBean setters not called on form submitting

2003-03-26 Thread Jain, Shilpi
Yes the select box setter is being invoked in my case. I have verified it.

-Original Message-
From: Daniel Blázquez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 2:50 PM
To: Struts Users Mailing List
Subject: Re: formBean setters not called on form submitting

Hi Shilpi:

thats ok, that is what I think too, but... not happens this way!!.

I mean, the select property setters are not invoked!! it works ok in your
case?


- Original Message -
From: "Jain, Shilpi" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 10:10 AM
Subject: RE: formBean setters not called on form submitting


I have the same problem. The only setter that is invoked is that related to
the select property. In your case it would be setAvailables2() and
setSelected2() and that too only if they are String[].

Regards
Shilpi

-Original Message-
From: Daniel Blázquez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 2:09 PM
To: [EMAIL PROTECTED]
Subject: formBean setters not called on form submitting

Hi everybody:

I have a form bean with two lists and a html-javascript list-selector gizmo
as seen in tiles exaples (for choosing portal tiles and menu customization,
tiles-documentation/examples/myPortalSettings.jsp).

In filling time, everything ok, the options are displayed. But in saving
time, when html form values are saved in the formBean object, my list values
are not saved.

The two lists are:


   



   


And the bean methods:

public void setAvailables2(String array[]){
   availablesVector.copyInto(array);
}

public void setSelected2(String array[]){
   selectedVector.copyInto(array);
}

The most extrange thing is that i have placed a trace in these setters
(appending something to another field that works ok) and i have noticed that
those methods are not called ever.

Does somebody see any problem in my setters or in the form? when are setters

methods efectively called when submitting a form?

any help will be very thanked, Dani (Spain)




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: formBean setters not called on form submitting

2003-03-26 Thread Jain, Shilpi
I have the same problem. The only setter that is invoked is that related to
the select property. In your case it would be setAvailables2() and
setSelected2() and that too only if they are String[].

Regards
Shilpi

-Original Message-
From: Daniel Blázquez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 2:09 PM
To: [EMAIL PROTECTED]
Subject: formBean setters not called on form submitting

Hi everybody:

I have a form bean with two lists and a html-javascript list-selector gizmo
as seen in tiles exaples (for choosing portal tiles and menu customization,
tiles-documentation/examples/myPortalSettings.jsp).

In filling time, everything ok, the options are displayed. But in saving
time, when html form values are saved in the formBean object, my list values
are not saved.

The two lists are: 


   



   


And the bean methods:

public void setAvailables2(String array[]){
   availablesVector.copyInto(array);
}

public void setSelected2(String array[]){
   selectedVector.copyInto(array);
}

The most extrange thing is that i have placed a trace in these setters
(appending something to another field that works ok) and i have noticed that
those methods are not called ever.

Does somebody see any problem in my setters or in the form? when are setters
methods efectively called when submitting a form?

any help will be very thanked, Dani (Spain)




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to get the label[] and the value[] both from a select box?

2003-03-25 Thread Jain, Shilpi
I am using a multiple select box in my application. I have a problem with
that one. 

For my multiple select box I have 2 separate String[] one representing the
labels of the options and another for value. The problems that I am facing
are following:

1. The html:options tag has property and labelProperty tags associated with
this multiple select list box but when the form is submitted the
corresponding String[] are not updated for the new values in the UI(These
values were changed on the UI using java script). 

 

2. The property of string[] associated with the html:select tag was getting
updated but only for the selected value so I explicitly selected all values
in the list box before submitting the jsp. But this itself had another
problem. The values coming in the select property String[] were that of the
labels in the list box not values!

In my form beans I have setters for both the array and the arrayelement with
the same name but of-course with different arguments

Can anyone help me. This is really really urgent.

 

Thanks

Shilpi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]