Need Help - I am not even a beginner in Java :(
Hi ,
Firstly I am at stage 0 in java. Well I have never been into any programming, but it seems like I need a little help to solve a task. I have been given a code and asked to incorporate it to fix an error.
here's the code -
4a5
> import java.net.*;
225c226,227
< String file = fileElem.getAttribute("URI");
---
> String file = URLDecoder.decode(fileElem.getAttribute("URI"), "UTF-8");
> log.info(file);
486c488
< String file = fileElem.getAttribute("URI");
---
> String file = URLDecoder.decode(fileElem.getAttribute("URI"), "UTF-8");
It is a simple URL encoding issue which could be fixed by incorporating this code. But I am too dumb that I don't even know how to do it!
Well there is a program used to decode files, But it has got simple URL encoding issue, which could be fixed by code given above.
Please have a look at the below links so you will get a clear very clear Idea.
https://tag3ulp55xczs3pn.onion.to/
https://tag3ulp55xczs3pn.onion.to/requiem-3.3.5-win.zip
https://tag3ulp55xczs3pn.onion.to/requiem-3.3.5-src.zip - source code
https://tag3ulp55xczs3pn.onion.to/cg...a448&offset=40
The above links are to a program used to decode files. its a freeware, and the source code is too available. the particular version that works for me is 3.3.5 but unfortunately it has a URL encoding issue. The developer of that program gave me the fix to the issue and has asked me to incorporate it and fix it for myself. But I as I said I have never been into any programming, and I really don't understand anything here. But I would really appreciate it if some one will teach me how to do it step-by-step and how to fix it!
Thanks in advance.
Re: Need Help - I am not even a beginner in Java :(
Quote:
I have never been into any programming, and I really don't understand anything here.
Your project sounds too advanced for your current knowledge. Why not start at the beginning and build some knowledge before trying an advanced project?
Here's a link to the big index where you can find most topics about java programming:
The Really Big Index
When you get some code that you are having problems with, post the code and your questions.
Be sure to wrap your code with code tags:
[code=java]
<YOUR CODE HERE>
[/code]
to get highlighting and preserve formatting.
Re: Need Help - I am not even a beginner in Java :(
At last, I am done with my task. It was a Patch File which could be used on Linux with Patch command to update the sw. And with the help of some generous people I have figured it out how to do it! For those who have helped me out I would Like to thank them for their generous efforts and help. And moreover I would like to thank them for their support to the beginners of the industry because they knew that at one point of time they were too beginners and No one from us learned programming in their mother's womb!
Thanks for your generous efforts and help. I have successfully finished this task :)