Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
-->
- <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
- <!-- The master configuration file for this Spring web application
-->

- <!-- SSO Filter Start
-->
- <filter>
<filter-name>CAS Filter
<filter-class>com.csc.fsg.pcdSecurity.filter.CASFilter
- <init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl
- <!-- URL for login
-->
<param-value>http://20.15.81.224:9080/sso/login
- <!-- URL for load balancing login
-->

- <!-- Secondary Server Support - Start
-->
- <init-param>
<param-name>com.csc.fsg.pcidsecurity.filter.secServerParamName
<param-value>

- <init-param>
<param-name>com.csc.fsg.pcidsecurity.filter.loginUrl2
<param-value>http://COMPNAME2:8080/CONTEXTNAME2/login

- <!-- Secondary Server Support - End
-->
- <!-- <init-param>
<param-name>xmltag
<param-value>user


-->
- <init-param>
<param-name>com.csc.fsg.pcidsecurity.logoutUrl
- <!-- URL for logout
-->
<param-value>http://20.15.81.224:9080/sso/logout

- <init-param>
<param-name>com.csc.fsg.pcidsecurity.inactivityTimeout
- <!-- Inactivity timeout value in seconds
-->
<param-value>7200






I have to update 20.15.81.224:9080 value
value with user entered value but problem is this whenever i generate this xml again this value become different like 10.10.81.224:9081 this is the ip address of server where application deployed i cannot hardcode this value in search crirtia even i cannot search on <<param-value> it can have different value also other than url
pleae help to update this value with user enetered value
Posted
Comments
RDBurmon 28-Feb-13 8:04am    
Is this in any file ?

Create VB.net code for below algorithm

--Need to do Manually only one time
1) Locate that file where you have this XML and copy your server IP Address and add this is DESCRIPTION of file

--Need to write code for this
2) Read DESCRIPTION of file and that will be your server IP address which is there in XML
3) Read XML data
4) Read Server IP address provided by user
5) Find and replace "DESCRIPTION" value with "USER provided" value.
6) Write USER provided server ip address in DESCRIPTION of file
7) close file connection


Hope this helps
--RDBurmon
 
Share this answer
 
I am not able to get the solution can u more ellaborate with examples
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900