I have defined a jsp in which the following code is there:-
<portlet:actionURL name="checkOtp" var="otpDemo"></portlet:actionURL>
<form method="post" action="<%= otpDemo %>">
Enter otp:
<input type="text" name="otpText"/>
<input type="submit" value="Submit" />
</form>
When I submit the form I am getting Error as : Render response is null because this tag is not being called within the context of a portlet
How to get rid of this error.Please help..Thanx in advance.
As, I assume that you are passing RenderRequest
and RenderResponse
objects to that action method, while these objects should be of ActionRequest
and ActionResponse
type.
If yes, for given <portlet:actionURL name="checkOtp" var="otpDemo"></portlet:actionURL>
, your actionListener
method in portlet's action class will be:
public void checkOtp(ActionRequest actionRequest, ActionResponse actionResponse)
throws IOException, PortletException {
// your logic goes here
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.