This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Adrian Precub

Greenhorn
+ Follow
since Jan 31, 2008
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 Adrian Precub

Never mind, i solved the problem
If anyone is interested i found the solution here http://community.jboss.org/wiki/ExternalDirectories
10 years ago
Hello,

I have a web app in which the user uploads some images to the server.

Currently the upload is done in the deployed dir of the war file and every time i restart the server i lose all the uploaded pictures.

I understand that JBoss AS has a directory name data in server/default/data in which i can save the pictures and i do that.

My problem is that i don't know how to retrive those pictures and display them in a jsp.

From the servlet i set a bean on the request that contains a name a price and i want it to contain a path to an image in the data folder .

Can you please tell me how i can do that?

Thank you
10 years ago
Hello,

Can you please tell me how can i acces a picture stored in jboss server/default/data directory in my jsp?

Thank you.
10 years ago
You can always use eclipse. It solves a lot of path related issues
Octavian you can go here https://www.suntrainingcatalogue.com/eduserv/client/learningPath.do?p=/training/certification/index.html&l=en_BK and click on Java Technology and folow the steps from there. You have to order the voucher from Greece.I did this for scjp and scwcd and it worked.If you are unclear send me a messageon javaranch.
Good luck with scea
Thanks guys,

One question: How fast does the info on this page http://certmanager.net/sun update. Because i checked today and it wasn't updated.Does it need a day or 2 to update?

Thank you in advance
10 years ago
Hello ranchers,

Today i cleared the SCWCD exam with 98%

Thank you: - HFSJ 2nd edition
- javabeat mock exams
- this forum and topics which cleared my doubts about some topics

The exam was relatively easy but the questions on this topic Section 9: Building JSP Pages Using Tag Libraries were quite dificult and needed a bit more concentration.
Now i'm going to get drunk as HFSJ says in some pages. I

passed the exam and now i can consume large quantities of alcoohol



Next a break and then i thing SCMAD (a passion of mine )
10 years ago
As far as i know you have to get the request from the pageContext implicit object and then get the requests attributes.If you say pageContext.getAttribute('attrName') it will get a page scoped attribute, not request scope.You can however say pageContext.getAttribute('attrName',scope) and get the desired attribute at the desired scope
I recently passed scjp 5.0 with the score of 79%...but this was after i failed once ...hope i'll pass the next ones (scwcd and scbcd - for now) from the first time
12 years ago