Bruno Dery

Ranch Hand
+ Follow
since Oct 05, 2003
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 Bruno Dery

We have worked a lot with a tree html widget, but it's based on javascript and xml. Basicly you can generate it server side without any problem, and it works like a charm on client side. You can even load the tree dynamicly instead of all at once. Our requirements were not on compatibility but more on functionnality so I havent tested much with other browsers but I would think the programmer who did those had compatibility in mind. Here's the link to that, he also has many other very cool widgets :

http://webfx.eae.net/dhtml/xtree/index.html
16 years ago
Any other thoughts on this guys?

I'll post my own findings, which is basicly I gave up on JMeter mostly because of the incorrect results I was getting, and also because of the general 'slowness' of the application itself, not to mention some gui problems (refreshing gets hecktic after running some tests, I have to manually scroll the splitpane around to make it refresh), etc.

We have used WAPT (web applications testing from http://www.loadtestingtool.com/ ) instead and it seems to fill in all our needs, and runs fine with simulating up to 300 hundred users (that's the most I've tried on my system, but I doubt that our network connection here can handle that much traffic anyways so it was mostly to stress test the tool itself). It also supports some basic scripting so we were able to simulate different user logins, etc.

Anyhow, I'm still curious as to what people think of this...
16 years ago
If I remember right switch statements can be executed in one processor cycle while if - else take as much cycles as there are if - elses. Anybody else remembers that bit of info (for me it goes all the way back to school days )
16 years ago
No all the jsp's are supposed to be compiled, the application has been sitting on the server for a while and things should be stable and optimized I believe. Still, I get the same exact behavior from JMeter every time I run the tests.

I did some further testing on this friday, and results are surprising. JMeter posts the same curve in results (kind of like a reversed logarythmic function) but using my other tool (a windows based app) results are stable. Furthermore, JMeter can't handle that much threads before starting to act weird (gui doesnt refresh, errors seem to happen in the background) while the other application has no problems simulating up to 300 hundred users on the same machine (although our office connection problably is a bottleneck in that case but I ran this just for comparison sake).

Anybody else obversed similar results? It's kind of difficult to sell the virtues of load testing to managment with a tool that doesnt seem to post accurate and stable results...
16 years ago
Hi all!

I have two load testing applications I'm trying on my web server, JMeter and another one which is called Web Applications Testing (WAPT) from http://www.loadtestingtool.com/. Now the thing is I have noticed several weird results under JMeter which I have a hard time explaining, and it seems the other tool does not have the same results.

First off, I do a simple test, loading my home page (index.jsp) with 10 concurrent users and have 10 seconds of delay between each iteration. The first weird thing is that I noticed (this is very obvious viewing the graph results) that the responses are slow at first and keep improving over time. Like the first 100 samples are about 2 to 3 times slower than after 1000 samples for example. So at first the page takes around 10 seconds and eventually (around the 1000th sample) takes 3 seconds roughly.

Now I thought maybe this is a behavior of the server somehow, but using the other tool (a windows app) I get very consistent results, around 2.5 seconds for loading my page.

So my question, why does JMeter starts slow like that and improve over time?? Obviously this is not due to my application as proved by the other tool... I run JMeter with the xms to 256 and xmx384, but anyways for only 10 users I would not expect it to use too much resources. I have no other resource eating result either... Any clues on what's happening here??
16 years ago
Maybe there's a way to check that the server called himself via the referrer or something? Like this kind of login could accept this parameter injection only from localhost?
16 years ago
Also as a side note I dont know if there's any way to make this more secure, because basicly what it means is that somebody could by chance type in the url login.do&userid=1 for example and would login the person with userid 1. This is not very secure, but again our application doesnt need military type security. Still if there's a better way to do this please post
16 years ago
Yea we have the same exact problem!
What we came up as a solution is depends on the scenario. If you log into the php side, we call our login.do struts action with an extra parameter for the user ID who logged in using a php function called fopen which can open up URLs just like normal files, and the good thing is this happens on the server-side so the user ID isnt exposed at all on client side.
From Java to Php we use the HTTPUrlConnection which is the equivalent of php's fopen, and it still hides all this from the client-side, users wont notice anything.
You need to do the same thing for logout unfortunatly to keep things consistent. Otherwise people might logout in java but still be logged in in php.
Cookies might be an option, but you would have to be careful to set the timeout fairly quick to avoid a security problem, I guess. I'm not a pro at cookies but I would think anything on the client-side is modifyable by a clever user and hence could be a security breach.
16 years ago
Anybody can help me with this?? Thanks!
16 years ago
Ok I realize it was probably hard to grasp what is the problem I'm facing, so here goes.
Ok what I want to do is to have a form where I have a sentence where I'll replace certain key parts with form widgets. I have a string in a resource bundle like this :
For {1}, what is the {2} of {3}.
Now I want to replace 1 2 and 3 with combo boxes. The idea is to be able to translate the text in another language and simply have to translate the form text also into the resource bundle to have the form in the appropriate language. My combo boxes will need the translated text to be shown also.
So the thing is how do I :
1- Create the combo with the list of translated text?
and
2- How can I put this into the message above using message format or something similar?
This is like a two step message formatting. You understand now?
Thanks again!
16 years ago
I was wondering I would like to call the same functionnality than the struts tag

directly from inside my action class (in my java code). The idea is that I would like the html to be generated right away to be able to access it from the java code. I have a couple of form widgets to print like that and I dont want to write it by hand
Anybody knows how to do this??
Thanks!
[ March 10, 2004: Message edited by: Bruno Dery ]
16 years ago
I would say Struts does a very good job at handling all the usual things you will encounter to build your web application, mostly in the controller layer. For the presentation itself it doesnt provide much, which wasnt it's intent anyways. It simply helps you build a very structured application, and to avoid coupling everything together.
I have noticed one interesting thing, we didnt needed to code any servlets using struts, but rather call our business logic from Strut's actions. The interesting thing is that we noticed after a while that we can test all the business logic without even requiring any web code, and can use neat things like debuggers to help us in that. If you put too much logic in your jsp's, you'll have lots of fun debugging small things afterward (fun is being sarcastic here ). I would even recommend using a template engine like Velocity (we didnt, I'm not the one who did the presentation layer, but I wish I would ), it's much less messy than jsp and you can edit your html much easier like that.
16 years ago
Try maybe table.setTableHeader(null);
16 years ago
If you don't need fancy functions from Excel but just simply opening Excel directly from the file being downloaded, you can simply write a comma delimited file and it should open up with excel by default (if the user didnt changed his / her file associations, office sets .csv files associated with excel). So simply make sure you separate your columns by commas and your rows by newlines and name the file you output with the extension .csv.
16 years ago
JSP
Well I havent read all the code, but what do you mean by editing? You mean editing in the table cells?
My guess is that you're not listening for the right kind of event. Listening to the TreeTableModel wont do it in your case because of course you'll get all the events that happen to the model, and that includes expand/collapse of the tree (because rows need to be added / removed from the table). Instead you probably need to add a CellEditorListener to your table somehow (the standard JTable has it, so you probably just have to add it where you can access the JTable's reference). This will listen for the right event, and using that you should be able to obtain which row / column is being edited, and apply the changes to your model.
16 years ago