Lenz, Evan dijo: > I need to test for the presence of a particular request parameter. In > particular, I want to write my sitemap such that the following URLs will > behave as described: > > /search -> loads the search page > /search?q=blah -> displays search results > /search?q= -> empty results, or the search page itself (don't care) > > I know how to use the request-parameter selector (which tests for > particular parameter *values*), but I don't know how to test for the > *presence* of a particular parameter (or to test for a non-empty value). > Can > request-parameter do this, or do I need to use something else? Look for the request matcher: matches a request parameters given as a pattern. If the parameter exists, its value is available for later substitution.
Antonio Gallardo > > Thanks, > Evan > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>