Jsp setProperty

Advertisements

JSP usebean JSP getpriority

Jsp setProperty

This action tag is to set an input value to set input value to a property on a variable of bean class by calling setter () method of the property.

When use JSP setPriority tag

When a request comes from browser, the protocol is http and it is unknown for the java bean. So, directly input values from browser can't be send to a java bean.

The flow of setting input values is, a jsp page takes request from browser and it will set input values to bean using tag.

<jsp:setProperty> must be used inside <jsp:useBean> tag.

<jsp:setProperty> property contains four attributes, they are;

Name and property attributes are mandatory. We shouldn't use param and value attribute at time.

If request parameters names and variable name of java beans or matched then we can directly write <protperty="*">.

AttributeDescription
NameObject name: The values of this attribute must be same as the value of id of the bean class
Propertyvariable name in bean class
Paramrequest parameter name
Valuestatic value
Name, property,valueallowed
Name ,property, paramallowed
Property, paramnot allowed
Name, property,name, paramnot allowed.

JSP usebean JSP getpriority

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements