This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "jsp:setProperty + param attribute" Watch "jsp:setProperty + param attribute" New topic
Author

jsp:setProperty + param attribute

Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
hi..

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: 950
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 "*"

Thanks


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
Hi,

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: http://aspose.com/file-tools
 
subject: jsp:setProperty + param attribute
 
Similar Threads
params in jsp:setProperty in .tag file won't accept el
JSP
how to set the <bean:message key="abc.xyz" /> into jsp:setProperty parameter
jsp:getProperty gives null
jsp:include