• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to configure custom login module in jetspeed 2 ?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to create my custom login portlet and redirect the user on UserHome.psml page after authentication.Please give any hint.

Thanks in advance.

Regards,
Sajid
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the user is registered correctly, when is logged, is automatically redirected to his own psml, localted in his user folder page.

Jetspeed in j2-admin have some login portlets, enought for me. if you want a custom login page, yo can modify web.xml:

<!-- Login configuration uses form-based authentication -->
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Jetspeed</realm-name>
<form-login-config>
<!--
<form-login-page>/login/login</form-login-page>
<form-error-page>/login/error</form-error-page>
-->
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>

this jsps are in the root of jetspeed.war:

<p>
<label for="j_username">User:</label>
<input type="text" size="15" id="j_username" name="j_username" class="InputLogin">
</p>
<p>
<label for="j_password">Password:</label>
<input type="password" size="15" id="j_password" name="j_password" class="InputLogin">
</p>
<p class="PanelBotones" >
<input type="submit" value="Enter" title="Enter" class="BotonLogin">
</p>

regards
 
I'm full of tinier men! And a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic