Editing struts-config-profile.xml
This files is only needed for publications that require forum user registration and login.
Escenic's Viz Community Expansion provides an alternative and more flexible means of providing user registration functionality. It allows users to log in using credentials they already have, such as Google or Facebook credentials.
If you want to use the Forum plug-in's built-in user registration support,
create a struts-config-profile.xml
file in the
WEB-INF
folder of your publication and add the
following content to it:
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> <struts-config> <form-beans> <form-bean name="com.escenic.profile.presentation.struts.LoginForm" type="com.escenic.profile.presentation.struts.LoginForm"/> <form-bean name="com.escenic.profile.presentation.struts.UserForm" type="com.escenic.profile.presentation.struts.DefaultUserForm"/> <form-bean name="com.escenic.profile.presentation.struts.DeleteProfileForm" type="com.escenic.profile.presentation.struts.DeleteProfileForm"/> <form-bean name="com.escenic.profile.presentation.struts.PasswordForm" type="com.escenic.profile.presentation.struts.ValidateUserPasswordForm"/> <form-bean name="com.escenic.profile.presentation.struts.ChangePasswordForm" type="com.escenic.profile.presentation.struts.ChangePasswordForm"/> </form-beans> <action-mappings> <action path="/login" type="com.escenic.profile.presentation.struts.LoginAction" name="com.escenic.profile.presentation.struts.LoginForm" scope="request" validate="true"> <forward name="success" path="/" redirect="true"/> </action> <action path="/logout" type="com.escenic.profile.presentation.struts.LogoffAction" name="com.escenic.profile.presentation.struts.LoginForm" scope="request" validate="false"> <forward name="success" path="/" redirect="true"/> </action> <action path="/user/add" type="com.escenic.profile.presentation.struts.AddUserAction" name="com.escenic.profile.presentation.struts.UserForm" input="/?service=register" scope="request"> <forward name="success" path="/template/profile/register-success.jsp"/> <forward name="failure" path="/?service=register" /> <forward name="error" path="/?service=register" /> </action> <action path="/user/newPassword" type="com.escenic.profile.presentation.struts.NewPasswordAction" name="com.escenic.profile.presentation.struts.PasswordForm" input="/?service=forgot" scope="request"> <forward name="success" path="/" redirect="true"/> <forward name="error" path="/?service=forgot" /> </action> <action path="/user/setPassword" type="com.escenic.profile.presentation.struts.SetPasswordAction" name="com.escenic.profile.presentation.struts.ChangePasswordForm" scope="request"> <forward name="success" path="/" redirect="true"/> </action> <action path="/user/populate" type="com.escenic.profile.presentation.struts.PopulateUserAction" name="com.escenic.profile.presentation.struts.UserForm" scope="request" validate="false"> <forward name="success" path="/template/profile/update_profile.jsp" redirect="false"/> <forward name="failure" path="/" redirect="true" /> </action> <action path="/user/update" type="com.escenic.profile.presentation.struts.UpdateUserAction" name="com.escenic.profile.presentation.struts.UserForm" scope="request" input="/template/profile/update_profile.jsp" validate="true"> <forward name="success" path="/" redirect="true" /> <forward name="failure" path="/" redirect="true" /> </action> <action path="/user/delete" type="com.escenic.profile.presentation.struts.DeleteUserAction" scope="request"> <forward name="success" path="/" redirect="true" /> </action> <action path="/profile/delete" type="com.escenic.profile.presentation.struts.DeleteProfileAction" name="com.escenic.profile.presentation.struts.DeleteProfileForm" validate="true" scope="request"> <forward name="success" path="/" redirect="true" /> </action> </action-mappings> </struts-config>