Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

JSP's setProperty

 
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the attributes for setProperty?
because some mock exam questions i've done having the different answer.

here is my knowledge but if i'm wrong pls correct me.
setProperty's attribute
-------------
name
property
value

-------------

anyone else wanna add more or disagree?
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As for my knowledge these are the three attributes for jsp:setProperty
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nicky,

That mock exam question should be wrong.

Regards,
Mahesh
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setProperty tag
This tag takes four attributes :
�� name : the bean name;
�� class : the bean type;
�� property : name of the bean property;
�� value : the value to give to the bean property;
�� param : name of a request parameter (param value is used to set property value).
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no class attribute in setProperty.
name attribute is representing the object of class which you define in jsp:useBean action.
 
Ranch Hand
Posts: 10192
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NDP,

Are you sure about this?? Do we have class?? I dont think so...What ranchers??
 
NDP Prasad
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Class should not be there.
 
Mahesh Desai
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:setProperty> has four attributes 1]name 2]property 3]param 4]value.
value and param attributes are never used together and are both optional. name and preperty attributes are mandatory.

Thanks,
Mahesh

--------------------
SCJP 1.4 | SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress
 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Mahesh Desai:
<jsp:setProperty> has four attributes 1]name 2]property 3]param 4]value.
value and param attributes are never used together and are both optional. name and preperty attributes are mandatory.

Thanks,
Mahesh

--------------------
SCJP 1.4 | SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress



thanks so much about the details. So there is a param in setProperty and it never used together with value.
I got it:
-------
name
property
value / param
-------

thanks for all giving me the info.
thanks for much.

tomorrow i will sit for the test.
wish me all the best.
 
Mahesh Desai
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Nicky,

Good Luck for the Exam!

Thanks,
Mahesh

--------------------
SCJP 1.4 | SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress
 
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic