Details
Description
Hi,
I needed to change the action url of a form object but currnetly it's not supported by Form class.
What i need is something like this
Form form = new Form();
form.setAction("some_different_action"); //new method requested.
.....
in the Form.java class the getActionURL() method would be modified as follows
public String getActionURL()
{ HttpServletRequest request = getContext().getRequest(); HttpServletResponse response = getContext().getResponse(); // use action property if specified by the user, otherwise use default request URI String actionStr = action; //action is a new property added to Form class if (action == null) actionStr = request.getRequestURI(); return response.encodeURL(actionStr); }regards,
ERdem Gunay