User Profile

Collapse

Profile Sidebar

Collapse
popprem
popprem
Last Activity: Jan 12 '11, 05:59 AM
Joined: Nov 5 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • popprem
    started a topic changing request url
    in Java

    changing request url

    Hi,

    I have a requirement in which i need to change the request
    url and send it. For example i need to change all
    "/xxx/yyy/zzzz/..." urls as "/xxx/zzzz/..." ("/yyy"
    removed from request url)and send it.
    How can i do it without response.redire ct in servlet ???

    Is there any way to achieve this through struts 1?

    Thanks in advance.
    See more | Go to post

  • popprem
    replied to Image processing
    in Java
    Thanks for your reply Chaarmann. I got the hight and width
    of the image, iterating through them and checking for blue
    color pixels using "int rgb = bufferedImage.g etRGB(x, y)"
    and checking rgb for 0x0000FF.

    Thanks a lot.
    See more | Go to post

    Leave a comment:


  • popprem
    replied to Image processing
    in Java
    Hi Chaarmann,

    Thanks a lot for the reply. Yeah, i too got the point about
    iterating pixels. I get jpg images as input for this
    program. So can i do the image conversion from jpg to bytes
    in the code level?

    Please provide me a sample.

    Thanks.
    See more | Go to post

    Leave a comment:


  • popprem
    started a topic Image processing
    in Java

    Image processing

    Hi,

    I have a requirement to calculate the blue colored area in an JPG image. Can anyone suggest me a way to do this please?

    References for any libraries or APIs are highly appreciated.

    Thanks in advance.

    Regards,
    Prasath.
    See more | Go to post

  • popprem
    started a topic EJB usage in a web system
    in Java

    EJB usage in a web system

    Hi,

    I'm a working on a web system for my final year project and I'm using SpringMVC and Hibernate for this project. Since it is my final year project, for my experience and learning, i wanted ti integrate EJB 3.0 too, but i'm a little bit confused in how to use it in this project. Can anyone please guide me on how to use or for what purposes we can use EJB 3 in a SpringMVC + Hibernate project???

    thanks in advance.
    See more | Go to post

  • popprem
    started a topic Adding a css template to java mail
    in Java

    Adding a css template to java mail

    Hi,

    I'm trying to send mail from our application using java mail api. There is
    a .css file which i need to use for it. How can i do it?????

    The problems i faced are :
    I tried to get the .css file through Datasource and add it to the body
    part with a content id and tried to call it from the html code using cid.
    And i found that the .css file is attached to the mail, not templated....
    See more | Go to post

  • popprem
    replied to creating a trigger to remote database
    Thanks for your reply rski.. It was very helpful. I will try it and get back if i face any problems...

    Thanks again.
    See more | Go to post

    Leave a comment:


  • popprem
    started a topic creating a trigger to remote database

    creating a trigger to remote database

    Hi,

    I have to feed database A from database B which are in different machines but in the same network when a insert/update occurs on database B. I decided to use trigger for this and was trying to write a trigger but failed so far.... (I have written triggers in mysql but using pgsql is a bit difficult to me...) It will be so helpful to me if anyone can post a trigger for my scenario.

    Please be kind enough to show...
    See more | Go to post

  • popprem
    started a topic Maven compilation error
    in Java

    Maven compilation error

    hi,

    I generated classes from a xsd schema with jaxb & did a program to xml reading & writing.Bt wn i cpomlile it through maven it saya that :-
    annotations are not supported in -source 1.3
    (use -source 5 or higher to enable annotations)
    @XmlAccessorTyp e(XmlAccessType .FIELD)

    Bt i used java 6 which incorporates jaxb. Also my POMs r directing to java 6. Other java programs are compiling well,only...
    See more | Go to post

  • popprem
    replied to JAXBElement
    in Java
    its Unmarshaller class

    thanks, its wrking nw.
    The prob was i hv referenced an object to JAXBElement.
    I changed the unmarshaller method, & its wrking fine.
    thanks again....
    See more | Go to post

    Leave a comment:


  • popprem
    started a topic JAXBElement
    in Java

    JAXBElement

    i gt a prob.
    i gt a ClassCastExcept ion when this statement is executed :

    JAXBElement poe = (JAXBElement) u.unmarshal(new FileInputStream ("/home/prasad/Design/XMLFile.xml"));

    error:
    Exception in thread "main" java.lang.Class CastException: com.rcfi.qxlink .xmlp.schema.FI Xadaptor2 cannot be cast to javax.xml.bind. JAXBElement.

    Can any1 post a solution for this.
    Is thr...
    See more | Go to post

  • popprem
    replied to javax.xml.bind.UnmarshalException:
    in XML
    thanks
    It was that XmlRootElement prob.

    i gt anothr prob nw
    i gt a ClassCastExcept ion nw when this statement is executed :

    JAXBElement poe = (JAXBElement) u.unmarshal(new FileInputStream ("/home/prasad/Design/XMLFile.xml"));

    error:
    Exception in thread "main" java.lang.Class CastException: com.rcfi.qxlink .xmlp.schema.FI Xadaptor2 cannot be cast to javax.xml.bind. JAXBElement....
    See more | Go to post
    Last edited by popprem; Nov 14 '08, 08:02 AM. Reason: mistake

    Leave a comment:


  • popprem
    started a topic javax.xml.bind.UnmarshalException:
    in XML

    javax.xml.bind.UnmarshalException:

    hi,
    I validated my schema & xml in JAXP. its validated fine. I created the object model in JAXB using xjc command & wn i try to run run the program in throws javax.xml.bind. UnmarshalExcept ion: unexpected element{} exception.
    Can anyone please help me???
    Thanks in advance.
    here are the schema & file
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    ...
    See more | Go to post
    Last edited by jkmyoung; Nov 13 '08, 03:39 PM. Reason: newlines

  • popprem
    replied to identity constraint not declared
    in XML
    thanks a lot.
    I'l change those attributes....
    See more | Go to post

    Leave a comment:


  • popprem
    replied to identity constraint not declared
    in XML
    This is my schema.
    I get the identity constraint not declared warning in <keyref>s.
    Can u pls check wt hv i done wrng?
    Thanks in advance.
    [code=xml]
    <?xml version="1.0" encoding="utf-8"?>

    <schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefa ult="qualified" attributeFormDe fault="unqualif ied">...
    See more | Go to post
    Last edited by jkmyoung; Nov 6 '08, 03:53 PM. Reason: code tags

    Leave a comment:


  • popprem
    started a topic identity constraint not declared
    in XML

    identity constraint not declared

    hi,
    i'm getting a warning which says that identity constraint is not declared in the <keyref > tag.

    Can any1 pls help?
    thanks in advance.

    part of the xml schema :-

    <xsd:key name = "PK_CounterPart y">
    <xsd:selecter xpath =".//Counter_Party_C ID"/>
    <xsd:field xpath = "CompID"/>
    </xsd:key>

    <xsd:keyref...
    See more | Go to post

  • popprem
    replied to key attribute in xml
    in XML
    thanks a lot
    I got it.
    See more | Go to post

    Leave a comment:


  • popprem
    replied to key attribute in xml
    in XML
    thanks for the consideration.

    Can u please give me an example?
    See more | Go to post

    Leave a comment:


  • popprem
    started a topic key attribute in xml
    in XML

    key attribute in xml

    hi,
    i created an xml schema with namespace like below.

    <xsd:schema
    xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
    xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace ="http://www.w3.org/2001/XMLSchema" elementFormDefa ult="qualified"
    attributeFormDe fault="unqualif ied" >

    but when i use key & keyref, it gives this warning :-...
    See more | Go to post
No activity results to display
Show More
Working...