This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can i have multiple struts-config files in struts1.1  RSS feed

 
Purushotham Royal Pasupuleti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Friends,
Currently i am using struts1.1 application, Can i have multiple struts-config files for multiple url-patterrns for multiple modules in struts1.1.
If yes then how?

Thanks for your help...........

 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes We can have multiple strut-config in one application, For usage please check THIS link.
 
Purushotham Royal Pasupuleti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shailesh Narkhede,
Thanks alot for the suggestion.....but my scenario is


<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml, /WEB-INF/struts-config2.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.ac</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.dp</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>






Can i use for multiple url (</url-pattern> ) for different struts-config files

i Know we can use one single struts-config file we will consalidate all url-patterns like *.do,*.ac,*gf....
but my intension is different url-patterns(*.do,*.ac,*gf) for different struts-config files like struts-config-dispute.xml,struts-config-goodfaith.xml,struts-config-arbcomp.xml.....


Can you please help me on this......


 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Purushotham ,

Even if you had different struts config in yours application but all struts config will use only one ActionServlet so putting URL in single struts config or multiple struts config is one and the same.
I am not able to understand requirement for which you want to do this. Can you put some light on that?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!