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 tag files and c:set 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 "tag files and c:set" Watch "tag files and c:set" New topic
Author

tag files and c:set

Pawanpreet Singh
Ranch Hand

Joined: Jun 12, 2005
Posts: 264

Hi

I have used following code

<c:set var="NewPageAttribute" value="" scope="request"/>

<tagfilesTags:Header title="${NewPageAttribute}"/>

Header.tag is a tag file.

if i want to set title as page/request/session or application scope as done by c:set. How can it be detected by tagfilesTags:Header tag. It is getting value for NewPageAttribute, no matter in which scope it is. Is it using findAttribute for this.
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
I had a look at the specs..
Satou...we need help man... !


SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Mark Garland
Ranch Hand

Joined: Nov 11, 2006
Posts: 226

It is getting value for NewPageAttribute, no matter in which scope it is. Is it using findAttribute for this.


I think ${NewPageAttribute} makes use of findAttribute under the scenes.


28/06/06 - SCJP - 69%, 05/06/07 - SCWCD - 92%, 28/02/08 - IBM DB2 v9 Fundamentals (Exam 730) - 87%, 18/11/08 - IBM DB2 v9 DBA (Exam 731) - 89%, 26/02/11 - SCBCD - 88%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tag files and c:set