martin brow

Greenhorn
+ Follow
since Dec 13, 2011
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 martin brow

Hello,

I'm using cookies for my site, and for debugging I need to see how long cookies are alive to determine whether I should extend their life time or not. The code to create a cookie: (in a login.java)

And to read it out:


But, age reads always -1 (it does die however after 60 seconds, so the setMaxAge(60) works) and path reads "null". The getName and getValue do work, and I can adjust them perfectly... What is wrong with my getPath and getmaxAge()?

thanks for any help!
12 years ago
JSP
Hi,

I'm having trouble showing my errormessages for my registration form. I just don't see why the <%= regform.getErrorMessage("userName") %> doesn't show my error. What should I change?
If I enter correct information, it processes as it should, so there is nothing wrong with the form nor the bean. It's just the errormessages which won't show...
Register.java


index.jsp:


I really hope you can help me solving this problem.

Thanks,

Hadez
12 years ago
Hello,

I am running into a problem, I can't acces my .class files in Tomcat 7. Here is the code:

index.jsp:


NextPage.jsp:


SaveName.jsp:

web.xml:

My directory structure is as follows:
jsp_test/WebContent: index.jsp, NextPage.jsp, SaveName.jsp
jsp_test/WebContent/WEB-INF: web.xml
jsp_test/WebContent/WEB-INF/classes/user/userData.class

But Tomcat gives the following error once I have submitted data in index.jsp:


I have tried searching on the internet, but I cannot find any solution... How can I solve this error? Any help would be greatly appreciated!

Hadez

Tomcat 7.0.23
Fedora 16
12 years ago