• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

processAction not called

 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using the book 'Building Portals with the Java Portlet API'.

I am running chapter 2's AdvancedPortlet.

The processAction is not called.

Is the any reason why it is not called? I am running the code as is provided by the book.

In edit mode, input is accepted, which will change the title and content of the view mode. But the processAction, which updates the title and content is not getting called.

I am using Tomcat 5.5 and Open Portal Portlet Container.
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After further investigation, I noticed that, the 2 inputs from the form are not being passed to the server.

I got the url generated and appended '&title=myNewTitle&contents=myNewContents' and connected to this url on the browser, and the processAction was called and processed correctly.
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jesus Angeles:
After further investigation, I noticed that, the 2 inputs from the form are not being passed to the server.

I got the url generated and appended '&title=myNewTitle&contents=myNewContents' and connected to this url on the browser, and the processAction was called and processed correctly.


I solved it. The cause of the form parameters not being passed to the server is the missing ' method="post"'.

Method 'get' doesnt work on it.

The book's codes didnt put a method. It is probably due to a problem in my browser or server, or the code simply should have the post method.
[ December 13, 2008: Message edited by: Jesus Angeles ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic