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

  • Home
  • SEARCH
  • 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 7926479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:47:14+00:00 2026-06-03T18:47:14+00:00

<% if(my_value==true){ //redirect to page second.jsp } %> How do this? please help me

  • 0
<%
if(my_value==true){
//redirect to page second.jsp
}
%>

How do this? please help me in this questions

  • 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-03T18:47:15+00:00Added an answer on June 3, 2026 at 6:47 pm

    The redirection inside of jsp isn’t realy expedient idea, because jsp-parsing below to render phase and this phase is concepted to show the content.

    On the other hand redirection below to action phase, here you can decide what the portlet should do at next.

    Read this tutorial for better understanding the two-phase of portlet:
    http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/understanding-the-two-phases-of-portlet-execution

    Hence, put redirection in portlet processAction methode:

    @Override
    public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, PortletException {
        //defaultLandingPage = ...
        actionResponse.sendRedirect(defaultLandingPage);
    };
    

    Else, if you realy want to do this inside of jsp, you can include second jsp in the first jsp:

    <liferay-util:include page="second.jsp" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does this make sense? MyValue can be true or false Should it not be
I have a table like this. Columns --> (MUSTERI, AVUKAT, HESAP (Unique)) My page
I have a basic .ASP page like this, which when hit redirects the user
I want redirect my getJSON response to another html page below is the code
In my application, I'm trying to redirect to another page after a record is
When I load my page I'm getting this error: Fatal error: Can't use function
I have a small script that shall redirect to another page when return is
The code goes something like this: protected bool IsOKToSend() { bool IsOK = true;
I have a dropdownlist like this <asp:dropdownlist runat=server autopostback=true onselecteditemindexchanged=fire_event ID=DDL/> and on codebehind
I am trying to redirect the user to a different page upon clicking on

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.