I have designed one page using HTL . my page components contains one input text field and button. how i can pass my text field values in to java class.
Here is my HTL code .
<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.all @ categories='s7.s7dataset.style'}"/>
<div data-sly-use.s7dataset="com.dam.service.Info">
<header id="header" class="hoc clear">
<form class="search foundation-form granite-omnisearch-form">
<input class="searchTerm" placeholder="search scene7 ..." /> <input
class="searchButton" type="submit" />
</form>
</header>
Here is my java code:
-------------------
package com.dam.service
public class Info extends WCMUsePojo {
@Override
public void activate() throws Exception {
}
}
I am not sure that can i use WCMUsePojo or not . anybody help me to get value in to java .?