Hi All
I need to read a PDF file using read src.
The below match patter works fine.
<map:match pattern="**/showpdf-*.pdf">
<map:read src="{2}.pdf" mime-type="application/pdf" />
</map:match>
Now i need to validate some session param before displaying the PDF and
according to the result i need to display PDF. Below is the modified
pipeline
<map:match pattern="**/showpdf-*.pdf">
<map:act type="validate">
<map:select type="parameter">
<map:parameter name="parameter-selector-test" value="{check}"/>
<map:when test="success">
<map:read src="{2}.pdf" mime-type="application/pdf" />
</map:when>
<map:otherwise>
<map:generate src="test.xml"/>
<map:transform src="test.xsl"/>
<map:serialize type="xml"/>
</map:otherwise>
</map:select>
</map:act>
</map:match>
But in the above example i am not getting the {2} param which is the
name of the PDF.
Please suggest if this is not the right way to do this.
TIA
Regards
Gaurav
--
Gaurav
Web Development
Techblue Softwares& Technology Blueprint Ltd
T : 08450047142 Extn: 5102
E : [email protected]
W : www.techblue.co.in
www.technologyblueprint.co.uk
Confidentiality Notice
The contents of this email are confidential and may be privileged, and
are intended only for the use of the person or company named herein. Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Techblue software or Technology Blueprint
Limited.
If you are not the intended recipient of this email or a person
responsible for delivering it to the intended recipient, you are hereby
notified that any distribution, copying or dissemination of the
information herein is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]