User Profile

Collapse

Profile Sidebar

Collapse
sgxbytes
sgxbytes
Last Activity: Apr 30 '09, 03:10 AM
Joined: Sep 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sgxbytes
    started a topic sql with regex

    sql with regex

    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
    See more | Go to post

  • sgxbytes
    started a topic String comparision
    in Java

    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
    See more | Go to post

  • sgxbytes
    replied to java parsing
    in Java
    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]);

    }
    ...
    See more | Go to post

    Leave a comment:


  • sgxbytes
    started a topic java parsing
    in Java

    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...
    See more | Go to post

  • sgxbytes
    replied to case statements in oracle
    (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)
    See more | Go to post

    Leave a comment:


  • sgxbytes
    replied to Form values to a File
    in Java
    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);...
    See more | Go to post

    Leave a comment:


  • sgxbytes
    started a topic Form values to a File
    in Java

    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
    See more | Go to post

  • sgxbytes
    replied to extract the plain text from an xml file
    in XML
    <xsl:value-of select="."/>
    See more | Go to post

    Leave a comment:


  • sgxbytes
    replied to extract the plain text from an xml file
    in XML
    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
    Raj
    See more | Go to post

    Leave a comment:


  • sgxbytes
    started a topic xml tag position change
    in XML

    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">...
    See more | Go to post
    Last edited by jkmyoung; Nov 3 '08, 06:22 PM. Reason: code tags

  • sgxbytes
    started a topic xml-xsl transformation
    in XML

    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"/>
    ...
    See more | Go to post

  • sgxbytes
    started a topic string change in jsp
    in Java

    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
    Code:
    <% out.print(request.getAttribute("Description")); %>
    it should print me hell(“two”)...
    See more | Go to post
    Last edited by Nepomuk; Oct 16 '08, 12:07 PM. Reason: Added [CODE] tags

  • sgxbytes
    replied to replaceAll(.....
    in Java
    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(“?(“)(“
    See more | Go to post

    Leave a comment:


  • sgxbytes
    started a topic replaceAll(.....
    in Java

    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
    ...
    See more | Go to post

  • sgxbytes
    started a topic year to date conversion
    in Java

    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
    See more | Go to post

  • 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"...
    See more | Go to post
    Last edited by acoder; Oct 9 '08, 09:59 AM. Reason: Added [code] tags

    Leave a comment:


  • yes can move to javascript forum...
    See more | Go to post

    Leave a comment:


  • sgxbytes
    started a topic changing the links style/status dynamically

    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
    ...
    See more | Go to post
    Last edited by acoder; Oct 9 '08, 09:32 AM. Reason: Please use [code] tags

  • sgxbytes
    started a topic java collections
    in Java

    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...
    See more | Go to post

  • sgxbytes
    replied to struts logic tag + javascript
    sorry for posting here can move to javascript form...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...