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

2010-04-30 Thread Mario . HIDALGO
Could you post the Action code and JSP

tanks!

SALUDOS!! 

Mario HIDALGO 
Java EE Consultant | Risk IT 
___

Phone 1.  (722) 277 ext. 783042
Phone 2.  (55) 5721  opción 3 , ext. 783042
Mobile. 0447223547727
Email.  mario.hida...@hsbc.com.mx
Internet.HSBC México
___



RogerV  
30 Apr 2010 09:43 AM
Mail Size: 7136
Please respond to
"Struts Users Mailing List" 


To
user@struts.apache.org
cc

Subject
Where is the documentation for Struts tags 




Where is the latest documentation for using Struts 2 tags?  I had a 
problem
earlier in the week trying to use the optiontransferselect tag which I 
still
haven't been able to get working. Earlier today, I started trying to get 
the
checkboxlist tag to work with a map and I'm still failing
miserably. 

In both cases I get the infamous 

tag 'checkboxlist', field 'list', name 'roles': The requested list key
'availableroles' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} 
tag 'checkboxlist', field 'list', name 'roles': The requested list key
'availableroles' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location] 

style of error message when I fire up my action. Googling suggest that 
from
the number of recent posts on StackOverflow and Java Ranch for example, 
I'm
not the only one frustrated with this. When the struts tag reference page
for checkboxlist gives as its only example "" and neither pages give any indication on how these tags
interact with the action code,  I begin to feel that this is all starting 
to
be more trouble than it's worth. 

Someone, somewhere must know of a url where this is all explained with
crystal clarity with useful code examples - I just can't find it at the
moment.

Yours in desperation


-- 
View this message in context: 
http://old.nabble.com/Where-is-the-documentation-for-Struts-tags--tp28413026p28413026.html

Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



"This email may contain confidential information, and is intended
only for the named recipient and may be privileged. Distribution or
copying of this email by anyone other than the named recipient is
prohibited. If you are not the named recipient, please notify us
immediately and permanently destroy this email and all copies of
it. Internet email is not private, secure, or reliable. No member
of the HSBC Group is liable for any errors or omissions in the
content or transmission of this email. Any opinions contained in
this email are solely those of the author, and unless clearly
indicated otherwise in writing, are not endorsed by any member of
the HSBC group."

“Este correo electrónico puede contener información confidencial,
sólo está dirigida al destinatario del mismo, la información puede
ser privilegiada. Está prohibido que cualquier persona distinta al
destinatario copie o distribuya este correo. Si usted no es el
destinatario, por favor notifíque esto de inmediato y destruya el
correo, lo mismo que todas las copias que existan del mismo. Los
correos electrónicos en internet, no son privados, seguros ni
confiables. Ningún miembro del Grupo HSBC será responsable de los
errores u omisiones en el contenido o transmisión de este correo
electrónico. Cualquier opinión contenida en este correo es
responsabilidad única y exclusiva del autor del mismo y, a menos
que lo contrario se indique claramente y por escrito, no está
respaldado por ningún miembro del Grupo HSBC”.



"This email may contain confidential information, and is intended
only for the named recipient and may be privileged. Distribution or
copying of this email by anyone other than the named recipient is
prohibited. If you are not the named recipient, please notify us
immediately and permanently destroy this email and all copies of
it. Internet email is not private, secure, or reliable. No member
of the HSBC Group is liable for any errors or omissions in the
content or transmission of this email. Any opinions contained in
this email are solely those of the author, and unless clearly
indicated otherwise in writing, are not endorsed by any member of
the HSBC group."

“Este correo electrónico puede contener información confidencial,
sólo está dirigida al destinatario del mismo, la información puede
ser privilegiada. Está prohibido que cualquier persona distinta al
destinatario copie o distribuya este correo. Si usted no es el
destinatario, por favor notifíque e

Re: struts session help

2010-04-27 Thread Mario . HIDALGO
Hello:

You can use session context if implements SessionAware for example:

public class MyAction extends ActionSupport implements SessionAware {

  private Map session;

public String execute() {
   session.put("categoryList", EComplaintType.values())
  return SUCCESS;
}


public void setSession(Map session) {
  this.session = session;
}

}


SALUDOS!! 

Mario HIDALGO 
Java EE Consultant | Risk IT 
___

Phone 1.  (722) 277 ext. 783042
Phone 2.  (55) 5721  opción 3 , ext. 783042
Mobile. 0447223547727
Email.  mario.hida...@hsbc.com.mx
Internet.HSBC México
___



Alex Rodriguez Lopez  
27 Apr 2010 04:23 AM
Mail Size: 7370
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: struts session help



Hi,

you could put/get from session like so:

ActionContext.getContext().getSession();

You can define a "parent" action (implementing preparable) with a 
prepare() method that retrieves data and store it in session for later 
(and check each time if data is already in session) and puts it into 
properties with public getters that your other actions extending that 
one (and jsps) will inherit.

Em 27-04-2010 09:36, Upasana Sharma escreveu:
> Hi
>
> I have a jsp that displays some data . To refine the data based on some
> criteria i have two comboboxes.
>
>  onchange="getDisplayCriteria();" emptyOption="true">
>
>onchange="getDisplayCriteria();" emptyOption="true">
>
>
> the lists for these two select option are obtained from the action that
> calls the page containing them..
>
> public String getAllLists() throws Exception{
>
>   ActionContext.getContext().put("categoryList", 
EComplaintType.values());
> ActionContext.getContext().put("statusList", EComplaintStatus.values());
> return SUCCESS;
> }
>
> but the problem is that whatever we put in this action context , those
> values are for that action only if we call any other action that 
renders
> the same jsp these values are not accessible.
>
> there is some issue with session management what i feel... can u suggest 
how
> should i approach this problem.. to make the values stay in the 
session
> after the first call.
>


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



"This email may contain confidential information, and is intended
only for the named recipient and may be privileged. Distribution or
copying of this email by anyone other than the named recipient is
prohibited. If you are not the named recipient, please notify us
immediately and permanently destroy this email and all copies of
it. Internet email is not private, secure, or reliable. No member
of the HSBC Group is liable for any errors or omissions in the
content or transmission of this email. Any opinions contained in
this email are solely those of the author, and unless clearly
indicated otherwise in writing, are not endorsed by any member of
the HSBC group."

“Este correo electrónico puede contener información confidencial,
sólo está dirigida al destinatario del mismo, la información puede
ser privilegiada. Está prohibido que cualquier persona distinta al
destinatario copie o distribuya este correo. Si usted no es el
destinatario, por favor notifíque esto de inmediato y destruya el
correo, lo mismo que todas las copias que existan del mismo. Los
correos electrónicos en internet, no son privados, seguros ni
confiables. Ningún miembro del Grupo HSBC será responsable de los
errores u omisiones en el contenido o transmisión de este correo
electrónico. Cualquier opinión contenida en este correo es
responsabilidad única y exclusiva del autor del mismo y, a menos
que lo contrario se indique claramente y por escrito, no está
respaldado por ningún miembro del Grupo HSBC”.



"This email may contain confidential information, and is intended
only for the named recipient and may be privileged. Distribution or
copying of this email by anyone other than the named recipient is
prohibited. If you are not the named recipient, please notify us
immediately and permanently destroy this email and all copies of
it. Internet email is not private, secure, or reliable. No member
of the HSBC Group is liable for any errors or omissions in the
content or transmission of this email. Any opinions contained in
this email are solely those of the author, and unless clearly
indicated otherwise in writing, are not endorsed by any member of
the HSBC group."

“Este correo electrónico puede contener información confidencial,
sólo está dirigida al destinatario del mismo, la