slagy maggie

Ranch Hand
+ Follow
since Feb 20, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by slagy maggie

Hi,
I have a class, which has one private constructor
public class test extends test1
{
private test{
super();
}
and then a public test(int i, String s){blah blah}
now if i wanted a singleton model, and did not want 2 instances of thsi class, why have a public constructor(that will allow other classes to create other instances ???/!!!11)
and moreover that super(), in the private constructor accesses
the public constructor in test1 class. what all this lead to???does it all not lead to totally counteracting the need a for a private constructor???
thanks guys
22 years ago
i have a java class that i want to run during the weblogic startup,how do i do this.to be more specific, each time i start the server, i need this class to run so that it reads off the database(and stores info in the form of cache). How do i do this
where do i specify in the container that it should run this class
thanks
rupa
Hi
I was wondering if there is any parser where we dont have to supply "ampersand(&) amp semicolon" (i am writing it out because the browser seems to convert it when the message is posted) to parse "johnson&johnson", basicaaly my question is....from the fron end we can ask our users to supply this so that our parser understands this(by the way we are using xerces.jar xalan.jar and crimson.jar for our application)....but when we reply back to our clients using the information in the database....we have to substitute each "&" with the appropriate "&semicolon" to parse the info back....is there any other way of doing this or is there any other parser which can do this for us
Thanks
i dont believe this....once again.....it did it
okay why is it that it works for "ampersand hash 38 ; "
and not for "ampersand amp ;"
karthik i know what is going on....what ever we are typing is getting converted by the browser.....okay you meant
johnson "&" johnson ....disregard the quotes.... or johnson
"&" johnson when i try giving "&" it does not work
but if i give "&" it works...and moreover is there any parser which will understand all this without us going thru the trouble of writing hash blah blah...is there anyway in the <DOCTYPE Entity.....> where you can specify all this
sorry i actually ment giving amp; and #38; behaves differently
but the browser has eaten up ...hope this helps
Hi,
Thankyou all.....
This is what i found out
if i give <Manufacturernamed>johnson&johnson<MnaufacturerName>
It extracts the value as johnson
but if i give <ManufacturerName>johnson&johnson<Manufacturername>
it extracts johnson&johnson
why is this hapenning...and also if we dont want our users who are support staff to enter something as complicated as johnson&johnson.....what is it we can do to substitute this value when ever we see a "&"....can we do this in the DTD....
<!DOCTYPE rootelem [
<!ENTITY name "value">
]>
<rootelem>...</rootelem>
i CAM ACROSS this....but this is for a specific tag
if i wanted to generalize this thro the whole doc what can i do???
thanks
Rupa
ajith.....i hope you can save my skin!!!
<manufacturer>johnson&johnson</manufacturer>
how do i get this value with the ampersand in it
if i try<manufacturer>johnson&johnson</manufactgurer>
it gives a sax parser exception of an illegal character
please help!!!
Thanks...i tried it out but it gives me a SAX parser exception of illegal character....can you suggest anything else
Thanks once again
when i try to get the value
<manufacturername>johnson&johnson<manufacturername>
&:this i have included to represent johnson&johnson
and when i try extracting the value
i get only johnson
why does this happen
can anyone please help me out with this
<manufacturer>johnson&johnson</manufacturer>
how do i get this value with the ampersand in it
if i try<manufacturer>johnson&johnson</manufactgurer>
it does not work
please help
I am using informix database and wseblogic server, my problem is such
When i try to look up a particular table, to verify the refrential constraint, the transaction rolls back and gives me a -346 informix error which translates to Lock Error. This table is accessed by many entity beans at the same time. Is there anything i can set in deployment descriptor to solve this issue
right now my container managed bean when it does not find a value
it defaults it to "0", but my client does not like it , cause 0 in some cases could make cases could make sense. Can anybody tell me how i can avoid the database from inserting a zero and keeping it null or empty( i know it does this for strings, but not for objects), and i also know it is possible in BMP'S ,by doing the setNull, BUT HOW CAN I DO IT VIA CMP bean
I am using informix as my database.
pllllllllllllllllllleeeeeeeeeeeeeeese help
can any body tell me how i can convert stringReader to inputstream???
22 years ago
My client has decided to introduce null tags in the incoming xml strings
while i parse the document with null tags and try to get the value it gives me a null pointer
eg:"
<SearchName><Last>kalidoss</Last><First/></SearchName>
if(search.getNodeName().equalsIgnoreCase("First"))
{
String first=search.getFirstChild().getNodeValue();
System.out.println("The value of first is"+first);
}
}
it goes into the if loop, but the node "search" is a null node
is there any way i can avoid this??? other than catching it in a try catch block for null pointers???