Tomita Militaru

Ranch Hand
+ Follow
since Jan 16, 2009
Merit badge: grant badges
For More
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 Tomita Militaru

Hello,
I need to do this assignment in which I need to read / write from / to a file bit by bit using a buffer. When the buffer has 8 bits, I write a byte to the file, same for reading.
Here is why I did so far, I'm using String for reading/writing and I'm sure this is not a good/eficient way to do it. If there is another way can someone please suggest, I don't need the solution directly, just some hints. Thanks


The read method works, but I would like to rewrite the class using another method do it.
14 years ago
The webpage contains a badge that is on every page on the same location, but the badge is not a square / rectangle, its a png that is transparent.

I solved the problem positioning a div with the position absolute, but I was curious about z-index.

Thanks.
Hello,
I have a div name "container" which contains another div called "sidebar_left", which has another div called "red_rectangle", something like this:


I want that the background from the container to be on top of the background of the red_rectangle. I tried z-index, but does not work or I might be using it wrong:


Any advice?
Thanks.
Hi,
I'm trying to upload a file, but I keep getting a null MultipartFile back.
The controller code:

The input:

The bean:

I don't need to store the file, I only extract the content, thats all. If you have any questions about the code feel free to ask.
Thanks!
14 years ago
Fixed, there was a problem with the mapping.
14 years ago

.. and the ConfigureController.java


GenericAction extends SimpleFormController.
The problem is that after I submit the form, it simply goes to "view-file.htm", but does not excute the onSubmit(...)
No errors.
Can someone help me with this?
Thank you.
14 years ago
Commenting the code so the teacher understands it
14 years ago
I found that smiling is crucial
14 years ago
I think its my current job in a software company, they just reduced my salary by half and suggested I should come more hours than usual. I'm a student too.
Of course, the reason is always this financial crisis.
14 years ago
The problem was the location of the xml file, it was located in the packages with the classes and didnt have access to write to it.
I changed it, but same problem.
Hi guys, I'm trying to modify a XML file from Java like this:

defaultSpreadsheetXML.xml :



The method:



The URI is corect, the encoding to the document variable changes, but not in the XML file, so the content is not written in the file. There are no errors/exceptions. Any ideas?
Thanks.
This is weird, I'm on another computer using a different version of tomcat and it works! I used tomcat xxxx.14 and now xxxx.18
Could that be a reason?

@Nathan
I'll get back to you when I'm at my computer

@Jan
The file is in WEB-INF
web.xml :



SpreadsheetTool-servlet.xml:


I'm getting the error message:

type Status report

message Servlet SpreadsheetTool is not available

description The requested resource (Servlet SpreadsheetTool is not available) is not available.



I'm new to spring so it might be a dumb error or a misplaced link ....