File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes EditAction not called on liferay Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "EditAction not called on liferay" Watch "EditAction not called on liferay" New topic
Author

EditAction not called on liferay

Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
Hello,

I have problem with my WAR portlet I'm developing on liferay with tomcat bundle.
I have a view.jsp which is:

The url it generates is:

In my struts-config.xml I have:

In tiles-defs.xml:

and finally portlet.xml:

More EditAction.java is defined as:

The problem is, that when click on the button, the url in the browser has struts_action "/portletto/edit", but the EditAction.render(...) is never called and the page edit.jsp is not being shown. Instead there is called ViewAction,render(...). There is no exception stack printed on the console.
Does anyone has idea, what can be done to make it work? I'm off.
I will be grateful for any help.
Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
Here is also my web.xml:


Any ideas?
Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
I had to change "struts_action" to "_spage" and "/portletto/edit" to "/portlet_action/portletto/edit" (also in struts-config.xml and .jsp) and now the portlet works fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EditAction not called on liferay
 
Similar Threads
portlet startup problem
"struts_action" param inside renderURL tag for liferay's MVCPortlet
Return ONLY the contnet of a portlet
repalces my #sign with %23 (HEX of #) in URL which i don't want
liferay portlet - form parameters missing from request