Geir, the parameters could be easily deduced from a quick inspection of the source code. I did it one and decided to use the following code to isolate displaytag parameters:
import
java.util.HashMap;import
java.util.Iterator;import
java.util.Map;import
java.util.regex.Pattern;import
org.apache.commons.lang.StringUtils;import
org.apache.commons.logging.Log;import
org.apache.commons.logging.LogFactory;
public
final class SupportoDisplayTag{
private static final Log LOG = LogFactory.getLog(SupportoDisplayTag.class); private static final Pattern PATTERN_PAR_DISPLAYTAG = Pattern.compile("^d-\\d+-"); public static final Map estrarreParametriDisplayTag(Map parametri){
HashMap risultato =
null; if (parametri != null && !parametri.isEmpty()){
for (Iterator i = parametri.entrySet().iterator(); i.hasNext(); ){
Map.Entry me = (Map.Entry) i.next();
String nome = (String) me.getKey();
if (StringUtils.isNotEmpty(nome) && PATTERN_PAR_DISPLAYTAG.matcher(nome).find()){
if (risultato == null)risultato =
new HashMap();risultato.put(nome, me.getValue());
if (LOG.isDebugEnabled())LOG.debug(
"Aggiunto parametro displayTag - " + me);}
}
}
return risultato;}
}
**********************************************************
To: <[EMAIL PROTECTED]>
From: Geir Harris Hedemark <[EMAIL PROTECTED]>
Date: 11 Jan 2004 13:41:21 +0100
Subject: [displaytag-user] Request parameters used by displaytag?
Reply-To: [EMAIL PROTECTED]
I couldn't find a list of the request parameters (e.g. "?d-8641-p=23")
used by displaytag to accomplish things in the documentation.
I have a table inside a form. The form submits to an "execute" action
in struts, which then redirects to the "display" action used by
displaytag.
To get pagination and other stuff working, I need to be able to
recognize the parameters used by displaytag in some way and forward
this information from the execution action to the display action.
This information would also be nice to have so I can avoid clobbering
pieces of the parameter namespace that may be used by displaytag.
Could someone please help, perhaps by posting a list of the parameters
or giving me a link to the piece of the documentation I haven't seen?
Geir
Pursuant to Legislative Decree No. 196/2003, you are hereby informed that this message contains confidential information intended only for the use of the addressee. If you are not the addressee, and have received this message by mistake, please delete it and immediately notify us. You may not copy or disseminate this message to anyone. Thank you.

