Hi,
I have column values like ---- com.integrosys. sml.app.facilit y.vo.OBFacility[5647].Pricing Result
in my table .
i need to write a sql query fetching only the number inside the square braces(5647).
how to use regex for this .i am using oracle 10g
regards
Raj
User Profile
Collapse
-
String comparision
Hi,
I have two strings with values say like
String s1 ="hello,test,fr om,one,party";
String s2 = "into,bytes,hel lo,to";
i need to compare s1 values with s2 values if exists i need to return the matched value.
can any one help how to proceed.
regards
raj -
lineText = lnr.readLine();
while (lineText != null) {
lineText = lnr.readLine();
if (lineText != null) {
if (lineText.conta ins("PERFORMANC E MEASUREMENT")) {
s = lineText.toStri ng();
String delims = "PERFORMANC E MEASUREMENT ::";
String[] tokens = s.split(delims) ;
System.out.prin tln(tokens[1]);
}
... -
java parsing
Hi,
I have text file which contains data in this way
DEBUG ooegroup.OoeGro upOnlineInterfa ceImpl - PERFORMANCE MEASUREMENT :: BEFORE OOE RESERVE GROUP MEMBER Info >>>> Fri Apr 03 10:16:47 ICT 2009>
DEBUG ooegroup.OoeGro upOnlineInterfa ceImpl - reserveOOEGroup :>
DEBUG ooegroup.OoeGro upOnlineInterfa ceImpl - PERFORMANCE MEASUREMENT :: AFTER OOE RESERVE GROUP MEMBER Info >>>> Fri Apr 03... -
(CASE
WHEN sum(transaction _amount)< 0 and transaction_typ e =’D’ THEN ‘Negative Value’
WHEN sum(transaction _amount)> 0 and transaction_typ e =’C’ THEN ‘Positive Value’
ELSE 0
END)Leave a comment:
-
i need to write to external file.
I got the values to my servlet and used this code for storing to external file but this is not human readable.
Arraylist contains my form values..
public void writeFile(Array List al) throws IOException {
String fileString = "IBM.txt";
try {
ObjectOutputStr eam oos = new ObjectOutputStr eam(new
FileOutputStrea m(fileString));
oos.writeObject (al);...Leave a comment:
-
Form values to a File
Hi,
I have jsp..after filling the form fields on clicking the submit i want to write this entered values to a text file .
Thanks in Advance
Raj -
-
using xsl:value-of u can get the text by giving the correct xpath.
if you send some sample xml and describe what exactly you want it will be easy to provide solution
regards
RajLeave a comment:
-
xml tag position change
Hi,
i have an xsl and xml,i need to replace the tag position from one location to another .
xsl:
[code=xml]
<?xml version="1.0"?>
<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="richtext ">
<html>
<body>
<table align="center">... -
xml-xsl transformation
Hi,
Source format:
<d1 name="a1">
<d2 name="b1">
<d3 name="c1"/>
</d2>
<d2 name="b2">
<d3 name="c2"/>
</d2>
</d1>
<d1 name="a2">
<d2 name="b3">
<d3 name="c3"/>
... -
string change in jsp
hi,
i have a String S="hell(“two”)" ;
two is not surrounded with double quotes its with “two”.
i have set this string in request
[code=java]
request.setAttr ibute("Descript ion",S);
[/code]
from my jsp i called i tried to print S
it should print me hell(“two”)...Code:<% out.print(request.getAttribute("Description")); %> -
the output should be of this format
hello in the (“hell”)
its not double quote for hell
i tried this way for replacing the first (? with (“
s = s.replaceAll("\ \(?" , "(“");
but i am getting o/p as
(“h(“e(“l(“l(“o (“ (“i(“n(“ (“t(“h(“e(“ (“(“?(“h(“e(“l( “l(“?(“)(“Leave a comment:
-
replaceAll(.....
Hi,
[code=java]
String s = "hello in the (?hell?)";
s = s.replaceAll("? ", "\"");
[/code]
i hav a string s as shown above
i want to replace ? with "
the output should be like
hello in the ("hell")
i tried the using replaceAll replaceAll("(?" , "\"");
but i am getting an error like
... -
year to date conversion
hi ,
i have a string sYear = 2008;
i need search from the database the results which are in the year 2008.
so how can i convert 2008 to this format
sDateFrom = "2008-01-01";
sDateTo = "2008-12-31";
thanks in advance...
raj -
dynamic change of style
hi
My html is:
[HTML]<Table style="year-button-archive" width="60%" >
<tr>
<td class="gold" >
<a title="year">By Year:</a>
<td class="gold">
<a id = "2008"...Leave a comment:
-
-
changing the links style/status dynamically
Hi,
My html has
[HTML]<Table style="year-button-archive" width="60%" >
<tr>
<td class="gold" >
<a title="year">By Year:</a>
<td class="gold">
<a id = "2008" title="2008" href="../announcementLis t.do?year=2008" >
2008
... -
java collections
Hi,
I have collection of years which i have got from my database
the collection contains years like
example:
2008
2006
2005
2004
2001
2000
the years will be in desc order.
i need to write a java code to iterate the collection of years with each year
which i declare locally and return a boolean.
Thanks in adva... -
No activity results to display
Show More
Leave a comment: