permaculture playing cards*
The moose likes Portals and Portlets and the fly likes How to configure custom login module in jetspeed 2 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "How to configure custom login module in jetspeed 2 ?" Watch "How to configure custom login module in jetspeed 2 ?" New topic
Author

How to configure custom login module in jetspeed 2 ?

Sajid Mahmood
Greenhorn

Joined: Dec 20, 2010
Posts: 3
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
Francisco Rosado
Greenhorn

Joined: Feb 22, 2010
Posts: 4
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure custom login module in jetspeed 2 ?