Portlet Action URL through JavaScript

Anonymous, modified 18 Years ago. Post: 1
Is there ny way to call portletAction through javascript.

I am writing following code line in my java script file but I am getting error on this line..

document.frm.action="<portlet:actionurl windowstate="<%= WindowState.NORMAL.toString() %>"><portlet:param name="struts_action" value="/g1mp/content_jsp/nodeDetails" /></portlet:actionurl>"


can ny one help ?
thumbnail
28386, modified 18 Years ago. Expert Posts: 310 Join Date: 3/25/07 Recent Posts
You are confusing JavaScript (.js) and Java Server Pages (.jsp)

You can't use .jsp tags such as &lt;portlet:actionURL&gt; in .js files, they are not processed by the JSP compiler, just sent straight to the client.
29026, modified 18 Years ago. Junior Member Posts: 27 Join Date: 3/30/07 Recent Posts
hai Anonymous

what do you want
you need to call action class using script or some thing else
i thing you are asking what i am saying
reply me if my guess is right

karthik.k