Yashwant Palkar

Greenhorn
+ Follow
since Dec 01, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Yashwant Palkar

Currently we are using spring web service client configured in spring configuration.xml.
I have to add another web service client and it needs to be configured in same configuration file.
Both webservices have different credentials for them.
i have configured 2 different webservicetemplate for them and 2 different messageSenders.




In this credentials of second web service teamplate are overridden by credential of first web service template. Whereas I have created all proprties different from first one.
is there any other way to set credentials of second web service client.

Thanks
11 years ago
I want to use <fmt:formatNumber> with <bean:write> tag in JSP. Please find the following code snippet



For this above error I am getting this error.

"org.apache.jasper.JasperException: XYZ.jsp(49,64) equal symbol expected"


I am not sure it is right or wrong. Can anybody suggest me proper syntax for this?
11 years ago
JSP
In my JSP i have label and Edit button. once I click on Edit button the label should hide and text box should appear instead of label. As well as Textbox should have value same as Label.I have used JQuery for implementing this. my code is as follows



and JSP code is as follows




The result of this code is fine but it reverts backthe result.It shows label again and Text box dispappears.

I tried same JQuery code in HTML it woked fine.
Can anybody help me in this??
12 years ago
JSP
Thanks for a reply.

Can you please provide a code for it?
Source XML has following Datetime value in 12 hours format
<ATTRIBUTE_4>01/21/2010 4:48:17 PM</ATTRIBUTE_4>

but desire output requires data in following 24 hour format

<ATTRIBUTE_4>2010-01-21T16:48:17</ATTRIBUTE_4>

Please let me know if is there any way to convert 12 hours time format to 24 format using XSLT
I need to covert current date time into milliseconds using XSLT.
I am using follwoing code to get current time.



With this code I am getting following response



How can I convert this value(2011-04-15T04:38:50-04:00) of current time in milliseconds using XSLT?
I need following information regarding Oracle SOA exam.

(1) Which are recommended books/ tutorials?
(2) What is the cost of the certification in India?
(3) Where can I give exam in India?
We are passing following XML structure as VARCHAR2 parameter to procedure.


We want to insert above XML structure in following tables .
Customer (CustomerID is a primary key)
Address (CustomerID references to Customer.CustomerID)

Does Oracle provide any facility which for this?
13 years ago
In our requirement we need to get file size of file present on FTP server.
but we want to get file size without reading entire file.
For ftp purpose we are using ftp4j lib.
How can we achive this? please provide suggestion
I have checked those methods.
Download method can be used to download a remote file from the server to a local file.
but I just want to read content of that remote file into any of the String Variable without storing it into local file.
Is there any way??
Hello Joe,
Which method you are mentioning?
I have requirement in which we need to connect Secure FTP to download file and send that file content to another web service.
and vice versa to get data from web service and write in file on Secure FTP.
For Secure FTP purpose we are going to use ftp4j lib.But in ftp4j there is no method to read file content separately.
Whenever I have to read file from SFTP I have to store that content in local file.

Can anybody guide me to overcome this problem?

I tried through Authenticator but getting same error.
13 years ago
I have tried it with simple java code.
still giving same error

This is log I am getting from code.

250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-X-ANONYMOUSTLS
250-AUTH NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250 XRDST
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: Found extension "X-ANONYMOUSTLS", arg ""
DEBUG SMTP: Found extension "AUTH", arg "NTLM"
DEBUG SMTP: Found extension "X-EXPS", arg "GSSAPI NTLM"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "BINARYMIME", arg ""
DEBUG SMTP: Found extension "CHUNKING", arg ""
DEBUG SMTP: Found extension "XEXCH50", arg ""
DEBUG SMTP: Found extension "XRDST", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<yashwant.palkar@xxx.com>
530 5.7.1 Client was not authenticated
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated

com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
at TestEMail.main(TestEMail.java:46)
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
at TestEMail.main(TestEMail.java:46)
13 years ago
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP: check mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM
DEBUG SMTP: mechanism LOGIN not supported by server
DEBUG SMTP: mechanism PLAIN not supported by server
DEBUG SMTP: mechanism DIGEST-MD5 not supported by server
java.lang.ClassNotFoundException: jcifs.ntlmssp.Type1Message
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.sonicsw.mf.framework.agent.ClassLoaderFactory$DelegateLoader.loadClass(ClassLoaderFactory.java:595)
at com.sonicsw.mf.framework.agent.ClassLoaderFactory$DelegateLoader.loadClass(ClassLoaderFactory.java:553)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.mail.auth.Ntlm.generateType1Msg(Ntlm.java:65)
at com.sun.mail.smtp.SMTPTransport$NtlmAuthenticator.getInitialResponse(SMTPTransport.java:784)
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:623)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:583)
at javax.mail.Service.connect(Service.java:291)
at javax.mail.Service.connect(Service.java:172)


I am getting this error while using this code.
13 years ago