Hello

Hello

LOVELY PROFESSIONAL UNIVERSITY


HOME WORK – I
DOA: 9/7/2012 DOS: 9/17/2012






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




  Assignment



COURSE- Modern Web Programming Tools and Techniques-I



COURSE CODE- CAP618T







SUBMITTED BY:             SUBMITTED TO:

Anil Kumar                           MANDEEP KAUR

Roll-A11

Reg. - 11009839

Sec- D1R05



Q:1 Take a JavaBean Object named “Profession” with properties domain and expertise. Show the use of all 4 scope types on this object.

Ans:

Profession.jsp file

package   pk;

public class profession

{

  int domain;

int   expertise;

public int getdomain()

{

return domain;

}

public void setdomain(int a)

{

this.domain=a;

}

public int getexpertise()

{

return expertise;

}

public void setexpertise(int b)

{

this.expertise=b;

}

}



  1) Index.jsp file(for session Object)

























  2) Index.jsp file(for Page Object)

























  3) Index.jsp file(for Request Object)

























  4) Index.jsp file(for Application Object)





























Q:2 Discuss and Demonstrate the use of all page directive attributes. Give minimum 2 separate types of examples for each attribute, to make it clear that how that attribute is effecting output.

Ans:

Page directive attributes are:

|Attribute                                         |Purpose                                                                                   |
|buffer="none|size in kb"                           |This attribute determines whether the output stream is buffered. The default value is 8KB.|
|autoFlush="true|false"                             |This attribute determines...

View Full Essay