<?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.forum.struts.ForumForm" type="com.escenic.forum.struts.ForumForm"/>
  	<form-bean name="com.escenic.forum.struts.presentation.PostingForm" type="com.escenic.forum.struts.presentation.PostingForm"/>
	-->
    <form-bean name="com.escenic.tools.struts.ForwardForm" type="com.escenic.tools.struts.DefaultForwardForm"/>
    <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.LoginForm" type="com.escenic.profile.presentation.struts.LoginForm"/>
    <form-bean name="com.escenic.profile.presentation.struts.PasswordForm" type="com.escenic.profile.presentation.struts.PasswordForm"/>
    <form-bean name="com.escenic.profile.presentation.struts.ChangePasswordForm" type="com.escenic.profile.presentation.struts.ChangePasswordForm"/>
    <!-- poll plugin mappings start  -->
    <form-bean name="pollForm" type="com.escenic.poll.struts.SubmitForm"/>
    <!-- end poll plugin mappings start  -->  
      <!--
	   <form-bean name="formMarka"
        type="no.adressa.marka.Marka"
        />
		-->

  </form-beans>
  <global-forwards>
  </global-forwards>
  <action-mappings>
		<!-- poll-plugin public actions - used by public site -->
		<action path="/poll/vote"
						type="com.escenic.poll.struts.HandleSubmitAction"
						name="pollForm"
						scope="request">
			<forward name="success" path="/success.jsp" redirect="true"/>
			<forward name="error" path="/error.jsp" redirect="true"/>
		</action>
			<!-- end poll-plugin public actions -->
<!--			
   <action     path="/plugin/forum/posting/create"
               type="com.escenic.forum.struts.CreatePostingAction"
               name="com.escenic.forum.struts.ForumForm"
               scope="request">
   </action>

   <action     path="/plugin/forum/posting/delete"
               type="com.escenic.forum.struts.CreatePostingAction"
               name="com.escenic.forum.struts.ForumForm"
               scope="request">
   </action>

    <action    path="/forum/insertThread"
               type="com.escenic.forum.struts.presentation.InsertPostingAction"
               name="com.escenic.forum.struts.presentation.PostingForm"
               input="/meninger/diskusjon/index.jsp"
               scope="request">
      <forward name="target" path="/template/ver2-0/modules/debate/thanx.jsp"  />
    </action>
    
    <action    path="/forum/updatePosting"
                   type="com.escenic.forum.struts.presentation.InsertPostingAction"
                   name="com.escenic.forum.struts.presentation.PostingForm"
                   input="/meninger/diskusjon/index.jsp"
                   scope="request">
          <forward name="target" path="/template/ver2-0/modules/debate/thanx.jsp"  />
    </action>
-->
    <action    path="/forward"
               type="com.escenic.tools.struts.DefaultForwardAction"
               name="com.escenic.tools.struts.ForwardForm"
               scope="request"
               validate="false">
    </action>

    <action    path="/add"
               type="com.escenic.profile.presentation.struts.AddUserAction"
               name="com.escenic.profile.presentation.struts.UserForm"
               scope="request"
               input="/meninger/diskusjon/index.jsp?registrate=true">
      <forward name="success" path="/meninger/diskusjon/index.jsp" redirect="true"/>
      <forward name="failure" path="/meninger/diskusjon/index.jsp" redirect="true"/>
    </action>

    <action    path="/newPassword"
               type="com.escenic.profile.presentation.struts.NewPasswordAction"
               name="com.escenic.profile.presentation.struts.PasswordForm"
               scope="request"
               input="/meninger/diskusjon/index.jsp?service=password">
      <forward name="success" path="/meninger/diskusjon/index.jsp" redirect="true"/>
      <forward name="failure" path="/meninger/diskusjon/index.jsp" redirect="true"/>
    </action>

    <action    path="/setPassword"
               type="com.escenic.profile.presentation.struts.SetPasswordAction"
               name="com.escenic.profile.presentation.struts.ChangePasswordForm"
               scope="request"
               input="/meninger/diskusjon/index.jsp?changePassword=true">
      <forward name="success" path="/meninger/diskusjon/index.jsp" redirect="true"/>
      <forward name="failure" path="/meninger/diskusjon/index.jsp" redirect="true"/>
    </action>

    <action    path="/login"
               type="com.escenic.profile.presentation.struts.LoginAction"
               name="com.escenic.profile.presentation.struts.LoginForm"
               scope="request"
               validate="true"
               input="/meninger/diskusjon/index.jsp">
      <forward name="success" path="/meninger/diskusjon/index.jsp" redirect="true"/>
      <forward name="failure" path="/meninger/diskusjon/index.jsp" redirect="true"/>
    </action>

    <action    path="/logoff"
               type="com.escenic.profile.presentation.struts.LogoffAction"
               name="com.escenic.profile.presentation.struts.LoginForm"
               scope="request"
               validate="false">
      <forward name="success" path="/meninger/diskusjon/index.jsp" redirect="true"/>
      <forward name="failure" path="/meninger/diskusjon/index.jsp" redirect="true"/>
    </action>

    <action    path="/populate"
               type="com.escenic.profile.presentation.struts.PopulateUserAction"
               name="com.escenic.profile.presentation.struts.UserForm"
               scope="request"
               validate="false"
               input="/meninger/diskusjon/main.jsp">
      <forward name="success" path="/meninger/diskusjon/index.jsp?service=edit"/>
      <forward name="failure" path="/meninger/diskusjon/index.jsp?service=error" redirect="true"/>
    </action>

    <action    path="/update"
               type="com.escenic.profile.presentation.struts.UpdateUserAction"
               name="com.escenic.profile.presentation.struts.UserForm"
               scope="request"
               validate="true"
               input="/meninger/diskusjon/index.jsp?service=edit">
      <forward name="success" path="/meninger/diskusjon/index.jsp" redirect="true"/>
      <forward name="failure" path="/meninger/diskusjon/index.jsp?service=error" redirect="true"/>
    </action>

    <action    path="/delete"
               type="com.escenic.profile.presentation.struts.DeleteUserAction"
               scope="request">
      <forward name="success" path="/meninger/diskusjon/index.jsp" redirect="true"/>
    </action>

    <action    path="/deleteProfile"
               type="com.escenic.profile.presentation.struts.DeleteProfileAction"
               name="com.escenic.profile.presentation.struts.DeleteProfileForm"
               validate="true"
               scope="request">
      <forward name="success" path="/meninger/diskusjon/index.jsp" redirect="true"/>
    </action>
<!--
    <action
      path="/updateMarka"
      type="no.adressa.marka.UpdateMarkaAction"
      name="formMarka"
      scope="request"
      input="/kunder/bydrift/marka.jsp"
      unknown="false"
      validate="true"
    >
    </action>
-->

  </action-mappings>

  <controller forwardPattern="$P" pagePattern="$P" debug="2" locale="true"/>  
  <message-resources null="false" parameter="com.escenic.profile.Resources"/>
</struts-config>
