Kartik Lax

Greenhorn
+ Follow
since Apr 23, 2006
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
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Kartik Lax

Cathal Mullan wrote:

Not involved with Java now, moved to C++, planning to move into Python & PHP too



I hope the mandatory course requirement did not push you towards this decision . That would be kinda drastic I think.
Hello,

I had wanted to take the SCEA exam two maybe three years ago, got a voucher, procrastinated until it expired, which I regret a lot now . I went into Oracle's website yesterday to find out that I had to take an approved course before I could get certified. I also found out that I could take this course after I finish all 3 parts of the exam. How is everyone else doing this? The path to OCM JEA certification seems a little unclear to me. The way I understand the path I could do the follow the steps below to get certified.

- Take the OCM JEE6 EA Beta exam

- Download and complete assignment

- Complete Essay

- Finish approved course when its financially viable for you and you have the time to take it and when you actually want to receive the certification. I couldn't seem to find how long one can delay taking this course after completing the 3 parts.

Does this make sense? (In other words, is my understanding correct?)
Hi Srikanth,

can you suggest some links where i can read more on that?
11 years ago
Hi,

I have a jsp, from where users click on the 'add to favorites' from the IE menu, but i want a different URL (my homepage) to get saved instead.

[I dont want to do it by adding a link and calling
window.external.AddFavorite on click.]

Is there any other approach?
One approach would be to have a non-secure jsp that would submit onload to the login servlet... the dofilter()'s code can be inserted in the jsp.

But this would act as a filter only for that servlet in the jsp's action parameter. And that jsp will be your application's welcome-file/login URL.
11 years ago
Efrat,

This doesn't look good
if you are using tomcat...
[ August 02, 2006: Message edited by: Kartik Lax ]
11 years ago
Hi

Just have a look at the javadoc for the removeAttribute() method...here

What does your DTD/Schema contain ?
[ August 02, 2006: Message edited by: Kartik Lax ]
Hi Efrat,

what is the server that you are using? I tried filters on j_security_check in Websphere and they are working fine.

I seem to find out through google that there are some problems with 'servlet filter on j_security_check' and Jboss/Tomcat,please check that out if you are using JBoss/tomcat.

but for one last try you can change the URL pattern to
<url-pattern>j_security_check</url-pattern>
dropping the /.
11 years ago
Good, this should work ...



try it.
11 years ago
Can you remove the value of the form-error page from your web.xml and try a login failure scenario? And check the URL in the browser for that scenario?

[it should end with j_security_check]

-Hellkay
11 years ago
Is your login functionality working correctly otherwise?
i.e. You try to access a secure resource, are you redirected to the login jsp? Are you routed to the error page if you key in invalid details?
11 years ago
Hi,

This code should be easy to understand... it uses the Java Mail API.

-Hellkay
11 years ago
Hi Efrat

I have not gone through your code but from your web.xml, I can see that your form login page is at /faces/html/common/login.jsp so your URL pattern should be

<filter-mapping>
<filter-name>LoginFilter</filter-name>
<url-pattern>/faces/html/common/j_security_check</url-pattern>
</filter-mapping>

[Try this out, this should work. The j_security_check is actually called from this URL, I cant clearly explain this, but it'll be obvious if you remove your form error page you can see a 404 page with the URL /faces/html/common/j_security_check, you can probably undo all the code changes that you have done to correct this 'filter not getting invoked' problem]

-Hellkay
11 years ago
This worked for me, but only if authenticated will it return a value.

request.getUserPrincipal().getName();

-Hellkay
11 years ago