File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp:getProperty Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "jsp:getProperty" Watch "jsp:getProperty" New topic
Author

jsp:getProperty

Selva Prasad Rajendran
Ranch Hand

Joined: Sep 07, 2004
Posts: 38
Hi ranchers

Do all these following 3 options mean the same of different.

1. <jsp:getProperty property="streetName" name="id"></jsp:getProperty>

2. <jsp:getProperty name="id" property="streetName"/>

3. <jsp:getProperty property="streetName" name="id"/>

Is that neccessary that jsp:getProperty should be a self closing tag.


-Selva
scjp 1.4
Daniel Rhoades
Ranch Hand

Joined: Jun 30, 2004
Posts: 186
getProperty must be a legal XML tag (i.e. it must be an empty tag - I think you called it self-closing, or it must have a closing tag) the order of the attributes doesn't matter.

BTW: You can also get these properties using EL:

${id.streetName}


Drinking more tea is the key...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp:getProperty