Suraj Berwal

Greenhorn
+ Follow
since Dec 28, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Suraj Berwal

Hi Priti,

You need to set the header QName as below

new QName("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", "UsernameToken", "wsu")

Thanks,
Suraj

Priti Machhi wrote:How did you add the header to the client. When I try building it using the OMElement it gave me error at line
OMElement omuserName = omFactory.createOMElement(new QName("", "Username", "wsse"), null);

java.lang.IllegalArgumentException: Cannot create a prefixed element with an empty namespace name
at org.apache.axiom.om.impl.llom.OMElementImpl.handleNamespace(OMElementImpl.java:186)
at org.apache.axiom.om.impl.llom.OMElementImpl.<init>(OMElementImpl.java:161)
at org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMElement(OMLinkedListImplFactory.java:126)

11 years ago
The problem is you are not using the Document class instance you have created in second line of your main method.

You are creating a new instance of Document class in the changeData() method.


You need to pass the object of the Document class to the changeData() method in your main method. Modify your change Data() method to accpet the Document object in its parameters.

Try and see if it works. Post your output if it doesn't work.

Thanks,
Suraj
Hello Jyothi,

It is not advisable to write your database login in JSP. They should be coded in Java classes and accessed using Java objects.

Now, are you able to populate your first table using FirstForm.jsp?
Also, what is the order in which your JSP is called?

Kind Regards,
Suraj
Hi,

Is WHITE column existing in the table Formula?

Please can you run the query on your MS-Access DB and check whether you are getting data for both BLACK and WHITE columns...

Kind Regards,
Suraj
Priya,

You can also search the forum for existing threads on the topic. One good link is here

Friends,

Priya is a she not a he.



Thanks,
Suraj
16 years ago
JSP
Hi,

Please post your complete code so that we can understand what you have done.

Suraj
16 years ago
JSP

Originally posted by Campbell Ritchie:
. . . and to other classes in the same package.



Oh yess...

Thanks for the addition...

Kind Regards,
Suraj
[ March 12, 2008: Message edited by: Suraj Berwal ]
16 years ago
Hi Naresh,

Please post the complete code for the function and also the output.

Suraj
16 years ago





You need to supply the protocl for accessing the Mailbox which can be POP3 or IMAP etc..

1)This protocol can be defined in your mail properties file using variable mail.store.protocol

Alternately

2)Replace the above code by the below line and try



See if it works now!!!
16 years ago

Originally posted by John Cronk:
Ok I compared my settings with another person's PC here, and they were using JRE 1.5.

So I downloaded that and changed my eclipse JRE settings to point to this instead.


You are not required to use JRE but JDK. Eclipse internally refers JDK as JRE.

Originally posted by John Cronk:

Now on ant build I get


So it appears that Eclipse's understanding of what JAVA_HOME is has been affected by my changing the default JRE.

JAVA_HOME is definitely "C:\Program Files\Java\jdk1.5.0_12"

?? Again, any ideas anyone ?


This was bound to happen.

Now please execute the following steps to resolve your problem:
1) Goto Window --> Preferences --> Java --> Installed JREs
2) Select the Installed JRE displayed in the list which will be pointing to "C:\Program Files\Java\jre1.5.0_15" and Click on Edit
3) In the EditJRE window click on Browse button and select the location as "C:\Program Files\Java\jdk1.5.0_12".
4) Click on OK for each window and try to run you program again.
5) Your program should work now.

Kind Regards,
Suraj
16 years ago
The protected keyword means that the variable defined in super class will also be visible in the objects of subclass.

In your case there is a Static reference to the Non-Static variable "n_pro".

This will cause the compiler to throw an error. Also to print it in subclass you have to instantiate an object of subclass and call it in the format obj.variable.

See the modified code below for subclass:



Hope this helps
16 years ago
You will have to consult the iBATIS documentation/manual for that. I am sorry I haven't worked on iBATIS so exact mechanism is not known to me.

Suraj

Originally posted by Santhosh Reddy:


Connection closing is not required as i'm using iBATIS



Check whether iBATIS is closing the unused connections.

I feel you will have to explicitly close connections using iBATIS when they are not in use.

It seems iBATIS is opening up lot of new connections without disposing existing unused connections.

Thanks,
Suraj
Hello Praveen,

In addition to that you will have to define a column in your database table of type BLOB which will store the document in binary form.

Thanks,
Suraj
OCP
dear friends,
i have already cleared JCP. plss advice me if there wud be use of giving OCP certifications as well and doing advanced courses in java.plss guide
thanks
a fellow surfer,
suraj berwal