• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EditAction not called on liferay

 
Mateusz Moroz
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is also my web.xml:


Any ideas?
 
Mateusz Moroz
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic