isurujay
isurujay

Reputation: 1436

Define a property in Struts1 configuration file to use inside the same config file

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.

Upvotes: 0

Views: 214

Answers (0)

Related Questions