<@hst.actionURL var="actionLink"/>
<
form
action
=
"${actionLink}"
method
=
"post"
>
<!-- form fields here -->
</
form
>
Component-1.java
public void doAction(..){
..
FormMap map =
new
FormMap(request,
new
String[]{
"inputFieldName"
});
FormUtils.persistFormMap(request, response, map,
null
);
..
}
public void doBeforeRender(..){
..
FormMap map =
new
FormMap();
FormUtils.populate(request, map);
..
}
Component-2.java
public void doAction(..) {
..
try { HstLinkCreator linkCreator = request.getRequestContext().getHstLinkCreator(); HstLink link = linkCreator.createByRefId("myRefId", request.getRequestContext().getResolvedMount().getMount()); String location = link.toUrlForm(request.getRequestContext(), false); FormMap map = new FormMap(request, new String[]{"myData"}); FormUtils.persistFormMap(request, response, map, null); response.sendRedirect(location); } catch (IOException ex) { LOG.error("Error"); }}
Thanks for your attentionGiacomo
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
myParamtersMap.add(FormUtils.DEFAULT_UUID_NAME, ((HstResponseImpl) response).getRenderParameters().get(FormUtils.DEFAULT_UUID_NAME))
public void doBeforeRender(..){
FormMap map = new FormMap();
FormUtils.populate(request.getRequestContext().getServletRequest(), map);