Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9126113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:57:45+00:00 2026-06-17T06:57:45+00:00

When changing languages from the language portlet, the user is redirected to the last

  • 0

When changing languages from the language portlet, the user is redirected to the last URL. If the URL corresponds to an actionRequest, that action is triggered a second time.

I tried with the following simple code, with the classic theme, in liferay 6.1 GA2

view.jsp:

<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:defineObjects />
<portlet:actionURL name="myProcessAction" var="myProcessActionURL" />
<a href="<%= myProcessActionURL %>">my process action</a>
<form action="<%= myProcessActionURL %>" method="post">
    <input type="submit" />
</form>

testportlet.java:

public class TestPortlet extends MVCPortlet {
    public void myProcessAction(ActionRequest actionRequest,
            ActionResponse actionResponse) throws IOException, PortletException {
        _log.info("processing action");
    }
    private static Log _log = LogFactoryUtil.getLog("TestPortlet");
}

I add my test portlet to a new page, as well as the language portlet.

Submit the form -> log shows “processing action”
switch languages -> log shows “processing action” again !

Best regards,
Alain

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:57:46+00:00Added an answer on June 17, 2026 at 6:57 am

    You can specify where the page is redirected by including a “redirect” parameter. For example:

    <input type="hidden" name="<portlet:namespace />redirect" value="/" />
    

    The MVCPortlet class will automatically see this parameter and redirect to it if the request is successful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that I'm porting from PHP/symfony to Ruby/Rails. Though the language
I'm changing a program from AWT to Swing, as proposed on the second chapter
We are changing from vs2003 to vs2005 and use vb as our primary language,
I need help in changing the language of joomla2.5.4 contents. I have installed german
Does anyone know why when changing the language on the iphone, the bluetooth message
changing a static resource during runtine is something that sounds not possible. I have
Changing a Linux C++ program which gives the user limited file access. Thus the
When changing the VCS for my project FakeItEasy from SVN to Mercurial on Google
After changing the import as a from-import i'm running into this error: from datetime
I have localizations for en and ru languages, and if user select any other

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.