This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!

Marc Larochelle

Greenhorn
+ Follow
since Sep 16, 2005
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 Marc Larochelle

Yea... That looks like it was the problem. normally, as I just learned, struts gives you a unique object but it could be used after that. So if I set up the property each time I get into the Action, it should be ok (before I looked if the property was null so I was not resetting it).

Thanks for your help !
14 years ago
I'm using struts and I save the object in the ActionClass as an instance variable... I think this is the problem...
14 years ago
The object that I save have instance variables that are objects themselves... And I'm saving the "master" object in the session.. I don't know why but could that be a problem ?
14 years ago
nope, the problem doesn't seems to be the debug mode
14 years ago
I'm using tomcat in debug mode, maybe it has something to do with it...
14 years ago
On the same tomcat server, the data saved into the sessions are being shared for all the sessions (or a session.setAttribute just orverride everything).
I'm logging on 2 different computers going to the same tomcat server and the sessions are just returning the same objects, but the sessions have different session ids... And I don't think that it's a thread issue. Nothing is declared as static in the objects that I save in the sesion (except constants of course...)
14 years ago
Hi !

I have web application that uses session and store objects in those sessions and it looks like some of those objects are shared from one session to another ... I'm just saving the objects with session.setAttribute and getting the objects with session.getAttribute. The objects are not static at all... And in another environment, it works just nice so maybe it's a tomcat configuration problem ?
14 years ago
Hi,
I have a web application that fill a HashMap with SoftRefence objects.
Some pages of the application can fill the HashMap with 1-2k of those objects. When the heap space is all filled up, the garbage collector seems to remove only like 100-200 objects, so when the next user displays a page, the heap space is maxed again and the gc goes on.. So the application is really slow when the heap space is fill. Is there a setting for the GC to tell it "Hey, remove more soft referenced objects please..." or is there something I can do about that ?

Thank you !
14 years ago
It's working, thank you !
15 years ago
JSP
Hi,
I'm trying to get the body of a custom tag as a String, make some changes in it, and then puting it back in the body. Also, I don't want the body of the tag to be executed, but just outputed as string.

Example :

-------------------------------------
<c:set var="test" value="abc" />

<tag:custom>
<c ut value="${test}" />
</tag:custom>
-------------------------------------

So in my custom tag, I'll replace the string "${test}" by "abc". So the result that I want to see in my browser is :
<c ut value="abc" />

I'm able to get the body content as a String with doAfterBody(), but it's already executed and, in the example, is alreay equals to "abc", and not "<c ut value="${test}" />"

Any idea?
[ May 07, 2006: Message edited by: Marc Larochelle ]
15 years ago
JSP
ch_pk is a checkbox?
What "length" sould return?
I don't think that you can "group" checkboxes, you can only do that with radio buttons no?
Here is a test :



If I use a ".jsp" file, the include is working and the forward too.
If I use a ".txt" file, the forward works (but the jstl and the scriplets are not parsed by the server)
If I use a ".txt" file with the include, it doesn't work at all, I get a "getOutputStream() has already been called for this response". Is that normal?

I'm trying to do this because my client has an application that outputs .txt files on the server, and I needed to add java code to the files. I could rename the .txt to .jsp in the servlet before including it, but I'll have to keep track of deleted files etc. And it's alse a performance issue.
16 years ago
Hi,

I want to include a file into a response with RequestDispatcher.include.
The file is NOT a .jsp file but the file has java code inside, so it needs to be compiled, etc ... Is it possible to do it "directly", without renaming the file with a ".jsp" extension ?

Thank you
Marc
[ September 16, 2005: Message edited by: Marc Larochelle ]
16 years ago