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 9060137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:08:50+00:00 2026-06-16T15:08:50+00:00

I have downloaded the liferay 6 with tomcat bundle and installed it.I am getting

  • 0

I have downloaded the liferay 6 with tomcat bundle and installed it.I am getting redirected to Liferay login page when i hit the default liferay url. But my requirement is

1)I should redirect to the login page of my own when clicks on the sigin button.
2)After clicking on submit button of login page , the user will get authenicated against "Login" table created by me.
3)After authentication the user will redirect to Liferay landing page.

Please share some sample code if available for this kind of requirement.It is very urgent to me.If this is not the correct place to place the liferay related question please give me the link to post my problems.Thank You.

Hi Vikas here i am editing the question according to your answaer.

I have created a hook with below steps.

1)In Eclipse IDE File – New – Project – LiferayProject – clicks on Next button then Given the project name and then selected the checkbox for hook and clicks on finish button.

2)In liferay-hook.xml i have added /WEB-INF/jsps

3)I have created the following directory structure.
login-hook/docroot/WEB-INF/jsps/html/portlet/login/login.jsp

4)In login.jsp i have placed the code of liferay-portal6.1/tomcat-7.0.27/webapps/ROOT/html/portlet/login/login.jsp file.

When i do like this it is showing so many red marks in my jsp file like HtmlUtil can not be resoled.Like this it is showing so many errors.Am i doing anything wrong here.Please let me know the problem.I am very new to liferay.Thank You.

Hi Vikas.This is the code i am using in my login.jsp.

<HTML>
    <HEAD>
        <TITLE>Login using jsp</TITLE>
    </HEAD>
    <BODY>
        <H1>LOGIN FORM</H1>
            <form>
                <table>
                    <tr>
                        <td> Username  : </td><td> <input name="username" size=15 type="text" /> </td> 
                    </tr>
                    <tr>
                        <td> Password  : </td><td> <input name="password" size=15 type="text" /> </td> 
                    </tr>
                </table>
                <input type="submit" value="login" />
            </form>
    </BODY>
</HTML> 
  • 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-16T15:08:52+00:00Added an answer on June 16, 2026 at 3:08 pm

    1. Create a hook for overriding default login page of Liferay

    2. The portal can authenticate users based on their email address, screen name, or user id.
    This is set in portal-ext.properties

        company.security.auth.type=emailAddress  //This enables authentication to happen through Email Address
        #company.security.auth.type=screenName
        #company.security.auth.type=userId
    

    Adding your own table might cause a problem in future if the next release of Liferay plans to add table of the name that you will be giving now!

    3. Set default.landing.page.path to whichever path you want Users to land after authentication.
    This is set in portal-ext.properties. It can also be configured through Admin port.

    If you are looking for code then please check the FAQ section here

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

Sidebar

Related Questions

have downloaded page by webbrowser and need to get mail address. But it is
I have downloaded and installed linq-to-sqlite from http://sqlite.phxsoftware.com/ But the following test code: [
I have downloaded the Liferay 6.1 with jboss 7.1.1 Bundle and Liferay IDE(Eclipsce Juno).All
I am using Windows 7 Operating System. I have downloaded tomcat bundle and unzipped
I have downloaded the Liferay Portal 6.1 Community Edition bundled with tomcat. Then i
I have downloaded both programs, but I see no instructions on google for getting
I have downloaded follwing code from one of Google Codes but problem is in
I have downloaded and installed ActivePerl on my Windows 7-64 machine. Everything went smooth,
I have downloaded the ADT Bundle for Linux (http://developer.android.com/sdk/index.html) that includes android sdk +
I have downloaded the foundation framework from http://foundation.zurb.com/ with the default theme. I dont

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.