aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSTL Question -Marcus Green 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 "JSTL Question -Marcus Green" Watch "JSTL Question -Marcus Green" New topic
Author

JSTL Question -Marcus Green

deepa raj
Ranch Hand

Joined: Jul 25, 2008
Posts: 124



will the below code is correct to print the "marcus" as ouput?
Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

I think, It should..!


Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
yes it is correct


SCJP 5 |SCWCD 5| Started thinking about Web Services ?
deepa raj
Ranch Hand

Joined: Jul 25, 2008
Posts: 124
target value should be bean Object or Map object right ?
Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

yeah, you can see that employee is a bean object
deepa raj
Ranch Hand

Joined: Jul 25, 2008
Posts: 124
hi sunny,

in HFSJ 2nd edition , Chapter 9 -page no 456 says , "Don�t put the �id� name of the attribute here! "

can you please explain this.
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
deepa raj, what happened when you compiled the code?


SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
Milind Patil
Greenhorn

Joined: Oct 19, 2003
Posts: 26
I tried this code, it prints "marcus" as ouput.

About in HFSJ 2nd edition, Chapter 9 -page no 456 says , "Don�t put the �id� name of the attribute here! "

This means that don't use "id" name as a target directly. Instead use "id" name in a EL expression.
Use like this:
<c:set target="${employee}" property="firstName" value="marcus"/>

Don't Use like this:
<c:set target="employee" property="firstName" value="marcus"/>
This will throw ServletException...


[ August 21, 2008: Message edited by: Milind Patil ]
[ August 21, 2008: Message edited by: Milind Patil ]

Milind B. Patil - SCJP-1.4, SCWCD-5.0, SCBCD-5.0
deepa raj
Ranch Hand

Joined: Jul 25, 2008
Posts: 124
Got it :-)
Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL Question -Marcus Green