neha priya

Ranch Hand
+ Follow
since Jul 03, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by neha priya

Thanks ulf for the quick reply.The user will enter some text like:-


The text parser should parse the above text,raise error if the above syntax is not followed.Then it should generate an xml file based on the parsed text :-

13 years ago
hi,

I have an assignment where i need to take input from the user in text form in a text area.Collect that data from the text area and build an xml file by parsing the entered text.Kindly help as how do i go about it?

Regards,
Neha
13 years ago
@Rob:-I figured out my mistake.I just included jcifs jar files and my project runs correctly.Thanks a lot for your help.However,just a little doubt do i need to share the destination folder to copy the required file?Is there no way in which i could transfer the file to the remote machine without having to share the destination folder?Its a security concern Kindly help.

Regards.
13 years ago
Thanks a lot Rob for your help and suggestion.I tried using the snippet that you have suggested.However the code is not compiling as its giving errors like:-


What are the prerequisite for using these classes?Kindly help me to solve the problem at the earliest.

Regards.
13 years ago
thanks ulf for the reply.Could you suggest some article relating to JCIFS that would help me to complete my job at the earliest?I have never used it before so highly confused.

Regards.
13 years ago
Thanks Rob for the quick reply.Could you please explain with a snippet as how do i use JCIFS and SmbFile to achieve remote file transfer?How do i provide the credentials there?

Kindly reply.
Regards.
13 years ago
Thanks for the reply.The remote machine is on a different network and the credentials are :-
username:-user
Password:-password

how do i specify these credentials through the java code.

Please help.

Regards.
13 years ago
Hi,

I need to tranfer a file from my local system to the remote machine.I have used the following sample code:-

However on execution of the above code,i am getting the following exception:-


Kindly help as how do i resolve the exception.If possible please suggest a better to transfer the file to the remote system.

Regards
13 years ago
Hi,

I wrote the following java class according to the suggestions provided by you all.It tries to login to the remote machine and then ping the local system:-

However i am not sure if the code is working or not?Because when i print the line read from the inputstream it gives NULL.
kindly help me to solve this problem.

Regards.
13 years ago
Thanks for the replies.Presently i am just trying PsExec.exe to login to the remote machine and ping my machine from there.I run the following command from command prompt:-




I am able to ping in this manner.Please help how do i do the same using ProcessBuilder so that i don't have to use type the command manually on command prompt?

Regards.
13 years ago
Hi,

I need to execute a service remotely.To achieve this i run the command PsExec.exe from command prompt.However instead of executing the command manually from the command line i would like to write some java wrapper class that would internally invoke the PsExec.Exe command and fetch the desired result.Kndly help as how do i write such a java class?

Regards
13 years ago
Thanks for the reply.In my case i have a xml template on the server.I need to collect data across various jsp pages and create a new xml file based on the xml template and populate the collected data over there.At the end of this, the template xml should remain as it was before.How do i use XSLT as you mentioned to achieve the same.
Kindly Help.

Regards.
Hi,
I need to know which one of DOM or SAX parser is better?I need to generate a new xml file from an existing xml template on server.

Kindly help.

Regards.
Thanks for the reply.So can you please help me as how do i collect information from various jsp pages and put them in a unique xml file on the server.

Regards.
13 years ago
JSP
Hi,

Thanks for the reply.However i am supposed to use SAX parser ,not DOM parser.Kindly help in this regard.

Regards
13 years ago
JSP