wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Run Time Expression as attribute value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Run Time Expression as attribute value" Watch "Run Time Expression as attribute value" New topic
Author

Run Time Expression as attribute value

Nidhi Sar
Ranch Hand

Joined: Oct 19, 2009
Posts: 252

Hi all,

If we use a run time expression (e.g. an EL) as value of an attribute, do we still put double quotes around it?

So which of the following is correct?

Syntax A:

Syntax B:


Thanks,
Nidhi


"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

Since, this standard action's value accepts request time attribute expression, you can use it (The quote is optional in this case).


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
 
GeeCON Prague 2014
 
subject: Run Time Expression as attribute value