s:form tag action parameters being removed

穿精又带淫゛_ 提交于 2019-12-23 09:26:43

问题


I have searched and searched and this is destroying me. I have this:

<s:form method="post" action="%{methodOne}" cssClass="buttons">

The emailFormUrl returns the URL correctly but the parameters have been stripped.

  public String methodOne() {
    return anotherClass.methodTwo(id);
  }

Which speaks of:

  public static String methodTwo(
      String id) {
    return fastEncode("", "longurl/view.jsp",
        new ParameterPairing("id", id));
  }

For some reason, the id is being stripped, this leaves me with a validation error and doesn't complete the action that I require. As I am aware we did not have a problem with it before the July urgent security update but it is small functionality that is rarely used (an argument for its removal I guess).

I don't want to add a hidden parameter as I want to understand the reason that this is not working, not a workaround (I am still in the heavy learning part of my career).

来源:https://stackoverflow.com/questions/21478791/sform-tag-action-parameters-being-removed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!