You wanted to do that in a scriplet right?
If you want it within a taglib then use can use "c" taglib. 

Vishal

-----Original Message-----
From: Gaet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 5:49 PM
To: Struts Users Mailing List
Subject: Re: Using variable of a tag in a scriplet...how to??

Thanks vishal (or seth ;o) )!

That works, but is there no taglib to get a pageContext attribute?
Thanks for your help

Gaet
 
  ----- Original Message ----- 
  From: Vishal Seth 
  To: Struts Users Mailing List 
  Sent: Wednesday, August 09, 2006 12:12 PM
  Subject: RE: Using variable of a tag in a scriplet...how to??


  Try getting it thru pageConext.getATtribute(). ..I am still not 100%
got
  the hang of ur problem..but you can try using this

  -----Original Message-----
  From: Gaet [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, August 09, 2006 3:38 PM
  To: Struts Users Mailing List
  Subject: Using variable of a tag in a scriplet...how to??

  Hi all the list,

  I need to use the variable defined in a collection tag in a
  scriptlet....and
  I can't get it work!
  I'm trying some codes and I don't understand why the following doesn't
  work,
  could you help me please?


  <layout:collection name="employeesVector" id="employeeRow">
          <!-- Try to define a local variable -->
          <bean:define id="EmployeeLocaleVar" name="employeeRow"/>

          <!-- try to use my variable to get a value in a HashMap -->
          <%= myHashMap.get(employeeVar.getId())) %>

  </layout:collection

  The webservser message is :
      "Cannot find bean cptbleLstadhRow in any scope"


  If you can help, it would be great!
  Thank you, at least, to take time to read me

  Gaet


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





  MASTEK 
  "Making a valuable difference"
  Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
  In the US, we're called MAJESCOMASTEK

 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Opinions expressed in this e-mail are those of the individual and not
that of Mastek Limited, unless specifically indicated to that effect.
Mastek Limited does not accept any responsibility or liability for it.
This e-mail and attachments (if any) transmitted with it are
confidential and/or privileged and solely for the use of the intended
person or entity to which it is addressed. Any review, re-transmission,
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. This e-mail and its attachments have been
scanned for the presence of computer viruses. It is the responsibility
of the recipient to run the virus check on e-mails and attachments
before opening them. If you have received this e-mail in error, kindly
delete this e-mail from all computers.
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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




MASTEK 
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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

Reply via email to