You can customize the string that displays between the misc-path and the path-params components of URLs.
The sample
urlconfig.xml
file uses an underscore to separate the
misc-path from the path-params in URLs. For example:
http://localhost/urlformatter_jspref/controller/Wine-Red-Pinot-Noir/_/N-66w
You must create a URL configuration file before completing this procedure.
To change the path-param-separator string:
Locate the top-level URL formatter bean in your URL configuration file.
For example:
<bean id="seoUrlFormatter" class="com.endeca.soleng.urlformatter.seo.SeoUrlFormatter"> </bean>
Customize the value of the
pathSeparatorToken
property:For example:
<bean id="seoUrlFormatter" class="com.endeca.soleng.urlformatter.seo.SeoUrlFormatter"> <property name="pathSeparatorToken"> <value>separator</value> </property> </bean>
The new URL displays as:
http://localhost/urlformatter_jspref/controller/Wine-Red-Pinot-Noir/separator/N-66w