Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 + Dynamic Struts.xml ??

 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am working on Struts 2 and we have functionality like change them by admin change all site according.

For that I have create folder as Theme name at server webapps and make jsp.

Admin update that jsp and make change at front side.

so can any one tell me how to change my struts.xml file only make code at one java class.

for ex:

<action name="aboutUs" class="com.action.FullScreenAction">
<result name="success">${themeFolder}/AboutUs.jsp</result>
</action>

this will effect like :

for theme name "Default"

<action name="aboutUs" class="com.action.FullScreenAction">
<result name="success">/jsp/front/AboutUs.jsp</result>
</action>

for theme Blue

<action name="aboutUs" class="com.action.FullScreenAction">
<result name="success">/jsp/front/blue/AboutUs.jsp</result>
</action>

waiting for your reply.


 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello All,

Please help if any body knows ...........
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic