RE: Using bean:write as a tag's value atrribute

2004-01-31 Thread Mailing List


Thank you very much 
Bean:define solved the problem



-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 29, 2004 3:45 PM
To: Struts Users Mailing List
Subject: Re: Using bean:write as a tag's value atrribute


bean:define id=value name=myBeanName property=its property
someTag value=%= value %

Nico.



 
 Dear All;
 
 Using bean:write name=myBeanName property=its property works
properly
 in my jsp page body. But when I want to use it in a tag to fill its
 attribute, it fails.
  Actually I don't know the syntax of using bean:write, obviously the below
 way is wrong:
 
 someTag value=bean:write name=myBeanName property=its property
 
 Using expression is wrong, too:
 
 someTag 
  value=%=bean:write name=myBeanName property=its property%
 
 So how could I use bean:write in my tags?!
 
 Any help would be greatly appreciated
 Nafise
 
 
 -
 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]



Using bean:write as a tag's value atrribute

2004-01-29 Thread Mailing List

Dear All;

Using bean:write name=myBeanName property=its property works properly
in my jsp page body. But when I want to use it in a tag to fill its
attribute, it fails.
 Actually I don't know the syntax of using bean:write, obviously the below
way is wrong:

someTag value=bean:write name=myBeanName property=its property

Using expression is wrong, too:

someTag 
 value=%=bean:write name=myBeanName property=its property%

So how could I use bean:write in my tags?!

Any help would be greatly appreciated
Nafise


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



AW: Using bean:write as a tag's value atrribute

2004-01-29 Thread Kasterovic, Slobodan
Try this:

someTag value=%= pageContext.getAttribute(myBeanName).getItsproperty()
% /

Casting is sometimes necessary !!!


Slobodan


-- -Ursprngliche Nachricht-
-- Von: Mailing List [mailto:[EMAIL PROTECTED]
-- Gesendet: Donnerstag, 29. Januar 2004 11:54
-- An: 'Struts Users Mailing List'
-- Betreff: Using bean:write as a tag's value atrribute 
-- 
-- 
-- 
-- Dear All;
-- 
-- Using bean:write name=myBeanName property=its 
-- property works properly
-- in my jsp page body. But when I want to use it in a tag to fill its
-- attribute, it fails.
--  Actually I don't know the syntax of using bean:write, 
-- obviously the below
-- way is wrong:
-- 
-- someTag value=bean:write name=myBeanName property=its 
-- property
-- 
-- Using expression is wrong, too:
-- 
-- someTag 
--  value=%=bean:write name=myBeanName property=its 
-- property%
-- 
-- So how could I use bean:write in my tags?!
-- 
-- Any help would be greatly appreciated
-- Nafise
-- 
-- 
-- 
-- -
-- 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: Using bean:write as a tag's value atrribute

2004-01-29 Thread Claire Wall
This is fine as long as the tag you're using the bean:write.../ is not
another custom tag e.g. html:.../ or logic:.../ etc. It is done like
this:

input type=submit value=bean:write name=FormName
property=Property/ / - make sure you include '/' at the end of the bean
tag.


If you want to use this in a custom tag you're going to have to define a
bean first and then use a jsp expression so you can set the value like so:

bean:define id=prop name=FormName property=Property/

html:option value=%= prop %/


hope this answers your question

claire :)

- Original Message -
From: Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 10:53 AM
Subject: Using bean:write as a tag's value atrribute



 Dear All;

 Using bean:write name=myBeanName property=its property works
properly
 in my jsp page body. But when I want to use it in a tag to fill its
 attribute, it fails.
  Actually I don't know the syntax of using bean:write, obviously the below
 way is wrong:

 someTag value=bean:write name=myBeanName property=its property

 Using expression is wrong, too:

 someTag
  value=%=bean:write name=myBeanName property=its property%

 So how could I use bean:write in my tags?!

 Any help would be greatly appreciated
 Nafise


 -
 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: Using bean:write as a tag's value atrribute

2004-01-29 Thread Nicolas De Loof

bean:define id=value name=myBeanName property=its property
someTag value=%= value %

Nico.



 
 Dear All;
 
 Using bean:write name=myBeanName property=its property works properly
 in my jsp page body. But when I want to use it in a tag to fill its
 attribute, it fails.
  Actually I don't know the syntax of using bean:write, obviously the below
 way is wrong:
 
 someTag value=bean:write name=myBeanName property=its property
 
 Using expression is wrong, too:
 
 someTag 
  value=%=bean:write name=myBeanName property=its property%
 
 So how could I use bean:write in my tags?!
 
 Any help would be greatly appreciated
 Nafise
 
 
 -
 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]



AUTO {ICICICARE#005-215-908}Using bean:write as a tag's value atrribute

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your 
mail and assure you of a response shortly.To help us serve you better, we would 
request you to kindly mention your account number or any reference number you may have 
in your future correspondence.  Kindly visit our website www.icicibank.com\nri to know 
more on our products and services.  With regards,Customer Care 
ICICI Bank Limited This communication being sent by ICICI Bank Ltd. is privileged and 
confidential, and is directed to and for the use of the addressee only. If this 
message reaches anyone other than the intended recipient, we request the reader not to 
reproduce, copy, disseminate or in any manner distribute it. We further request such 
recipient to notify us immediately by return email and delete the original message. 
ICICI Bank Ltd. does not guarantee the security of any information transmitted 
electronically and is not liable for the proper, timely and complete transmission 
thereof. Before opening any attachments please check them for viruses and defects.



AUTO {ICICICARE#005-216-115}AW: Using bean:write as a tag's value atrribute

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your 
mail and assure you of a response shortly.To help us serve you better, we would 
request you to kindly mention your account number or any reference number you may have 
in your future correspondence.  Kindly visit our website www.icicibank.com\nri to know 
more on our products and services.  With regards,Customer Care 
ICICI Bank Limited This communication being sent by ICICI Bank Ltd. is privileged and 
confidential, and is directed to and for the use of the addressee only. If this 
message reaches anyone other than the intended recipient, we request the reader not to 
reproduce, copy, disseminate or in any manner distribute it. We further request such 
recipient to notify us immediately by return email and delete the original message. 
ICICI Bank Ltd. does not guarantee the security of any information transmitted 
electronically and is not liable for the proper, timely and complete transmission 
thereof. Before opening any attachments please check them for viruses and defects.



AUTO {ICICICARE#005-218-318}Using bean:write as a tag's value atrribute

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your 
mail and assure you of a response shortly.To help us serve you better, we would 
request you to kindly mention your account number or any reference number you may have 
in your future correspondence.  Kindly visit our website www.icicibank.com\nri to know 
more on our products and services.  With regards,Customer Care 
ICICI Bank Limited This communication being sent by ICICI Bank Ltd. is privileged and 
confidential, and is directed to and for the use of the addressee only. If this 
message reaches anyone other than the intended recipient, we request the reader not to 
reproduce, copy, disseminate or in any manner distribute it. We further request such 
recipient to notify us immediately by return email and delete the original message. 
ICICI Bank Ltd. does not guarantee the security of any information transmitted 
electronically and is not liable for the proper, timely and complete transmission 
thereof. Before opening any attachments please check them for viruses and defects.