File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes standard action 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 "standard action" Watch "standard action" New topic

standard action

Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 361
hi folks,
i checked the following code and it works

code :

<jsp:include page="sample.txt"/>

but according to HFSJ page 402, the <jsp:include> standard action include the response of included file at runtime, but while including the sample.txt there is no response generated since it is a simple txt file.

pls explain the contradiction.

thanks in advance

SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

By response they mean the container's translation of the file included.
Not a response in the sense of HttpResponse.

[My Blog]
All roads lead to JavaRanch
Connie Ky Leung
Ranch Hand

Joined: Jan 29, 2006
Posts: 42
<jsp:include> standard action can be used to include static content and dynamic content.

The content of the text file is evaluated before being written to the response.

SCJP 1.4 - 91%, SCWCD - 97%, SCJP 5.0 - 83%, SCJP 6.0, OCEJWCD - 80%
I agree. Here's the link:
subject: standard action
It's not a secret anymore!