Update Xml on basis of inner text

Posted by Kiranbgiet under VB.NET on 2/28/2013 | Points: 10 | Views : 1966 | Status : [Member] | Replies : 4
<?xml version="1.0" encoding="ISO-8859-1" ?>
-
-->
- <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-name>
<filter-class>com.csc.fsg.pcdSecurity.filter.CASFilter</filter-class>
- <init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
- <!-- URL for login
-->
<param-value>http://20.15.81.224:9080/sso/login</param-value>
- <!-- URL for load balancing login
-->
</init-param>
- <!-- Secondary Server Support - Start
-->
- <init-param>
<param-name>com.pcidsecurity.filter.secServerParamName</param-name>
<param-value />
</init-param>
- <init-param>
<param-name>com.pcidsecurity.filter.loginUrl2</param-name>
<param-value>http://COMPNAME2:8080/CONTEXTNAME2/login</param-value>
</init-param>
- <!-- Secondary Server Support - End
-->
- <!-- <init-param>
<param-name>xmltag</param-name>
<param-value>user</param-value>
</init-param>

-->
- <init-param>
<param-name>com.pcidsecurity.logoutUrl</param-name>
- <!-- URL for logout
-->
<param-value>http://20.15.81.224:9080/sso/logout</param-value>
</init-param>
- <init-param>
<param-name>com.pcidsecurity.inactivityTimeout</param-name>
- <!-- Inactivity timeout value in seconds
-->
<param-value>7200</param-value>
</init-param>


</filter>

</web-app>
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 urlpleae help to update this value with user enetered value




Responses

Posted by: Abhaydhar on: 2/28/2013 [Member] Starter | Points: 25

Up
0
Down
Hi ,

This can be done using Code or extensions in webserver , can u tell me if you are using Apache/IBM Http server ?

ABD

Kiranbgiet, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kiranbgiet on: 2/28/2013 [Member] Starter | Points: 25

Up
0
Down
we are using tomcat

Kiranbgiet, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhaydhar on: 2/28/2013 [Member] Starter | Points: 25

Up
0
Down

so if I am not wrong , the xml is sent as response via tomcat. If that is the case , then can u check the tomcat extensions for mod_rewrite or mod_substitute , this may help to substitute any string in httpresponse


ABD

Kiranbgiet, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kiranbgiet on: 2/28/2013 [Member] Starter | Points: 25

Up
0
Down
Thanks
Can you provide me the code to do this as I am very new to tomcat actually I am an installhield developer
thanks in advance

Kiranbgiet, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response