0

this is default implementation.

<welcome-file-list>
    <welcome-file>Index.jsp</welcome-file>
 </welcome-file-list>

i want to change like below

 <welcome-file-list>
    <welcome-file>login.action</welcome-file>
 </welcome-file-list>

<action name="login" class="com.mm.authentication.Login">
        <result name="success">/Index.jsp</result>

above implementation not working.

if anyone know how to do this, please let me know.

Gabu
  • 3
  • 4
  • possible duplicate of [How can I set the welcome page to a struts action?](http://stackoverflow.com/q/39399/1700321) – Aleksandr M Mar 05 '15 at 11:21

1 Answers1

0

The welcome file is just a file. You have to rename it to something login.jsp. But create a new file index.jsp with the following content

<% response.sendRedirect(request.getContextPath()+"login.action"); %> 

The action configuration

<action name="login" class="com.mm.authentication.Login">
    <result name="success">/login.jsp</result>
Roman C
  • 49,761
  • 33
  • 66
  • 176