hi,
to my knowledge you have access in an xsp page to a response object.
this response object has a method setHeader(String name, String value)
you can use this method to send a Location header with the redirect url.
i think this will provide you with the needed behaviour.
HTH,
wouter
I am using netscape 4.7 to view. When I use the serialize as xml
the I get the option to download the file which is what i dont want
i want the xsp page to execute and redirect me to an html page based on
some conditional statements in the file.
//| Dwayne A. Kemp |
| [EMAIL PROTECTED] if the gospel be hid it is hid |
//| 732 932 3938// to those that are lost |
| Programmer /// |
___|
On Wed, 19 Dec 2001, Martijn Bouterse wrote:
Dwayne Kemp wrote:
I need to execute an xsp page without a stylesheet. this file is used for
redirecting the client to a particular page
i tried
map:match pattern=valid.xml
map:generate type=serverpages src=valid.xsp/
map:serialize src=xml/
/map:match
and
map:match pattern=valid.xml
map:generate type=serverpages src=valid.xsp/
map:serialize type=xml/
/map:match
and the browser throws document contained no data.
how do i tell cocoon to process this file without the stylesheet?
What browser do you use? With serializer type=xml the output from
Cocoon has mime-type text/xml. Different webbrowsers react differently
to such pages.
Further, to my knowledge there is no special serializer for XHTML, you
can use the HTML serializer or the XML serializer or write your own
serializer :-). Also if you feel changes to your sitemap are ignored, it
may be nessecary to restart your servlet engine (for example Tomcat) to
reload the sitemap.
Greetz
Martijn Bouterse
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]