掲示板

Get object from java request using AUI

7年前 に P G によって更新されました。

Get object from java request using AUI

New Member 投稿: 21 参加年月日: 17/02/15 最新の投稿
Good evening.

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?