0

I want to define a property in Struts1 configuration file to use inside the same config file. As an example,

Define the property

<property key='base_url' value='https://host/myapp'/>

Use the property value

<action path="login" type="com.UserLoginAction" name="loginForm" parameter="method">
    <forward name="success" path="{base_url}/login.jsp" />
</action>

Is there a possibility to do so in struts1.

Thanks.

isurujay
  • 1,386
  • 10
  • 15
  • Not that I know of--I'm not aware of a `` element at all. Noting that in your example it's useless since JSPs are local to the app anyway so there's no reason to add a URL--they're not URLs, they're relative file paths. – Dave Newton Oct 21 '20 at 14:01
  • Thanks @DaveNewton. Actually I put this as an example. Anyway I need to find a way to use a property value in struts config file which is defined in same file or a separate property file. – isurujay Oct 24 '20 at 05:10

0 Answers0