Can you clarify what you're trying to do? Are you trying to execute some java code and then redirect to a new url? If so, then why not try this:
<map:action name="your_action" src="com.yourpackage.yourclass" /> ... <map:match pattern="your_pattern"> <map:act type="your_action"/> <map:redirect-to uri="your_url"/> </map:match> If all you were trying to do is execute some arbitrary java code before you do a redirect, then an XSP page is not the thing to use. An XSP page is a generator, which means that it will generate XML content that will eventually get serialized back to the browser in some format. So if you were just trying to execute some code, and not initiate some XML content then an XSP page is not the right choice. If I've misunderstood your message, though, please write back with some more details. DR At 09:44 AM 12/19/01 -0500, you wrote: >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]>