set rt and veridation

This commit is contained in:
Shinsuke Sugaya 2015-11-12 21:52:40 +09:00
parent f6425c8e57
commit 59a271ba7f
3 changed files with 9 additions and 0 deletions

View file

@ -64,6 +64,7 @@ public class GoAction extends FessSearchAction {
@Execute
public ActionResponse index(final GoForm form) throws IOException {
searchAvailable();
validate(form, messages -> {}, () -> asHtml(path_ErrorJsp));
Map<String, Object> doc = null;
try {

View file

@ -25,10 +25,12 @@ public class GoForm {
public String docId;
@Size(max = 10000)
@Required
public String rt;
public String hash;
@Required
public String queryId;
public Integer order;

View file

@ -370,5 +370,11 @@ public class SearchAction extends FessSearchAction {
data.register("searchQuery", searchQuery);
super.setSearchQuery(searchQuery);
}
@Override
public void setRequestedTime(long requestedTime) {
data.register("requestedTime", requestedTime);
super.setRequestedTime(requestedTime);
}
}
}