struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Security Management" <list-subscripti...@secmgmt.com>
Subject RE: Default page for namespce in struts2 application.
Date Thu, 09 Apr 2009 18:35:52 GMT
<default-action-ref name="whatever" />

-----Original Message-----
From: sharath karnati [mailto:karnatis@yahoo.com] 
Sent: Thursday, April 09, 2009 2:20 PM
To: user@struts.apache.org
Subject: Default page for namespce in struts2 application.

Hi All,
 
   Say I'm having following code in my struts.xml file
 
 
<struts>     
<package name="InternalAppication" namespace="/intapp"
extends="struts-default"> 
 
    <action name="Name>
         <result>/pages/intapp/login.jsp</result>
     </action>
    <action name="login!*" class="gov.action.LoginAction" method="{1}">
    <result name="input">/pages/intapp/login.jsp</result>
    <result name="create_login">/pages/intapp/login_create.jsp</result>
    <result name="success"
type="redirect">/intapp/contact_service.action</result> 
    </action>
    <action name="logout!*" class="gov.action.LogoutAction" method="{1}">
      <result name="input">/pages/intapp/login.jsp</result>
    </action>
</package>
 
<package name="ExternalAppication" namespace="/extapp"
extends="struts-default"> 
 
    <action name="Name>
         <result>/pages/extapp/login.jsp</result>
    </action>
   <action name="login!*" class="gov.action.LoginAction" method="{1}">
   <result name="input">/pages/extapp/login.jsp</result>
   <result name="create_login">/pages/extapp/login_create.jsp</result>
   <result name="success"
type="redirect">/extapp/contact_service.action</result> 
   </action>
   <action name="logout!*" class="gov.action.LogoutAction" method="{1}">
   <result name="input">/pages/extapp/login.jsp</result>
   </action>
</package>
 
</struts>
 
   application is accessed with below URL
             http://localhost:7001/sampleapp/intapp/login.action
 
   This above URL is displaying login page, but what I want is
 
             http://localhost:7001/sampleapp/intapp/
 
          need to display same login page because of bolded red lines, but
it is showing 404 error.
 
       Please let me know, how to put default page for namespace.
 
Thanks,
Sharath.
 
 


      


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message