Accessing collections in jsp

2004-08-18 Thread vineesh . kumar
  
To pass a range of values i used 
in PassAction.java
Vector v=null;
  v.add(somestring);
   v.add(someotherstring);

request.setAttribute(name,v);

and in the jsp i tried to access it like

 logic:iterate id=mylist name=list
  Element Value: bean:write name=mylist /br /
/logic:iterate

but i got an error saying 

javax.servlet.ServletException: Cannot find bean list in scope request

anyone know wat is this problem
my struts-config action mapping is
   

action 
path=/accountslisting 
type=com.c2rmnet.struts.action.AccountslistAction 
validate=false
forward name=success path=/form/AccountListing.jsp /
forward name=invalidsession path=/form/InvalidSession.jsp /
/action

Thanks 
   vinu


RE: Accessing collections in jsp

2004-08-18 Thread VAN BROECK Jimmy
Hmm, i don't think your Passaction code is complete??

With this code, you would already get an nllpointerexception on the v variable!

Aren't you missing something?

Otherwise: try Vector v=new Vector();

-Original Message-
From: vineesh . kumar [mailto:[EMAIL PROTECTED]
Sent: woensdag 18 augustus 2004 9:13
To: [EMAIL PROTECTED]
Subject: Accessing collections in jsp


  
To pass a range of values i used 
in PassAction.java
Vector v=null;
  v.add(somestring);
   v.add(someotherstring);

request.setAttribute(name,v);

and in the jsp i tried to access it like

 logic:iterate id=mylist name=list
  Element Value: bean:write name=mylist /br /
/logic:iterate

but i got an error saying 

javax.servlet.ServletException: Cannot find bean list in scope request

anyone know wat is this problem
my struts-config action mapping is
   

action 
path=/accountslisting 
type=com.c2rmnet.struts.action.AccountslistAction 
validate=false
forward name=success path=/form/AccountListing.jsp /
forward name=invalidsession path=/form/InvalidSession.jsp /
/action

Thanks 
   vinu


STRICTLY PERSONAL AND CONFIDENTIAL
This message may contain confidential and proprietary material for the sole use of the 
intended recipient. Any review or distribution by others is strictly prohibited. If 
you are not the intended recipient please contact the sender and delete all copies.

Ce Message est uniquement destiné aux destinataires indiqués et peut contenir des 
informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas 
révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par 
erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le 
supprimer.

Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke 
informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht 
niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft ontvangen, 
gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het 
bericht vervolgens te verwijderen.


RE: Accessing collections in jsp

2004-08-18 Thread ravi.vedala

Use html:options tag.


-Original Message-
From: vineesh . kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 12:43 PM
To: [EMAIL PROTECTED]
Subject: Accessing collections in jsp


 
To pass a range of values i used
in PassAction.java
Vector v=null;
  v.add(somestring);
   v.add(someotherstring);

request.setAttribute(name,v);

and in the jsp i tried to access it like

 logic:iterate id=mylist name=list
  Element Value: bean:write name=mylist /br / /logic:iterate

but i got an error saying

javax.servlet.ServletException: Cannot find bean list in scope request

anyone know wat is this problem
my struts-config action mapping is
  

action
path=/accountslisting
type=com.c2rmnet.struts.action.AccountslistAction
validate=false
forward name=success path=/form/AccountListing.jsp /
forward name=invalidsession path=/form/InvalidSession.jsp /
/action

Thanks
   vinu




Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



RE: Accessing collections in jsp

2004-08-18 Thread VAN BROECK Jimmy
What you store in the request with name name doesn't match the attribute name=list 
in the logic iterate tag. Make sure both are the same!



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: woensdag 18 augustus 2004 9:20
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Accessing collections in jsp



Use html:options tag.


-Original Message-
From: vineesh . kumar [mailto:[EMAIL PROTECTED]

Sent: Wednesday, August 18, 2004 12:43 PM
To: [EMAIL PROTECTED]
Subject: Accessing collections in jsp


 

To pass a range of values i used

in PassAction.java
Vector v=null;
  v.add(somestring);
   v.add(someotherstring);

request.setAttribute(name,v);

and in the jsp i tried to access it like

 logic:iterate id=mylist name=list
  Element Value: bean:write name=mylist /br / /logic:iterate

but i got an error saying


javax.servlet.ServletException: Cannot find bean list in scope request

anyone know wat is this problem
my struts-config action mapping is
  


action

path=/accountslisting

type=com.c2rmnet.struts.action.AccountslistAction

validate=false
forward name=success path=/form/AccountListing.jsp /
forward name=invalidsession path=/form/InvalidSession.jsp /
/action

Thanks

   vinu




Confidentiality Notice


The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



STRICTLY PERSONAL AND CONFIDENTIAL
This message may contain confidential and proprietary material for the sole use of the 
intended recipient. Any review or distribution by others is strictly prohibited. If 
you are not the intended recipient please contact the sender and delete all copies.

Ce Message est uniquement destiné aux destinataires indiqués et peut contenir des 
informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas 
révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par 
erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le 
supprimer.

Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke 
informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht 
niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft ontvangen, 
gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het 
bericht vervolgens te verwijderen.


Re: Accessing collections in jsp

2004-08-18 Thread Shailender Jain
In the (name=list)


Here the  list should be same as key used during setAttribute


VAN BROECK Jimmy wrote:

 Hmm, i don't think your Passaction code is complete??

 With this code, you would already get an nllpointerexception on the v variable!

 Aren't you missing something?

 Otherwise: try Vector v=new Vector();

 -Original Message-
 From: vineesh . kumar [mailto:[EMAIL PROTECTED]
 Sent: woensdag 18 augustus 2004 9:13
 To: [EMAIL PROTECTED]
 Subject: Accessing collections in jsp


 To pass a range of values i used
 in PassAction.java
 Vector v=null;
   v.add(somestring);
v.add(someotherstring);

 request.setAttribute(name,v);

 and in the jsp i tried to access it like

  logic:iterate id=mylist name=list
   Element Value: bean:write name=mylist /br /
 /logic:iterate

 but i got an error saying

 javax.servlet.ServletException: Cannot find bean list in scope request

 anyone know wat is this problem
 my struts-config action mapping is


 action
 path=/accountslisting
 type=com.c2rmnet.struts.action.AccountslistAction
 validate=false
 forward name=success path=/form/AccountListing.jsp /
 forward name=invalidsession path=/form/InvalidSession.jsp /
 /action

 Thanks
vinu

 STRICTLY PERSONAL AND CONFIDENTIAL
 This message may contain confidential and proprietary material for the sole use of 
 the intended recipient. Any review or distribution by others is strictly prohibited. 
 If you are not the intended recipient please contact the sender and delete all 
 copies.

 Ce Message est uniquement destiné aux destinataires indiqués et peut contenir des 
 informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas 
 révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message 
 par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de 
 le supprimer.

 Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke 
 informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit 
 bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft 
 ontvangen, gelieve er de afzender of De Post onmiddellijk van op de hoogte te 
 brengen en het bericht vervolgens te verwijderen.


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



Re: Accessing collections in jsp

2004-08-18 Thread Bill Siggelkow
Vector v=new Vector();
  v.add(somestring);
   v.add(someotherstring);
request.setAttribute(list,v);
logic:iterate id=mylist name=list
  Element Value: bean:write name=mylist /br /
/logic:iterate
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]