cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conal Tuohy" <con...@paradise.net.nz>
Subject RE: basic form tutorial
Date Sat, 16 Aug 2003 01:33:12 GMT
Ben, you can pass the form values to your XSLT something like this:

<map:transform src="song-list-to-html.xsl">
	<map:parameter 
		name="artist" 
		value="{request-param:artist}"/>
	<map:parameter 
		name="title" 
		value="{request-param:title}"/>
	<map:parameter 
		name="style" 
		value="{request-param:style}"/>
</map:transform>

Check out the RequestParameterModule:
http://wiki.cocoondev.org/Wiki.jsp?page=RequestParameterModule

Cheers

Con

> -----Original Message-----
> From: Ben Munat [mailto:bent@munat.com]
> Sent: Saturday, 16 August 2003 12:48
> To: users@cocoon.apache.org
> Subject: basic form tutorial
> 
> 
> Hello. I'm very new to Cocoon and certainly no xml/programming/web 
> wizard. I have an html page created by an xlst and served by 
> cocoon. The 
> source xml file is a list of songs; the xslt converts the 
> songlist into 
> a table and puts it on a page below a basic header/navbar and 
> a box with 
> some form inputs ("artist" and "title" text boxes and a "style" 
> dropdown) for searching. Now the trick is to get cocoon to reload the 
> page -- after I've entered something in these widgets and 
> clicked submit 
> -- and only display the entries from the songlist that match 
> this criteria.
> 
> I've poked around the wiki and the docs and searched the mailing list 
> and, well, I'm more confused than ever. Often the material is over my 
> head, and oriented-towards doing something fancier than I need; form 
> validation, database interaction and the like.
> 
> All I want to do is get the values of three post variables 
> and fill the 
> table of song data accordingly. Do I turn my xml file into an xsp and 
> put java code in to interpret the post vars? Do I use some other 
> component for this (an action... or this woody thing I keep hearing 
> about)? Is there a tutorial out there that I've missed that has very 
> basic instructions on using form vars?
> 
> Thanks,
> 
> Ben
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message