Foros de discusión
Get object from java request using AUI
P G, modificado hace 7 años.
Get object from java request using AUI
New Member Mensajes: 21 Fecha de incorporación: 15/02/17 Mensajes recientes
Good evening.
I hooked a JSP and I implemented a custom struts action:
In the corresponding Struts action I have:
How can I set the oldParentPlid object to use it in my jsp in success statment?
I hooked a JSP and I implemented a custom struts action:
updateLayout: function(data) {
A.io.request(
themeDisplay.getPathMain() + '/layouts_admin/getParentPlid',
{
data:data,
dataType: 'JSON',
on: {
success: function(event, id, xhr)
// here I want to use my responseText object
{
In the corresponding Struts action I have:
@Override
public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {
long plid = ParamUtil.getLong(request, "plid");
Layout layout = LayoutLocalServiceUtil.fetchLayout(plid);
long oldParentPlid = layout.getParentPlid();
request.getSession().setAttribute("responseText", oldParentPlid);
return super.execute(request, response);
}
How can I set the oldParentPlid object to use it in my jsp in success statment?