1) go to the submission form and save the html on my desktop 2) open up the html file and type in <input type="text" name="cocoon-view" value="debug1">
That way, I don't have to change anything in my cocoon app itself. I'll add this to the DebuggingWithViews page
I-Lin Kuo, Ann Arbor, MI Macromedia Certified ColdFusion 5.0 Advanced Developer Sun Certified Java 2 Programmer Ann Arbor Java Users Group (http://www.aajug.org)
----Original Message Follows---- From: "Conal Tuohy" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: RE: XML file Date: Thu, 12 Jun 2003 15:10:55 +1200
I didn't realise you were debugging the result of a form. To select a view, you have to pass the view name in the URL, e.g.
http://localhost/login?cocoon-view=debug-view
This is not straightforward with a form. You could add a field called "cocoon-view" to your form, and put "debug-view" in there (assuming your view is called "debug-view".
Or perhaps you could just comment out the later steps in the pipeline and serialize the results of the login form as XML?
e.g.
<map:match pattern="login"> <map:generate type="serverpages" src="xsp/login.xsp" label="debug1"/> <!-- <map:transform type="xslt" src="style/dialog.xsl" label="debug2"> <map:parameter name="css-stylesheet" value="global.css"/> </map:transform> <map:serialize type="html"/> --> <map:serialize type="xml"/> </map:match>
Hope that helps
Con
> -----Original Message----- > From: Tim Bachta [mailto:[EMAIL PROTECTED] > Sent: Thursday, 12 June 2003 2:55 p.m. > To: [EMAIL PROTECTED] > Subject: RE: XML file > > > <map:match pattern="login"> > <map:generate type="serverpages" src="xsp/login.xsp" > label="debug1"/> > <map:transform type="xslt" src="style/dialog.xsl" label="debug2"> > <map:parameter name="css-stylesheet" value="global.css"/> > </map:transform> > <map:serialize type="html"/> > </map:match> > > the view element looks just like the site. I am getting an xml page > back but it is not the same as what I would see. What is happening is > that I have a login form that submits to this page. In this > page I run > a query to validate login. In the xml that I get back I am seeing > invalid login but in the actual html that is produced the login is > validated. That is why I am saying the xml does not match up. > > Tim Bachta
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]