rajeev yadav

Greenhorn
+ Follow
since Mar 28, 2011
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 rajeev yadav

Hi Bill,

Cookie has many restrictions and also depends on client side settings. So does not seem to be resolving the issue.

About Spring security integration with wicket, I would like to know how it can be done and also if I can get any helpful documentation on integration.

Thanks,
Rajeev
10 years ago
Sridhar is right... This is exactly my requirement..
10 years ago
Joined: Mar 28, 2011
Posts: 23
posted Today 1:34:07 PM 0
Hi All,

I have below requirement:
1. Expire user session after 15 min
2. When user resumes, a new session should be created and for end user application should work like session was never expire. Means, he should be allowed to resume to work from same state where he was in application without any errors.

For 1st thing, I have set session timeout in web.xml. For second part, I would like to know this can be handled. Any pointers are highly appreciated.

Thanks,
Rajeev
Hi All,

I have below requirement:
1. Expire user session after 15 min
2. When user resumes, a new session should be created and for end user application should work like session was never expire. Means, he should be allowed to resume to work from same state where he was in application without any errors.

For 1st thing, I have set session timeout in web.xml. For second part, I would like to know this can be handled. Any pointers are highly appreciated.

Thanks,
Rajeev
10 years ago
What is the war name that you are deploying. In address bar try giving in this format:

http://localhost:8080/<war name>

example if war is wickettestapp.war than url will be http://localhost:8080/wickettestapp
You can log4j.properties at any location but you need to tell your app to load it from that location
Where have you kept your log4j.properties. Also you need to initiate log4j. General way to do it initialising in a servlet which is configured in web.xml. See below link

http://www.avajava.com/tutorials/lessons/how-do-i-initialize-log4j-in-a-web-application.html


Also remember to place log4j.properties right under classes folder in output dir.
Priety,
try this:

HTML:
<input wicket:id="date" type="text" maxlength="10" /><span
wicket:id="datePicker" />

Java:
DateTextField dateField = new DateTextField("date", "d-M-yyyy");
dateField.setRequired(true);
add(dateField);

DatePicker dp = new DatePicker("datePicker", dateField);
dp.setDateConverter(new DateConverter() {
public DateFormat getDateFormat(Locale locale) {
return new SimpleDateFormat("d-M-yyyy");
}
});
add(dp);
It would be great if you can upload source code so that I can see what is causing the issue. Also try using 1.4.15 as this is stable version in 1.4
Which wicket version are you using. I checked on 1.3 and 1.4.15 and it works fine for me.
Increase application timeout in web.xml and http as well as socket timeout on your server to avoid this issue.
Use SimpleAttributeModifier to change the text color.
Can you please post sample code that you are trying with the issue details
I am trying to self sign my applet using my ant script. I am using below code:

Target to generate certificate....
<target name="gencert" description="Generate a certificate to sign the jar file">
<genkey dname="cn=Rajeev, ou=My Name, o=Test, c=US" validity="3650" storepass="test" alias="test" keystore="test"/>
</target>

Code to sign jar:
<target="sometarget" depends="gencert">
<signjar storepass="test" alias="test" keystore="test">
<fileset dir="${build.applet.lib}" includes="*.jar"/>
</signjar>
</target>


This worked fine when I ran script for first time and signed my jars without any issues. When I ran the script it failed with below error:
gencert:
[genkey] Generating Key for test
[genkey] keytool error: java.lang.Exception: Key pair not generated, alias <test> already exists


From error message it is clear that it failed because key is already generated when I ran this first time so failing when i am trying again. Is there any way to check if certificate already exists than not to execute code inside gencert target.

Thanks,
Rajeev
10 years ago
Hi,

I am trying to self sign my applet using my ant script. I am using below code:

Target to generate certificate....
<target name="gencert" description="Generate a certificate to sign the jar file">
<genkey dname="cn=Rajeev, ou=My Name, o=Test, c=US" validity="3650" storepass="test" alias="test" keystore="test"/>
</target>

Code to sign jar:
<target="sometarget" depends="gencert">
<signjar storepass="test" alias="test" keystore="test">
<fileset dir="${build.applet.lib}" includes="*.jar"/>
</signjar>
</target>


This worked fine when I ran script for first time and signed my jars without any issues. When I ran the script it failed with below error:
gencert:
[genkey] Generating Key for test
[genkey] keytool error: java.lang.Exception: Key pair not generated, alias <test> already exists


From error message it is clear that it failed because key is already generated when I ran this first time so failing when i am trying again. Is there any way to check if certificate already exists than not to execute code inside gencert target.

Thanks,
Rajeev
10 years ago