留言板
portletURL params and onsubmit role
asile elisa,修改在14 年前。
portletURL params and onsubmit role
Regular Member 帖子: 126 加入日期: 10-2-17 最近的帖子
hi
can any one help me with this please:
I am tring to understand the code in the folowing file:
portal/portal-web/docroot/html/portlet/entreprise_admin/view.jsp
PortletURL portletURL=renderResponse.createRenderURL() ;
portletURL.setParameter("struts_action", "/enterprise_admin/view");
I did not understand what is this parameter called struts_action
<form action="<%= portletURL.toString() %>" method="post" name="<portlet:namespace />fm" onSubmit="submitForm(this); return false;">
what I know is onsubmit call a funtion before submitting the form but here I did not understand what is its role
thank you so much
can any one help me with this please:
I am tring to understand the code in the folowing file:
portal/portal-web/docroot/html/portlet/entreprise_admin/view.jsp
PortletURL portletURL=renderResponse.createRenderURL() ;
portletURL.setParameter("struts_action", "/enterprise_admin/view");
I did not understand what is this parameter called struts_action
<form action="<%= portletURL.toString() %>" method="post" name="<portlet:namespace />fm" onSubmit="submitForm(this); return false;">
what I know is onsubmit call a funtion before submitting the form but here I did not understand what is its role
thank you so much
zahid khan,修改在14 年前。
RE: portletURL params and onsubmit role
Regular Member 帖子: 116 加入日期: 08-7-30 最近的帖子
Hi there,
this parameter is for telling that the struts path for the action class to be called(or the control to be passed) will be "/enterprise_admin/view" this value mapped in the struts-config file and mapped action class will be called or handed the control over.
and then depending upon the other parameters what ever is required to be done will happen in this action class and will be forwarded where ever it is mentioned in the class.
Advise you to go through struts flow.
HTH
Zahid khan.
PortletURL portletURL=renderResponse.createRenderURL() ;
portletURL.setParameter("struts_action", "/enterprise_admin/view");
I did not understand what is this parameter called struts_action
this parameter is for telling that the struts path for the action class to be called(or the control to be passed) will be "/enterprise_admin/view" this value mapped in the struts-config file and mapped action class will be called or handed the control over.
and then depending upon the other parameters what ever is required to be done will happen in this action class and will be forwarded where ever it is mentioned in the class.
Advise you to go through struts flow.
HTH
Zahid khan.
asile elisa,修改在14 年前。
RE: portletURL params and onsubmit role
Regular Member 帖子: 126 加入日期: 10-2-17 最近的帖子
thank you
if there is a good documentation about struts flow I will be thankful .
if there is a good documentation about struts flow I will be thankful .