Solr import URLs

Full-import http://<host>:<port>/solr/dataimport?command=full-import Delta-import http://<host>:<port>/solr/dataimport?command=delta-import status http://<host>:<port>/solr/dataimport reload-config http://<host>:<port>/solr/dataimport?command=reload-config abort http://<host>:<port>/solr/dataimport?command=abort  

Hibernate get distinct list with Criteria

The only way I could figure out to get the distinct list using Hibernate Criteria is by using ResultTransformer function. eg. List result = session.createCriteria(Order.class)         .setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY)         ——-         .list(); The con is it fetches all the objects and then filters it. Continue reading Hibernate get distinct list with Criteria

java replaceAll error

public String replaceAll(String regex, String replacement) This method works fine if replacement string does not contain ‘$’ or ‘/’ characters.If replacement string contains these characters, the results can be in-accurate. Fix: Use Matcher.quoteReplacement(replacement) public String replaceAll(String regex,         Matcher.quoteReplacement(replacement))

ActionForm – Reset multiple list <html:select multiple=”true”>

Struts uses ActionForm to both populate a HTML form, and then to capture the parameters when a form is submitted. When a request is submitted, the ActionServlet matches the URI for the request against the path of an action-mapping. If Continue reading ActionForm – Reset multiple list <html:select multiple=”true”>