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.
User Profile
Collapse
-
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. -
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.Leave a comment:
-
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. -
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. -
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.... -
Thanks for your reply rski.. It was very helpful. I will try it and get back if i face any problems...
Thanks again.Leave a comment:
-
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... -
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... -
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....Leave a comment:
-
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... -
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....Leave a comment:
-
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"
-
-
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">...Leave a comment:
-
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... -
-
thanks for the consideration.
Can u please give me an example?Leave a comment:
-
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 :-...
No activity results to display
Show More
Leave a comment: