Help coderanch get a
new server
by contributing to the fundraiser

roel croonenberghs

Greenhorn
+ Follow
since May 28, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by roel croonenberghs

Hi,

In my application, I have a JSESSIONID for access control. Now when I access my app with chrome as user 1 and take over the JSESSIONID and then go to firefox, login as user2 and alter the JSESSIONID to make the value the same as for user1. From there on I'm identified as user1.
I know one should have access to the app /computer user1 has used. And user1 must not be logged out (just closed browser) and no session timeout has occured. To be able to exploit this sessionid tampering.
But is there a way to prevent it? And knowing that the JSESSIONID is not valid.
12 years ago
You can use the rich:combobox thing.

Problem is that it displays the values as the siplays. I want the same behaviour as in h:selectonelistbox where de dipley text of an item is different then its value. Anybody any iideas?
13 years ago
JSF
Like I wrote, I do not get any errors (no javascript error or condole error, ...)
The only javascript is in the parent page to resize the iframe.
The links and anchors do work when I ommit the onload="javascript:resizeIFrame(this);" part.
And they also work when I open sofcommands.html on its own (not inside an Iframe)

PS the inline style and br tag comes from a program that generates these pages. I don't have control over it. But this has nothing to do with my problem. Removing the inline style and br and replacing with li does not make the anchor links work.

Any other ideas?
Hi,

I have a dynamical generated html document that is nested inside an iframe. To avoid scrollbars I do a resize after the load of the iframe. This works. Inside the iframe I have different anchors defined. But when clicking de links to the anchors nothing happens. (no action, and no javascript or other error)
This works in IE and chrome.
When I dont resize the iframe onload, the anchorlinks works.

Any ideas?

Here is the code of the parent page with the resize function:


here is the code of the child page with the links and achors



Anybody having an idea? why is it not working the first time, but after a second call to the same page, the redirect works correctly.

13 years ago
JSF
thank you for these useless replies.
13 years ago
JSF
>Actually, my first recommendation is one you'll swiftly get sick of hearing

Then, don't you have a second recommendation?
I don't think the security is the problem here.
Anyway, it works perfectly well on tomcat and sun java webserver.

any ideas?
13 years ago
JSF
We have an application (JSF 1.2) that checks if a user is logged in or not. If not, a redirect is done to the login page. This works fine on Tomcat. But when deployed on Websphere 7 it fails.
Firts request to a page an empty blank screen is returned. Second time (reload) the redirect works as it should be.

I have this as log when it fails;


the code that does the redirect is this


and in the faces.config i have a navigation rule




Any ideas?
13 years ago
JSF
Hi,

I have a JSF project and when I test it under eclipse with tomcat-6.0.18 it all works fine. But when I make a war file with ant, deploy it to my tomcat-6.0.18 server manually (using Tomcat Web Application Manager), and then access the same page, I get an error

the code is

wich calls

Any suggestions on why it compiles and runs under eclipse, but not when I build it with ant?

I'm using tomcat-6.0.18 with java jdk 1.6.0
eclipse-3.5
ant-1.6.5

Roel
15 years ago
I have the same problem. The onchange event is only triggerd when I do a sublit off my form. I want it to be triggered everytime i change something in teh combobox. How can I do it?
here's my code
JSP;


MetaDataDetail CLASS;




When changing the combobox, the method changePerson is not triggerd. How can I trigger it?
If i replace the rich:comboBox with a h:selectOneListbox it works.

Kindest regards,

Roel

15 years ago
JSF