File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp:setProperty + param attribute 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 "jsp:setProperty + param attribute" Watch "jsp:setProperty + param attribute" New topic

jsp:setProperty + param attribute

Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290

are these declarations deemed valid? ( i don�t think so...)

A - <jsp:setProperty name="myBean" param="*" />
B - <jsp:setProperty name="myBean" property="name" param="*" />

A - FALSE, because property attribute is aloso MANDATORY.
B - wildcard + param issue is not applied to jsp:setProperty standart action.

is that correct?

Tks a lot.

SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
Mahendar Reddy
Ranch Hand

Joined: Sep 27, 2005
Posts: 73
Ya u r right.
Both r incorrect.

SCJP- 98%<br />SCWCD-92%
shweta bulbule
Ranch Hand

Joined: Mar 24, 2006
Posts: 30
yes they are incorrect, param is not used with setproperty.

Thanks,<br />Shweta
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 951
Hi sweta,

param is used with setProperty. It is a valid attribute to setProperty, but you can not used it with wild-card. You can only use property attributes with value "*"


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290

Narendra is right.

Other errors:
- param="*" - error
- param="x" value="y" - error

And, anotther thing regarding <jsp:setProperty>, we cannot omit the "property" attribute since it�s required as well as "name" attribute.

Tks for all
I agree. Here's the link:
subject: jsp:setProperty + param attribute
It's not a secret anymore!