Michael,
Sorry its not something thats an issue for me at the moment and so its not high on my priorities to spend time giving some thought to.
Niall
Niall,
I have come to think that this is not important enough to do, since I have found the following simple solution, which I am sure can be improved with time:
public final class ButtonCommand { private ButtonCommand() { } public final static String getCommand(HttpServletRequest request) { Enumeration enum = request.getParameterNames(); String parameterName = null; while(enum.hasMoreElements()) { parameterName = (String)enum.nextElement(); if(parameterName.endsWith(".x")) { return parameterName.substring(0,parameterName.indexOf('.')); } } return parameterName; } } I can just pop this into the model where needed and call it a day.
Michael