When I access the page as stated above I'm getting redirected to http://mypage.com/sg and it also gives me 404 - Not Found.
Answer :
If you want to call another action as result of one action then you need to mention attribute type
of result
tag
<action name="">
<result type="redirect">/sg</result>
</action>
This will redirect to action sg
.
The redirect result type:
The redirect result type calls the standard response.sendRedirect()
method, causing the browser to create a new request to the given location.