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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:48:08+00:00 2026-05-30T14:48:08+00:00

I am using Liferay 6 for development , i have developed Liferay6 Struts2 Portlet

  • 0

I am using Liferay 6 for development , i have developed Liferay6 Struts2 Portlet and deployed .
Using Custom JSPs Hooks , i have overridden the $PORTAL_ROOT_HOME/html/portlet/login login.jsp and created
my own jsp page as shown

<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> 

This works fine , the custom jsp page is being shown up .
Now please tell upon clicking on the submit button , how can i wrie a java class which validates the credentials aganist database .

Please tell me how can i recieve these values under my class and validate them .

Thanks

  • 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-05-30T14:48:09+00:00Added an answer on May 30, 2026 at 2:48 pm

    You might have got a solution by this time. If not, you can try the following.

    I believe you are trying to override the login portlet of liferay. In that case there are 2 ways you can handle this login mechanism.( make sure that the same name is given to input fields as liferay’s login page has)

    1. Extend the liferay’s LoginAction class. You have to write an ext plugin or if you are using 6.0 SP2 or 6.1 you can use a hook to extend LoginAction class. Refere mika’s blog http://www.liferay.com/web/mika.koivisto/blog/-/blogs/7132115

    2. Write your own class which should implement liferay’s Authenticator interface and you have to override 3 methods of Authenticator interface.

    For example if you are overriding authenticateByEmailAddress(….), you have to return a SUCCESS(1) or FAILURE(-1). I believe the 2nd and 3rd parameters of the method are user id and password that are entered on the screen. please refer liferay source.

    In order to bypass liferay’s default authentication mechanism, give the following configuration on the portal-ext.properties auth.pipeline.pre=your.package.your.class

    Still liferay check against its own database. To avoid that add following configuration on portal-ext.properties.

    auth.pipeline.enable.liferay.check=false.

    So you have your own custom authentication where you can authenticate against your own database or what ever mechanism you want.

    More Details http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Developing+a+Custom+Authentication+System

    Hope this helps

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

Sidebar

Related Questions

I am newbie in liferay portal. I have developed one portlet in liferay for
I have a question regarding the development of liferay portlets using the liferay plugin
Im new with liferay have a problem with portlet deployment using the plugins sdk,
I am working in Liferay. Recently I have developed 3 level workflow using Kaleo
I am trying to write a portlet for Liferay (using Tomcat and Spring) and
I'm loading yui.js 3.3.0 version file from portlet but liferay its using 3.2.0 yui.js
I am trying to create a simple portlet for Liferay 5.2.2 using Grails 1.2.1
I have a JSP, say view.jsp , that's using the basic Liferay search container
I am trying to make a hook for the Liferay announcements portlet using the
We developed one custom workflow and custom portlet in which we apply this flow.

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.