This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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%|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Run Time Expression as attribute value
 
Similar Threads
SCWCD prep Doubt
<jsp:useBean> example
jsp:setProperty
Java Bean
doubt in Session parameters