File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:setProperty + param attribute

 
Steven Colley
Ranch Hand
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mahendar Reddy
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya u r right.
Both r incorrect.
 
shweta bulbule
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes they are incorrect, param is not used with setproperty.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Steven Colley
Ranch Hand
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic