cancel
Showing results for 
Search instead for 
Did you mean: 

mapping search.html ...

giluka
Champ in-the-making
Champ in-the-making
Hi all,
i have a problem in my web quick start application: in search form how i map file /search.html  ??

my search form:

<div id="searchSection">
   <form action="${url.context}/search.html" method="get">
      <input type="hidden" value="${sectionId}" name="sectionId" />
      <fieldset>
         <label for="find">find</label>
         <input type="text" value="<#if phrase??>${phrase?html}<#else>${msg('search.box.search')?html}</#if>" name="phrase" id="search-phrase" maxlength="100"/><input type="image" id="searchSubmit" src="${url.context}/images/search_icon.png" />
      </fieldset>
   </form>
</div>

in wcmws-webapp-context.html i've found definition of search form controller

 <!– Search form controller –>    
    <bean id="searchFormController" class="org.alfresco.wcm.client.controller.SearchFormController">
        <property name="assetFactory" ref="assetFactory" />
        <property name="sectionFactory" ref="sectionFactory"/>
    </bean>

but mapping to this controller ???

thanks!
2 REPLIES 2

bremmington
Champ on-the-rise
Champ on-the-rise
The SearchFormController is an example of an annotation-mapped controller. Its mapping is defined by annotation on the class itself:

@Controller
@RequestMapping("/**/search.html")
public class SearchFormController
{….

giluka
Champ in-the-making
Champ in-the-making
ok, thanks!